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
Also, I'm definitely not an expert in how OpenAPI needs to be structured to be semantically correct at every version, especially around $refs and allOf/oneOf, which seem somewhat cumbersome. So if I'm just doing it wrong that will be good to know.
What version of ogen are you using?
Can this issue be reproduced with the latest version?
Yes, 1.8.1
What did you do?
If I do something like this in my openapi spec json file:
or
or
(I know this isn't true 3.0 or 3.1 but ogen doesn't complain about it? 😄)
The generated output is
Where the property was nullable, but the output is
Opt
and notOptNil
.But if I do something like this instead:
Then I get the expected
OptNil
This is weird because ogen does apply other siblings to
$ref
, which I believe is an oapi 3.1 behavior.What did you expect to see?
I expect both cases to be
OptNil
.The text was updated successfully, but these errors were encountered: