-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Labels
area/openapiAdding/updating a feature defined in OpenAPI.Adding/updating a feature defined in OpenAPI.kind/featureNew feature.New feature.status/blockedWaiting for another issue.Waiting for another issue.
Description
Motivation
Our API spec heavily uses UUID-typed fields, which are represented in our OpenAPI doc using format: uuid
as described in the JSONSchema spec.
However, swift-openapi-generator
currently ignores that part of the OpenAPI doc and generates them all as Swift.String
, meaning we have to manually call UUID.uuidString
and UUID(uuidString:)
(and implement required error handling on the latter).
Proposed solution
Make the generator respect format: uuid
and define such fields using the Swift UUID
type.
Alternatives considered
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
area/openapiAdding/updating a feature defined in OpenAPI.Adding/updating a feature defined in OpenAPI.kind/featureNew feature.New feature.status/blockedWaiting for another issue.Waiting for another issue.