@markuplint/ml-spec
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -22,3 +22,3 @@ /** | ||
export interface PermittedContentRequire { | ||
require: Model; | ||
require: Model | PermittedContentPattern[]; | ||
max?: number; | ||
@@ -29,3 +29,3 @@ min?: number; | ||
export interface PermittedContentOptional { | ||
optional: Model; | ||
optional: Model | PermittedContentPattern[]; | ||
max?: number; | ||
@@ -45,2 +45,6 @@ _TODO_?: string; | ||
export interface PermittedContentChoice { | ||
/** | ||
* @minItems 2 | ||
* @maxItems 5 | ||
*/ | ||
choice: [PermittedContentPattern[], PermittedContentPattern[]] | [PermittedContentPattern[], PermittedContentPattern[], PermittedContentPattern[]] | [PermittedContentPattern[], PermittedContentPattern[], PermittedContentPattern[], PermittedContentPattern[]] | [ | ||
@@ -47,0 +51,0 @@ PermittedContentPattern[], |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -19,3 +19,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"schema:gen": "ts-node ./gen/gen.ts; prettier --write './schemas/*.json';", | ||
"schema:content-models": "json2ts ./schemas/content-models.schema.json > ./src/types/permitted-structres.ts; prettier --write ./src/types/permitted-structres.ts; eslint --fix --config ../../../.eslintrc ./src/types/permitted-structres.ts", | ||
"schema:content-models": "json2ts ./schemas/content-models.schema.json > ./src/types/permitted-structures.ts; prettier --write ./src/types/permitted-structures.ts; eslint --fix --config ../../../.eslintrc ./src/types/permitted-structures.ts", | ||
"schema:attributes": "json2ts ./schemas/attributes.schema.json --cwd ./schemas > ./src/types/attributes.ts; prettier --write ./src/types/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/types/attributes.ts", | ||
@@ -35,3 +35,3 @@ "schema:aria": "json2ts ./schemas/aria.schema.json --cwd ./schemas > ./src/types/aria.ts; prettier --write ./src/types/aria.ts; eslint --fix --config ../../../.eslintrc ./src/types/aria.ts", | ||
}, | ||
"gitHead": "51af6a64bb8da54376a138f19e3f15a2f759a967" | ||
"gitHead": "4ade31aab89b4bcc3527d4b00bcbfa3dbd6eb032" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129071
2993