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
Just opening this in hopes of getting some clarification on how OpenAPI documents are validated.
While doing some tests with Microcks, I found an interesting scenario: for operations with a request body of application/x-www-form-urlencoded content type, documenting examples as objects leads to improper serialization, whereas defining them as strings with the appropriate format (as per OpenAPI example spec, e.g. name1=value1&name2=value2) actually made the tests work.
Now, if I run spectral with Microcks' ruleset after the change, it complains because the schema definition is still of type object; if I change it to string, this could potentially cause other problems, e.g. with code generation.
So for the actual question: could this be a validation problem, or is there a better way of documenting these operations?