Skip to content
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

[#566] Add meta-schema.json and test using it. #611

Merged
merged 3 commits into from
Jan 4, 2018
Merged

Conversation

kindly
Copy link
Contributor

@kindly kindly commented Nov 3, 2017

related #566

Copy link
Member

@jpmckinney jpmckinney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a few comments. It might be good for easier change-tracking to first commit the draft-04 schema, and then commit our changes, so that we can easily see the divergence when reviewing history.

"anyOf": { "$ref": "#/definitions/schemaArray" },
"oneOf": { "$ref": "#/definitions/schemaArray" },
"not": { "$ref": "#" },
"$ref": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For $ref, draft-06 has:

        "$ref": {
            "type": "string",
            "format": "uri-reference"
        },

though we'd use "format": "uri" for draft-04.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the issue here is that internal $ref i.e '#/definitions/Awards' would not pass "uri" validataion. Which I think is why they added the new format.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, makes sense.

"type": "boolean",
"default": false
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra line.

Add script make_metaschema.py to make meta-schema.json from patch and
draft-04.  Also add test to make sure this is run.
@@ -31,14 +31,15 @@ def object_pairs_hook(pairs):


DRAFT_SCHEMA_PATH = path(__file__).parent / 'json-schema-draft-4.json'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constant's value needs to be updated because the file moved in another commit, but if we aren't using the constant anymore, we can just remove it.

@jpmckinney jpmckinney merged commit feb712c into 1.1-dev Jan 4, 2018
@jpmckinney jpmckinney deleted the 566-meta-schema branch January 4, 2018 17:17
@jpmckinney jpmckinney added this to the Minor: Build changes milestone Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants