-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Labels
Description
Describe the bug
Per the Open API 3.0 spec for parameter object, the "example" and "examples" properties are valid for query parameters.
However, when adding the @example decorator to a query parameter in typespec, no example is emitted in the open api file.
Reproduction
This Playground Link shows the simplest example of a query that doesn't work.
This Playground Link shows a slightly more complicated example with queries coming from several different levels of indirection, and I'd hope it would work for all of them the way that the @pattern decorator does.
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.