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
So previously we were using Json Schema and have recently begun migrating to Open API. There's a particular quirk of our implementation that I'm having trouble porting over.
So what we had sometimes for certain fields would be a non-nullable version of the field (the basic field) and a nullable version of the field. It looked somewhat like this:
However, I think there might be a problem with this implementation. I think that because "nullable" defaults to false, that a field couldn't possibly match both schemas, because this would essentially be saying that a matching schema is both nullable = true and nullable = false. Can anyone confirm whether I'm correct in thinking that the above example doesn't work?
Are there any recommendations for how to get nullable versions of fields within Open API 3.0.0?
The text was updated successfully, but these errors were encountered:
Demonstration API definition
So previously we were using Json Schema and have recently begun migrating to Open API. There's a particular quirk of our implementation that I'm having trouble porting over.
So what we had sometimes for certain fields would be a non-nullable version of the field (the basic field) and a nullable version of the field. It looked somewhat like this:
We're hoping to port this over, but I think the syntax changes enough that we don't have the same functionality.
An implementation I've considered looks like this:
However, I think there might be a problem with this implementation. I think that because "nullable" defaults to false, that a field couldn't possibly match both schemas, because this would essentially be saying that a matching schema is both nullable = true and nullable = false. Can anyone confirm whether I'm correct in thinking that the above example doesn't work?
Are there any recommendations for how to get nullable versions of fields within Open API 3.0.0?
The text was updated successfully, but these errors were encountered: