-
Notifications
You must be signed in to change notification settings - Fork 295
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem?
There should be switch or something in config that allow us use example value instead of default or primitives in Example (from schema).
I've been looking at the code, there is TODO 😄
docusaurus-openapi-docs/packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts
Lines 83 to 86 in becd0ae
| // TODO: determine if we should always ignore the example when creating from schema | |
| // if (example !== undefined) { | |
| // return example; | |
| // } |
Describe the solution you'd like
Would be nice use example when it's set or let developer chose what's they want.
Additional context
Let's check Swagger, they also use example values in example json Responses instead of string
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
