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
When normalizing a parameter such as
"name": { "name": "name", "in": "query", "description": "name of the pet", "required": false, "schema": { "type": "string", "example": "schema example" }, "examples": { "example1": { "value": "examples example" } } }
the example field in the schema will be normalized to:
example
schema
"example": ['examples example']
Instead, it should be normalized to:
"example": "examples example"
This happens because we set example to the array of examples:
apidom/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameter-examples.ts
Lines 100 to 103 in 1a6da7f
normalize-header-examples
apidom/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/index.ts
The text was updated successfully, but these errors were encountered:
fix(ns-openapi-3-1): set example to first element of examples
89f5115
Refs #4229
fix(ns-openapi-3-1): set example to first element of examples in para…
d85f72a
…meter examples refractor plugin (#4230) Refs #4229
Addressed in #4230
Sorry, something went wrong.
glowcloud
No branches or pull requests
When normalizing a parameter such as
the
example
field in theschema
will be normalized to:Instead, it should be normalized to:
This happens because we set example to the array of examples:
apidom/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameter-examples.ts
Lines 100 to 103 in 1a6da7f
instead, we should be setting it to the first example of the examples array like we do in the
normalize-header-examples
plugin:apidom/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/index.ts
Lines 100 to 103 in 1a6da7f
The text was updated successfully, but these errors were encountered: