Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAPITools#3439 Moved the default setter to the constructor of the …
…builder. There are a few issues here: - outputDir's default was set to "." but was overwritten by the builder. - validateSpec was defaulted to true but was overwritten to false by the builder. - strictSpecBehavior was defaulted to true but was overwritten to false by the builder. A builder should not have primitive not nullable fields if there are fields containing default which are not nullable. The main issue I migrated the default value setter to the builder is that fields can be nullable but have set a notnull default. If null is an indicator whether to set the value or not those values could never be set to null.
- Loading branch information