-
Notifications
You must be signed in to change notification settings - Fork 2.2k
ObjectProperty lacks additionalProperties #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I will add some tests around this, but as-is, it should deserialize this into a map with key type |
The deserializer handles addtional properties, see tests. |
Oh, so it deserializes to a |
sorry to dredge up this old thread, but @fehguy can I ask why this is the right behavior? It seems like it's legal to have swagger like this:
If that is in fact legal, it would be useful to have additionalProperties on the ObjectProperty. And forgive me if this is answered elsewhere, but what is the purpose of the MapProperty and/or how does it relate to the Swagger 2.0 spec? Thanks. |
And yet, the petstore example has an operation with a response as an
ObjectProperty
withadditionalProperties
defined on it.Shouldn't this be added to the
ObjectProperty
?The text was updated successfully, but these errors were encountered: