docs(openapi): Use more autogenerated response examples#2306
docs(openapi): Use more autogenerated response examples#2306
Conversation
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
Is this a genuine concern? I'd expect that examples will be validated against the spec by at least one of our openapi linters |
| defaultRequestQueueId: soowucklrmDzKpA8x | ||
| examples: | ||
| example: | ||
| $ref: ../../components/schemas/actor-runs/ListOfRunsResponseExample.yaml |
There was a problem hiding this comment.
This is a very weird place to put a reusable example. There is a dedicated components.examples section defined by the OpenAPI spec- https://spec.openapis.org/oas/v3.1.0#components-object
There was a problem hiding this comment.
Moved to examples. I would structure that folder later, when there are more examples.
You are right. Examples are validated. Only the new optional fields will be missing. |
85c27e9 to
98224c5
Compare
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
Summary
Motivation
Example:

Note
Cursor Bugbot is generating a summary for commit 2fe84fe. Configure here.