Skip to content

Format "guid" vs "uuid" #1690

@david-brink-talogy

Description

@david-brink-talogy

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions