We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I just stumbled upon a panic in index/resolver.go line 517 while using vacuum linting a schema like the following one.
openapi: 3.0.3 info: description: test title: test version: test paths: {} components: schemas: test: type: object properties: Reference: $ref: '#/components/schemas/ReferenceType' ReferenceType: type: object required: [$ref] properties: $ref: type: string
515 if i%2 == 0 && n.Value == "$ref" { 516 517 if !utils.IsNodeStringValue(node.Content[i+1]) { 518 continue 519 }
Maybe a check of the slice length could prevent the panic
515 if i%2 == 0 && n.Value == "$ref" && len(node.Content) > i%2+1 {
The text was updated successfully, but these errors were encountered:
Nice find! will fix.
Sorry, something went wrong.
resolved issue #259
0125a13
5649e79
Your suggestion was added in v0.16.0
v0.16.0
https://github.com/pb33f/libopenapi/blob/main/index/resolver.go#L514
No branches or pull requests
I just stumbled upon a panic in index/resolver.go line 517 while using vacuum linting a schema like the following one.
Maybe a check of the slice length could prevent the panic
The text was updated successfully, but these errors were encountered: