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
Probably best to explicitly set the maxLength of your parameter to 0 if it is a string. You will have to document the intent of zero-length parameters and the effect it has within your API (i.e. leaving the value intact rather than emptying it).
status:
description: Employee's activity status. 1 = active, 0 = inactive. You may leave it empty if it is supposed to be left intact.oneOf:
- type: integerenum: [0, 1]
- type: stringmaxLength: 0
Hi!
I read:
"In PR #1573, targeted for the 3.0.2 patch revision, we have made use of allowEmptyValue NOT RECOMMENDED"
So, what is the right way to declare the API where:
Of course - for security reasons, I don't want to declare
additionalProperties: true
.Any suggestions?
The text was updated successfully, but these errors were encountered: