You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a client team that is using django-ninja to build their API. They have handed me a schema.json file that I've converted to yaml and I'm trying to import into my Swift project. When I generate the client side code using the Swift OpenAPI Generator I get errors on every instance where I see this syntax:
my_property:
anyOf:
- type: string
- type: 'null'
Hand converting to this syntax throughout the entire spec allows the generation to succeed:
my_property:
type: [string, 'null']
My question is this: Is there a way to have django-ninja output this updated type style? Any information to help me wrap my head around this issue would be helpful
The text was updated successfully, but these errors were encountered:
IanHoar
changed the title
get_openapi_schema outputs types using anyOf style - doesn't work the Swift OpenAPI generatorget_openapi_schema outputs types using anyOf style - doesn't work with the Swift OpenAPI generator
May 3, 2024
Hey there,
I'm working with a client team that is using django-ninja to build their API. They have handed me a schema.json file that I've converted to yaml and I'm trying to import into my Swift project. When I generate the client side code using the Swift OpenAPI Generator I get errors on every instance where I see this syntax:
Hand converting to this syntax throughout the entire spec allows the generation to succeed:
My question is this: Is there a way to have django-ninja output this updated type style? Any information to help me wrap my head around this issue would be helpful
The text was updated successfully, but these errors were encountered: