-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example/examples on parameters #88
base: master
Are you sure you want to change the base?
Add example/examples on parameters #88
Conversation
# example: Optional[Any] # TODO | ||
# examples: list[Any] = field(default_factory=list) # TODO | ||
example: Optional[Any] = None | ||
examples: list[Any] = field(default_factory=list) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After checking the docs for v3 spec, it looks like it won't work with a list type. It should work with dict-like structure, where the key
is a string and the value
is an Example object, here you can find more details - Parameter object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. Thanks. People are amusing on changing spec every time :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missing examples
type for dict-like structures and unit tests (as provided example in the comment)
From #28, add example/examples sections in result