diff --git a/Makefile b/Makefile index 608cde6e..470aa8e1 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ all: common test node_modules .PHONY: common common: $(GENERATED) node_modules $(TIME) $(NODE) $(JSONSCHEMA) metaschema schemas examples rules - $(TIME) $(NODE) $(JSONSCHEMA) lint schemas examples + $(TIME) $(NODE) $(JSONSCHEMA) lint schemas examples \ + --rule ./rules/identifiers.json \ + --rule ./rules/dialect.json $(SHELLCHECK) scripts/*.sh ./scripts/quality-schemas-tests-mirror.sh JQ="$(JQ)" ./scripts/quality-templates-xbrl-utr-mirror.sh diff --git a/jsonschema.json b/jsonschema.json index 9275a554..eb683627 100644 --- a/jsonschema.json +++ b/jsonschema.json @@ -12,7 +12,6 @@ "lint": { "rules": [ "./rules/comment.json", - "./rules/dialect.json", "./rules/jsonld-bare-override.json", "./rules/jsonld-constants-iri-literal.json", "./rules/jsonld-constants-lexical.json", diff --git a/rules/identifiers.json b/rules/identifiers.json new file mode 100644 index 00000000..bb60ec32 --- /dev/null +++ b/rules/identifiers.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "std/identifiers", + "description": "Schemas must not declare identifiers, as the registry derives them from file paths", + "properties": { + "$id": false + } +}