marshmallow-code / marshmallow-oneofschema

Marshmallow library extension that allows schema (de)multiplexing
MIT License
137 stars 44 forks source link

Generated OpenAPI Spec Documentation? #154

Open arthurvanduynhoven opened 2 years ago

arthurvanduynhoven commented 2 years ago

I am using oneOfSchema one of my api endpoints.

I also use autogenerated documentation using apispec library.

I was expecting to see generated docs based on type_field and type_schemas. But I see nothing being generated.

Does this class work with autogenerated docs? or am I missing some configuration?

Thanks,

Art

lafrech commented 2 years ago

There is nothing automatic here to my knowledge.

I think this was already discussed in apispec. A quick searched found this thread: https://github.com/marshmallow-code/apispec/issues/506.

The thing is this lib does not depend on apispec and conversely.