Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Version is hardcoded to empty string #40

Open
tovmeod opened this issue Jun 15, 2017 · 2 comments
Open

Version is hardcoded to empty string #40

tovmeod opened this issue Jun 15, 2017 · 2 comments

Comments

@tovmeod
Copy link

tovmeod commented Jun 15, 2017

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

@tomchristie
Copy link
Contributor

The Core API document doesn't currently have version metadata, so not something we can address immediately.

@tovmeod
Copy link
Author

tovmeod commented Jun 19, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants