Suppose your openapi.yaml defines two string fields, title & `description. Both are required.
You send the following data to the API:
{
'title': 'foo',
'descriptioin': 'bar'
}
And the API will tell you that description field is required and you notice the descriptioin typo in your request.
You change the openapi.yaml so that descriptioon is no longer a required field.
You send the following data to the API:
{
'title': 'foo',
'descriptioin': 'bar'
}
And the API will silently ignore descriptioin field, and since description is no longer required, will return a 200 OK. You move on and then notice after two weeks that you haven't saved any data 😱 😱 😱
Suppose your
openapi.yamldefines two string fields,title& `description. Both are required.You send the following data to the API:
And the API will tell you that
descriptionfield is required and you notice thedescriptiointypo in your request.You change the
openapi.yamlso thatdescriptioonis no longer a required field.You send the following data to the API:
And the API will silently ignore
descriptioinfield, and sincedescriptionis no longer required, will return a 200 OK. You move on and then notice after two weeks that you haven't saved any data 😱 😱 😱