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
with the above example we should consider {"prop": "a"} or {} as valid Model and {"prop": null} as invalid.
But adding x-model: true into prop property it makes {"prop": null} a valid Model.
This change is:
backward compatible if the object is used in requests parameters, as old clients would continue to send Model instances
backward incompatible if the object is used in responses, as old clients might start receiving null values which were not supposed to receive
The objective of this issue is to track the implementation of two complementary rules
add x-nullable into response models
removing x-nullable from request models
Internal reference: CORESERV-9265
The text was updated successfully, but these errors were encountered:
Changing the nullability of an object or property might lead to backward incompatible specs.
For easier understanding we can use the following example
with the above example we should consider
{"prop": "a"}
or{}
as validModel
and{"prop": null}
as invalid.But adding
x-model: true
intoprop
property it makes{"prop": null}
a validModel
.This change is:
Model
instancesnull
values which were not supposed to receiveThe objective of this issue is to track the implementation of two complementary rules
x-nullable
into response modelsx-nullable
from request modelsInternal reference: CORESERV-9265
The text was updated successfully, but these errors were encountered: