Open 0xNekr opened 4 months ago
I'm planing on implementing the oneOf functionality based on the swagger specs.
If you're motivated, you can help me out. This would be cleaner imho
It's bound to be cleaner!
I'll do what I can with the time I have, have you started anything yet?
have you started anything yet?
yes, I added a comment 4 months ago 🤣
Good evening,
I've made a modification to the way double types are handled, in particular with the
null
.I have an interface with several
string | null
ornumber | null
fields.and the swagger handled example and schema by returning :
What's more, the schema didn't handle the nullable.
So I made the changes to default to the first type specified for the example, and to specify
nullable
correctly if one of the types is null.I don't know if this is the best way to do it, so I'll wait for your feedback!