-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support for format 'email' #204
Comments
@mkistler - any thoughts on this issue? We currently throw an error if a user specified
|
There is a registry of "formats" to extend the OpenAPI spec here: http://spec.openapis.org/registry/format/ But I don't see The intent of this warning in the validator is to flag any formats that are not "well-defined". Is there some special behavior you are expecting from |
Not sure what's the ultimate source of truth for the OpenAPI spec, but google takes me here: https://swagger.io/specification/#data-types There's a table that lists the types, and that list doesn't mention email, but there's also the phrase
|
From https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md &
Would it be possible to have open values that can be accepted in some way (via a rule or as custom value that you can add to the list)? Because in the documentation it also suggest the following: |
@mkistler ^^ |
What is the status of this issue? I also would like email to be added to the formats, as well as uuid. I have run my schema through other validators and it passes with no issues, however using this linter produces an error. |
Now that we have integrated Spectral, which supports custom rules, I think the appropriate path forward is to replace the hard-coded |
That makes sense, I am sure there are definitely higher priority items than allowing formats. Just was asking. I will look into Spectral rules. Thanks for pointing me in the right direction @mkistler |
This much anticipated support has been added with the latest release (0.51.3) ! |
Will there be support for
email
being supported for theformat
field?Like described here it is an open value: https://swagger.io/docs/specification/data-models/data-types/
Or is there a way to include custom types as a valid
format
values?The text was updated successfully, but these errors were encountered: