Skip to content
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
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ TIME ?= time
include generated.mk

all: common test node_modules
$(NODE) $(JSONSCHEMA) fmt schemas meta rules test
$(NODE) $(JSONSCHEMA) fmt schemas rules test

.PHONY: common
common: $(GENERATED) node_modules
$(TIME) $(NODE) $(JSONSCHEMA) metaschema schemas meta rules
$(TIME) $(NODE) $(JSONSCHEMA) lint schemas meta
$(TIME) $(NODE) $(JSONSCHEMA) validate meta/schemas-root.json schemas
$(TIME) $(NODE) $(JSONSCHEMA) metaschema schemas rules
$(TIME) $(NODE) $(JSONSCHEMA) lint schemas
$(SHELLCHECK) scripts/*.sh
./scripts/quality-schemas-tests-mirror.sh
./scripts/quality-templates-xbrl-utr-mirror.sh

.PHONY: lint
lint: common node_modules
$(TIME) $(NODE) $(JSONSCHEMA) fmt schemas meta rules test --check
$(TIME) $(NODE) $(JSONSCHEMA) fmt schemas rules test --check

.PHONY: test
test: node_modules
Expand Down
3 changes: 2 additions & 1 deletion jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"./rules/license.json",
"./rules/links.json",
"./rules/single-line-text.json",
"./rules/symbol.json"
"./rules/symbol.json",
{ "path": "./rules/root.json", "topLevel": true }
]
}
}
25 changes: 0 additions & 25 deletions meta/schemas-root.json

This file was deleted.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@sourcemeta/jsonschema": "^16.1.0"
"@sourcemeta/jsonschema": "^16.2.0"
}
}
7 changes: 7 additions & 0 deletions rules/root.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "std/root",
"description": "Root schemas must declare a dialect, the license, and links to the corresponding standards",
"type": "object",
"required": [ "$schema", "x-license", "x-links" ]
}
Loading