-
Notifications
You must be signed in to change notification settings - Fork 17
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
Should file_format follow semantic versioning? #2
Comments
Patch may always be 0 but is there anything gained from leaving out the |
+1 - even if we never use it, it's good to have the option. |
Is there any downside to having it? On the other hand: Would there ever be a situation where we want to release a patch version? |
I don't think there are any negatives to having it, beyond it never getting used. |
Note that nothing requires the file format to be a version number currently, this is what the examples do, but not what the schema enforces:
This opens two underlying questions to address. Requirements on the parser implementationWe need to define what an implementation is expected to do, when parsing a config.yaml document. Assume an implementation supports a format known as When a document that contains the following formats is found, we need to clarify what the reasonable behavior is for the implementation of config.yaml: For example
Guidelines for schema versioningWhen the schema itself changes, another question is when to change the major / minor / patch version number. For example:
makes sense, but the the story gets more complicated very quickly. When adding a mandatory attribute to a node that itself is optional (say, define configuration for a new exporter), is this a change in patch version only, or a change in minor version ? These guidelines needs to be clarified before reaching schema 1.0.0 |
Great summary @marcalff. Some thoughts:
By my logic, this is a breaking change that required a major version. Therefore, its extremely important to get the mandatory fields correct the first time we release any new type. In my experience, this is common in schema versioning. |
file_format currently includes major and minor, and but no patch version. This was originally discussed here.
Should we revisit this and include patch as well?
The text was updated successfully, but these errors were encountered: