-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON export version attribute doesn't match JSON-Schema #720
Comments
Sure thing. I would change the type to string, I think so that we can use a semantic version in future. Do you have any other thoughts regarding the schema? Is it still serving your purposes? |
It's been great for us. Semantic versioning is cool, but you'll have to
think about what constitutes a "non-breaking change". Some previous
discussion:
https://snowplowanalytics.com/blog/2014/05/13/introducing-schemaver-for-semantic-versioning-of-schemas/
We have one now for ME-models too. In fact, I think we should JSON-Schema
everything.
…On Thu, May 31, 2018 at 4:28 PM Moritz E. Beber ***@***.***> wrote:
It would be great to pull the JSON-Schema document out into an independent
file, so it can be more easily incorporated into non-Python projects.
Sure thing. I would change the type to string, I think so that we can use
a semantic version in future.
Do you have any other thoughts regarding the schema? Is it still serving
your purposes?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#720 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMUYLNvuAFjwrWVUzfy3Z-A6lfcrRuWks5t4HyqgaJpZM4UV2lm>
.
|
@Midnighter I can submit a PR for this if the solution is to just switch the type in the JSON Schema to "string". I can also pull the schema out into a separate file if you want, or just leave it as is. |
My rationale for waiting on this was that we will soon have compartment classes and thus need a version |
Ok. I'm not in a rush. Let's leave this open to wait for version "2". |
Are there any updates on this? Though the solution of this issue is quite simple and has already been discussed, json_schema still shows the version type to be an integer instead of string. |
The basic problem was addressed by #956. |
Problem description
Our team (credit @dbourdeveloper) noticed that the JSON output has a version attribute as a string, but the JSON-Schema specifies that it should be a number:
cobrapy/cobra/io/json.py
Line 13 in 1ca1bf3
cobrapy/cobra/io/json.py
Line 148 in 1ca1bf3
Since I'm here, a small suggestion: It would be great to pull the JSON-Schema document out into an independent file, so it can be more easily incorporated into non-Python projects.
Thanks!!
The text was updated successfully, but these errors were encountered: