-
Notifications
You must be signed in to change notification settings - Fork 2
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
Getting serious about schemas #146
Comments
I'm thinking there'll be a |
To learn / decide: how does a JSON Schema work with the plan for versioning (#7, ie. schemas being only tracked by semver major version)? How does forward compatibility work? Is it a flag in schemas? Outside of it? |
I'll be writing a custom validation tool for this, so I've been giving a little thought about how that'll work. So, the syntax will be Since this'll be the validator for everything in the OPWS dataset, it'll have to take legacies (#43) and potentially other document types (like stacks) in the future: my plan is that the validator will sniff this from the prefix of the directory (ie. For testing in other ways (ie. piping it in, a bunch of files in a working directory that's not structured like the tree root), I'm thinking it'll (complaining to STDERR) assume profiles by default, but also allow specifying which set of validations to run with flags like There should also probably be, like, a strong |
... I think its no-flags behavior (which should allow Also, one thing that'll be necessary: a |
Also, since That way, you can specify multiple ugly names by prefixing each of them with the applicable processing mode. No, wait, that's dumb, if you have files like that, you can just specify them as |
There'll have to be a style guide for the schemata (as first mentioned in #32, and probably alluded to in other issues) to serve as a sort of "meta-schema" dictating what the schema will ever include. Or, really, just after migrating repos (#147), there'll have to be a new label in issues for meta concerns (the kind that are currently tagged with "bureaucracy" labels or "policy" milestones) like #96, #149, #200, #265, etc. Then, at some point, those can be collected into some kind of document or documents that may or may not be merged with the style guide that's currently in the wiki (which'll probably get broken up into a schema style guide and a profile style guide). |
This is pretty much done now: I'll open up a new issue in opws-guidelines for the schemata style guide thing. |
I've been lax about the schema for this for way too long, mostly because I couldn't be bothered to actually learn JSON Schema (figuring, from the brief experience that I've had with it, that it wasn't sufficiently flexible for my needs).
Anyway, I'm thinking now about how I actually want to do this going forward, and I've come to the conclusion that I should be using, and testing, with an actual schema, rather than the weird, incomplete, docs-derived schema I'm using now.
Some thoughts:
The text was updated successfully, but these errors were encountered: