Skip to content

Commit b1bd70e

Browse files
committed
fix: adjust additionalProperties of manifest schema
1 parent a03d64f commit b1bd70e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

assets/manifest.schema.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@
158158
}
159159
]
160160
}
161-
},
162-
"additionalProperties": false
161+
}
163162
}
164163
},
165-
"additionalProperties": false,
166164
"required": [
167165
"id",
168166
"name",
@@ -199,12 +197,10 @@
199197
"": {
200198
"type": "string"
201199
}
202-
},
203-
"additionalProperties": false
200+
}
204201
}
205202
},
206-
"required": ["type", "protocol"],
207-
"additionalProperties": false
203+
"required": ["type", "protocol"]
208204
}
209205
}
210206
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev": "yarn build:ts --watch",
1111
"build": "yarn build:json-schema && yarn build:ajv-validator && yarn build:ts",
1212
"build:ts": "tsc -p tsconfig.build.json",
13-
"build:json-schema": "json2ts --input assets/manifest.schema.json --output generated/manifest.d.ts",
13+
"build:json-schema": "json2ts --input assets/manifest.schema.json --output generated/manifest.d.ts --additionalProperties=false",
1414
"build:ajv-validator": "node tools/schema-compile.mjs",
1515
"docs:html": "typedoc --tsconfig tsconfig.build.json --entryPoints src/index.ts --excludePrivate --theme default --out docs",
1616
"lint:raw": "eslint",

0 commit comments

Comments
 (0)