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

FIX: Declare context definition to be JSON schema, fix validation errors #1867

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"additionalProperties": false
},
"context": {
"type": "object"
"description": "The context object is itself JSON schema",
"$ref": "http://json-schema.org/draft-07/schema#"
},
"expression_tests": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion src/schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ We see expressions may contain:
- Comparison operators such as `==` (equality) or `in` (subfield exists in field)
- Functions such as `intersects()`

In fact, the full list of fields is defined in the `meta.context.context` object,
In fact, the full list of fields is defined in the `meta.context` object,
which (currently) contains at the top level:

- `schema`: access to the schema itself
Expand Down
2 changes: 1 addition & 1 deletion src/schema/SCHEMA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1-dev
0.10.0-dev
2 changes: 1 addition & 1 deletion src/schema/meta/associations.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# These rules indicate whether an association (defined in meta.context.context.associations)
# These rules indicate whether an association (defined in meta.context.associations)
# applies to a given file. These are hints to allow implementations to avoid unnecessary
# directory and file reads.
#
Expand Down
Loading