Skip to content

Commit 0775e3c

Browse files
committed
removed evaluate_metaschema (requires $merge or $patch)
1 parent c15056e commit 0775e3c

File tree

6 files changed

+3
-102
lines changed

6 files changed

+3
-102
lines changed

schema/evaluate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "http://www.json-script.com/schema/evaluate.json#",
3-
"$schema": "http://json-script.com/schema/evaluate_metaschema.json#",
3+
"$schema": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json#",
44
"title": "JSONScript evaluation schema",
55
"description": "Schema with custom keywords that evaluates JSON script. It assumes that the script is valid",
66
"allOf": [

schema/evaluate.json.dot

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "http://www.json-script.com/schema/evaluate.json#",
3-
"$schema": "http://www.json-script.com/schema/evaluate_metaschema.json#",
3+
"$schema": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json#",
44
"title": "JSONScript evaluation schema",
55
"description": "Schema with custom keywords that evaluates JSON script. It assumes that the script is valid",
66
"allOf": [

schema/evaluate_metaschema.json

-58
This file was deleted.

schema/evaluate_metaschema.json.dot

-39
This file was deleted.

scripts/generate.js

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var instructions = require('../instructions');
77
generateSchema('schema');
88
generateSchema('schema', true);
99
generateSchema('evaluate');
10-
generateSchema('evaluate_metaschema');
1110

1211

1312
function generateSchema(schemaName, strictSchema) {

spec/evaluate.spec.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ var ajv = Ajv({ allErrors: true, v5: true });
66

77

88
describe('evaluate schema', function() {
9-
it('should be valid according to evaluate_metaschema and should compile', function() {
10-
ajv.addMetaSchema(require('../schema/evaluate_metaschema'));
9+
it('should be valid and should compile', function() {
1110
ajv.compile(require('../schema/evaluate'));
1211
});
1312
});

0 commit comments

Comments
 (0)