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
openapi: 3.0.0 info: title: (title) version: 0.0.0 tags: [] paths: {} components: schemas: A: type: object required: - x1 properties: x1: type: integer format: int32 example: X1: 1
The example in the generated specification doesn't match the schema, causing the specification to fail the linter check. Expected to be
example: x1: 1
https://typespec.io/playground?c=QGV4YW1wbGUoI3sKICBYMTogMQp9KQptb2RlbCBBIMQVQGVuY29kZWROYW1lKCJhcHBsaWNhdGlvbi9qc29uIiwgIngxIinHPmludDMyCn0K&e=%40typespec%2Fopenapi3&options=%7B%7D
The text was updated successfully, but these errors were encountered:
Respect encoded name for examples (#4551)
df0d847
fix #4540
timotheeguerin
Successfully merging a pull request may close this issue.
Describe the bug
The example in the generated specification doesn't match the schema, causing the specification to fail the linter check.
Expected to be
Reproduction
https://typespec.io/playground?c=QGV4YW1wbGUoI3sKICBYMTogMQp9KQptb2RlbCBBIMQVQGVuY29kZWROYW1lKCJhcHBsaWNhdGlvbi9qc29uIiwgIngxIinHPmludDMyCn0K&e=%40typespec%2Fopenapi3&options=%7B%7D
Checklist
The text was updated successfully, but these errors were encountered: