Open
Description
Describe the bug
In OpenAPI, parameters, requests, and response all support examples
. However, objects and properties only support (a single) example
.
Trying to use @example
twice in such a case should result in a compilation error., or at least a visible warning.
Reproduction
Playground link. Note that when multiple example
s are specified, the last is silently chosen.
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.