Support format: uuid
#707
Labels
area/openapi
Adding/updating a feature defined in OpenAPI.
kind/feature
New feature.
status/blocked
Waiting for another issue.
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 asSwift.String
, meaning we have to manually callUUID.uuidString
andUUID(uuidString:)
(and implement required error handling on the latter).Proposed solution
Make the generator respect
format: uuid
and define such fields using the SwiftUUID
type.Alternatives considered
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: