Florian
05/30/2026, 6:33 PM"DeviceNotificationTokens?": {
"type": [
"object",
"null"
],
"title": "DeviceNotificationTokens?",
"oneOf": [
{
"$ref": "#/components/schemas/AndroidDeviceNotificationTokens"
},
{
"$ref": "#/components/schemas/AppleDeviceNotificationTokens"
}
],
"discriminator": {
"propertyName": "type",
"mapping": {
"AndroidDeviceNotificationTokens": "#/components/schemas/AndroidDeviceNotificationTokens",
"AppleDeviceNotificationTokens": "#/components/schemas/AppleDeviceNotificationTokens"
}
}
},
at least the swift-open-api generator fails for ? in schema nameshfhbd
05/30/2026, 6:53 PMhfhbd
05/30/2026, 6:54 PMFlorian
05/30/2026, 8:37 PM#/components/schemas/Florian
05/30/2026, 8:43 PMYeah, you should have an ? inside the name.Really? I also have an example where it generated
MyClass? and MyClass because in one place the property is optional and in the other it is not.hfhbd
05/30/2026, 9:47 PM