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
The following rules need to be captured, either in a section on JSON models OR in a complementary document on OpenAPI.
If you also support PUT then, then model depends on whether you have a required fields or not.
If you have no required fields, then again, you can use 1 model for everything.
If you have some required fields, then create a model with the required fields for PUT request/response, GET response, and PATCH response. Use a separate model where NO fields are required for PATCH request.
Also, note that you can never add new required fields to a model as this is a breaking change.