Open kelnos opened 5 years ago
@dpblh can you clarify? I wrote that yaml file; not sure how it's relevant to this?
@kelnos
Including
type
causes us to emit the three form parameters as expected, but also a fourth body parameter of an uspecified JSON object type.
From the file commentary it follows that by excluding type
from yaml file, you can achieve the expected effect.
It works for me)
@dpblh yes, I know. That's the point of this issue; it shouldn't do that. type: object
should be fine there.
The OpenAPI Form Data examples include
type: object
when defining schemas for the form parameters. When doing this, however, Guardrail emits the form params, plus an extra body param. Unclear if this is intended (and if leaving outtype
is correct), or if this is a problem with the OpenAPI parser or with how Guardrail is interpreting the parser's output. For reference, this triggers the issue: