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

Format "guid" vs "uuid" #1690

Open
david-brink-talogy opened this issue Apr 5, 2024 · 0 comments
Open

Format "guid" vs "uuid" #1690

david-brink-talogy opened this issue Apr 5, 2024 · 0 comments

Comments

@david-brink-talogy
Copy link

The OpenAPI format registry and JSON Schema docs indicate "uuid" is supported, but not "guid". When using NSwag to generate OpenApi docs for an Asp.Net core API, properties of type System.Guid use a schema with "format": "guid" by default. Is there a reason that NJsonSchema and by extension NSwag prefer a format not defined by the standards body?

JsonFormatStrings.Uuid is also marked as obsolete.

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

No branches or pull requests

1 participant