optional objects (and first class null) #879
-
Dear Community, How do you write an optional object into schema so that openapi-python-client will accept it? There are two ideas here Either
Or
Neither are accepted. Is it just that openapi-python-client does not support this presently? The error message that comes out for
Yes, it can be Thanks in advance, David |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The methods you’re describing are for OpenAPI 3.1, which is not supported yet. There is a branch in #856 which is adding support for this, if you want to test it out, I’d appreciate it! For now, only the 3.0 method of adding |
Beta Was this translation helpful? Give feedback.
The methods you’re describing are for OpenAPI 3.1, which is not supported yet. There is a branch in #856 which is adding support for this, if you want to test it out, I’d appreciate it!
For now, only the 3.0 method of adding
"nullable": true
is supported.