Closed domenikjones closed 3 years ago
Will do more changes..
In current version, more is to compatibility with JS developers, and their backend service provided OpenAPI does not fully describe the input and output parameters of the entire api. they are tightly used to call the request api. Welcome to communicate with me more ideas
Hi there,
We have found a problem concerning nullable fields which lead into more problems, if we are using
required
,readOnly
andnullabel
in combination.To keep the possibility as before,
strictRequiredChecks
has been added.undefined
valuesnull
valuesWe have implemented some changes:
nullable
andreadOnly
A field is required when:
readOnly
is false and property isrequired
is true orstrictRequiredChecks
is falseA field is nullable when:
nullable
is true orstrictNullChecks
is falseThese changes might break implementations of other developers, since
strictNullCheck
has been moved to thenullable
evaluation insteadrequired
akaundefined
.Please let me know this poses a problem. Happy coding!