[zodios-openapi] More string formats #224
epotter2297
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Another thought that just occurred to me, you wouldn't be able to specify a format for a property in the response object with this approach... we could still do default formats for things like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now if I have an endpoint with a parameter like this:
It shows up in OpenAPI with a type of
string
and an empty format.According to the official spec, things like
email
orurl
aren't official string formats, but it is an open field, so technically any string is valid. It would be nice if things likez.string().email()
orz.string().url()
had sane defaults and / or I could optionally add define my own custom format like this:Beta Was this translation helpful? Give feedback.
All reactions