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.
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.