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
Given a following repro/two.yaml file
repro/two.yaml
swagger: '2.0' info: title: Repro two description: Endpoint definition version: "1.0.0" contact: name: toto host: not-example.com schemes: - https basePath: /repro/two paths: /quotes_requests: post: summary: Gets nothing either. operationId: "12" description: Cf. summary tags: [yep] parameters: - name: body description: Content. in: body schema: $ref: '#/definitions/AnotherDefinition' responses: 204: description: Zip definitions: AnotherDefinition: type: object properties: special: description:
linting from the cli returns a error.
$ yarn spectral lint ./repro/two.yaml yarn run v1.15.2 $ C:\REDACTED\node_modules\.bin\spectral lint ./repro/two.yaml linting ./repro/two.yaml OpenAPI 2.0 (Swagger) detected Encountered error when running rule 'oas2-schema' on node at path '$': TypeError: Cannot read property 'parent' of null No errors or warnings found! Done in 1.01s.
Note: Providing a valued description in the very last node makes the issue disappear.
Either:
N/A
The text was updated successfully, but these errors were encountered:
@P0lip ❤️
Sorry, something went wrong.
Released in 2.1.1
P0lip
Successfully merging a pull request may close this issue.
I'm submitting a...
What is the current behavior?
Given a following
repro/two.yaml
filelinting from the cli returns a error.
Note: Providing a valued description in the very last node makes the issue disappear.
What is the expected behavior?
Either:
What is the motivation / use case for changing the behavior?
N/A
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: