Open tovmeod opened 7 years ago
The Core API
document doesn't currently have version metadata, so not something we can address immediately.
Until they do this could be pulled from settings, and from OpenAPIRenderer attribute, if I wish to set the version I could either use settings or subclass OpenAPIRenderer, since I am already sublassing to implement get_customizations().
Also basepath could be set in the same way
file encode.py it fills the versions like this:
swagger['info']['version'] = ''
it should be able to get the version info properly. I ended up writing my own decoder just to fill the version