Skip to content
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

Added formats to the registry as defined by OpenAPI v3 #2857

Merged
merged 3 commits into from
Feb 3, 2022

Conversation

darrelmiller
Copy link
Member

@darrelmiller darrelmiller commented Jan 14, 2022

The following types as defined in the OpenAPI v3 specification have been added to the format registry. The OpenAPI 3.1 specification no-longer defines these formats as the goal is to decouple the registry of formats from specific specifications to enable easier re-use of formats.

Common Name type format Comments
integer integer int32 signed 32 bits
long integer int64 signed 64 bits
float number float  
double number double  
byte string byte base64 encoded characters
binary string binary any sequence of octets
date string date As defined by full-date - [!RFC3339]
dateTime string date-time As defined by date-time - [!RFC3339]

Password was not included as that is not a serialization format and I believe it is mixing concerns by using the format property.

@karenetheridge
Copy link
Member

karenetheridge commented Jan 14, 2022

@darrelmiller
Copy link
Member Author

@karenetheridge Yes. Thanks for catching that.

@ioggstream
Copy link
Contributor

@darrelmiller where will be the new registry hosted? json-schema?

@darrelmiller darrelmiller merged commit 68ed2e4 into gh-pages Feb 3, 2022
@darrelmiller darrelmiller deleted the dm/openapi-formats branch February 3, 2022 17:42
@DavidBiesack
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants