Skip to content

Commit

Permalink
FIX: Declare context definition to be JSON schema, fix validation err…
Browse files Browse the repository at this point in the history
…ors (#1867)

* fix(schema): Use integer instead of int for type definitions

* fix(schema): Use number instead of float for type definitions

* feat(metaschema): Declare meta.context.context to be JSON schema

* rf(schema): Remove indirection in context description

* chore(schema): Bump schema minor version
  • Loading branch information
effigies authored Jul 11, 2024
1 parent 8367dbe commit 9f2a7a8
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 341 deletions.
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

0 comments on commit 9f2a7a8

Please sign in to comment.