| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm, may you rebase?
Sorry, something went wrong.
|
Ok, done. Thank you |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
While trying to generate a client with Jane, I encountered a missing piece of OpenAPI 3.0 for nullable properties. It's useful in order to generate models with nullable getters.
As stated on src/JsonSchema/SchemaFactory.php:173: "externalDocs is an OpenAPI specific extension, but JSON Schema allows additional keys, so we always add it" for the property schema.
Then we could also add the nullable feature.
Another take, would be to considered each components schema non required properties as optional. Therefore, I should make a PR to Jane in order to use non-required properties instead of nullable properties to generate models. But this is not a desired behaviour on their side.