boxdot / openapi-schema

Apache License 2.0
4 stars 1 forks source link

add btreemap serialization #12

Closed antoine-de closed 5 years ago

antoine-de commented 5 years ago

add the support for BTreeMap as stated in https://swagger.io/docs/specification/data-models/dictionaries/

Since openapi supports only strings as key, I do not care about the K type.

It might not be perfect when is type is something that serialize to string. For example for trivial enums we could add some properties to the object (a bit like the fixed keys section, but without the required part.

But I think it's not that important to support those kind of additional constraints.

boxdot commented 5 years ago

Nice. Thanks!