-
Notifications
You must be signed in to change notification settings - Fork 550
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
schema/state.json: Add a JSON Schema for the state JSON #481
Conversation
ef4c6b0
to
d31a3bf
Compare
I know you've mentioned your opinion on the redundancy of 'schema' in the filename, but I'm holding to that. Even in the image spec, for multiple schemas, they are named |
On Thu, Jun 02, 2016 at 05:18:00AM -0700, Vincent Batts wrote:
I don't see the point, but it's fine with me 1. Is that just for |
The defs* files are not schema particularly themselves. I'm fairly confident that it isn't just my own opinion of logical file naming, that the schema files to validate against, would actually have 'schema' in the name. All other files would be sourced as needed. |
On Fri, Jun 03, 2016 at 10:29:45AM -0700, Vincent Batts wrote:
The current schema-linux.json is also not a stand-alone schema.
That sounds like “only use -schema for entrypoint files” 1. I'll |
To make it clear that these schemas are for validating config.json (and not, for example, state JSON). I've left the IDs alone for now, because my PR adjusting those was rejected [1]. The rule for the -schema portion is "use it for entrypoint files" [2]. [1]: opencontainers#453 [2]: opencontainers#481 (comment) Signed-off-by: W. Trevor King <[email protected]>
On Fri, Jun 03, 2016 at 11:20:05AM -0700, W. Trevor King wrote:
Rerolled with ef4c6b0 → b4bcddb, which also rebases onto master |
for reference, could provide a pastebin or gist to the state.json you were testing against? |
To make it clear that these schemas are for validating config.json (and not, for example, state JSON). I've left the IDs alone for now, because my PR adjusting those was rejected [1]. The rule for the -schema portion is "use it for entrypoint files" [2]. [1]: opencontainers#453 [2]: opencontainers#481 (comment) Signed-off-by: W. Trevor King <[email protected]>
1 similar comment
rebase please |
To make it clear that these schemas are for validating config.json (and not, for example, state JSON). I've left the IDs alone for now, because my PR adjusting those was rejected [1]. The rule for the -schema portion is "use it for entrypoint files" [2]. [1]: opencontainers#453 [2]: opencontainers#481 (comment) Signed-off-by: W. Trevor King <[email protected]>
So we can use it in the coming state-schema.json without duplication. While I'm touching it, I updated the spec title to match the project README's header. I also dropped the "id" because none of the other defs.json entries had an ID. Signed-off-by: W. Trevor King <[email protected]>
So we can use it in the coming state-schema.json without duplication. I dropped the "id" because none of the other defs.json entries had an ID. Signed-off-by: W. Trevor King <[email protected]>
The IDs namespace the fields within the OCI, with /runtime to select the opencontainers/runtime-spec project, and /state to select the state JSON within runtime-spec. Signed-off-by: W. Trevor King <[email protected]>
1 similar comment
This slipped through the rename in 2a5986f (schema/state-schema.json: Add a JSON Schema for the state JSON, 2016-06-01, opencontainers#481) and the first round of fixes in dfb85b1 (schema/README: Fix links to (config|state)-schema.json, 2016-06-13, opencontainers#498). Reported by hapnermw [1]. [1]: opencontainers#517 Signed-off-by: W. Trevor King <[email protected]>
To make it clear that these schemas are for validating config.json (and not, for example, state JSON). I've left the IDs alone for now, because my PR adjusting those was rejected [1]. The rule for the -schema portion is "use it for entrypoint files" [2]. [1]: opencontainers#453 [2]: opencontainers#481 (comment) Signed-off-by: W. Trevor King <[email protected]>
This slipped through the rename in 2a5986f (schema/state-schema.json: Add a JSON Schema for the state JSON, 2016-06-01, opencontainers#481) and the first round of fixes in dfb85b1 (schema/README: Fix links to (config|state)-schema.json, 2016-06-13, opencontainers#498). Reported by hapnermw [1]. [1]: opencontainers#517 Signed-off-by: W. Trevor King <[email protected]>
Make it easy for folks to validate state JSON the same way they can
currently validate config.json.
This is spun off from #453, and I've left the config-oriented IDs
alone (with their /schema/bundle/… IDs) to avoid pulling in that
rejected adjustment.