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
If an OpenAPI 2.0 document contains an operation which contains multiple parameters in formData and consumes application/x-www-form-urlencoded, validation fails with MULTIPLE_BODY_PARAMETERS. If consumes is changed to multipart/form-data, validation succeeds without error. For example:
If an OpenAPI 2.0 document contains an operation which contains multiple parameters in formData and consumes
application/x-www-form-urlencoded
, validation fails withMULTIPLE_BODY_PARAMETERS
. If consumes is changed tomultipart/form-data
, validation succeeds without error. For example:The OpenAPI document validates and Autorest generates correct code, but oav validation fails.
This issue is similar to #805.
I believe it could be fixed by checking for
application/x-www-form-urlencoded
in addition tomultipart/form-data
atoav/lib/swaggerValidator/semanticValidator.ts
Line 527 in bf50f77
Thanks for considering,
Kevin
The text was updated successfully, but these errors were encountered: