-
-
Notifications
You must be signed in to change notification settings - Fork 238
Description
Is your feature request related to a problem? Please describe.
yaml
is a common media type in APIs for serving/accepting openapi specs, manifests, k8s configs, etc.
Describe the solution you'd like
It would be great to support one or more of the (unfortunately many) media types for yaml.
I found examples of the following in https://github.com/APIs-guru/openapi-directory/ :
application/x-yaml
application/yaml
text/x-yaml
text/yaml
IMO it probably makes sense to only support the "json subset" of YAML with a strict safe-loader, but I suppose it might make sense for it to be configurable.
Describe alternatives you've considered
It could make sense to support a plugin interface for content-types - it will be impossible to support them all :/
It also seems reasonable for openapi-python-client
to specialize in json
and pass other types as files.