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
Context
OAS3 uses two types of examples (example property, not examples property!):
Test cases (OAS3)
Given oas3 with
parameters: - name: petId in: path required: true description: The id of the pet to retrieve schema: type: string example: "1234567890"
when
spec linted
expect
no errors (example matches the nested schema)
parameters: - name: petId in: path required: true description: The id of the pet to retrieve schema: type: string example: 123
error (example is an integer, schema requires string)
parameters: - name: petId in: path required: true description: The id of the pet to retrieve schema: type: string example: "123"
be OK
parameters: - name: petId in: path required: true description: The id of the pet to retrieve schema: type: string example: 123 example: "abc"
be OK (nested example is canceled by parent example!!)
parameters: - name: petId in: path required: true description: The id of the pet to retrieve example: "abc"
be OK (no schema to use)
only "in body" OAS2 params can have example... (see the spec to double check)
Figure out the tests :)
In scope
Out of scope
We do not want to support validating the examples yet.
examples
The text was updated successfully, but these errors were encountered:
Dupe of #223
Sorry, something went wrong.
No branches or pull requests
Context
OAS3 uses two types of examples (example property, not examples property!):
Test cases (OAS3)
TEST 1
Given oas3 with
when
spec linted
expect
no errors (example matches the nested schema)
TEST 2
Given oas3 with
when
spec linted
expect
error (example is an integer, schema requires string)
TEST 3
Given oas3 with
when
spec linted
expect
be OK
TEST 4
Given oas3 with
when
spec linted
expect
be OK (nested example is canceled by parent example!!)
TEST 5
Given oas3 with
when
spec linted
expect
be OK (no schema to use)
Test cases (OAS2)
only "in body" OAS2 params can have example... (see the spec to double check)
Figure out the tests :)
In scope
Out of scope
We do not want to support validating the
examples
yet.The text was updated successfully, but these errors were encountered: