You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an OpenAPI spec that defines the parameter examples under path operations like in Adding Examples :
parameters:
- in: query
name: status
schema:
type: string
enum: [approved, pending, closed, new]
example: approved # Example of a parameter value
This gets completely ignored even when using --useExamples argument and random values get generated instead. Is this expected behaviour? Would it be possible to implement extracting these kind of examples?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi @recmanj. Can you post the entire OpenAPI spec you are using? I'm not able to reproduce it. I've pasted the above definition in a petstore.yml and I properly get all the examples:
I've got an OpenAPI spec that defines the parameter examples under path operations like in Adding Examples
:
This gets completely ignored even when using
--useExamples
argument and random values get generated instead. Is this expected behaviour? Would it be possible to implement extracting these kind of examples?Thanks.
The text was updated successfully, but these errors were encountered: