Skip to content

Commit 495f37c

Browse files
committed
update type of additionalProperties
1 parent 6616d06 commit 495f37c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@omer-x/openapi-types",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "TypeScript types for the OpenAPI Specification",
55
"keywords": [
66
"swagger",

src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type ObjectSchema = {
3737
* By default, all object properties are optional. You can specify the required properties in the required list
3838
*/
3939
required?: string[],
40-
additionalProperties?: Record<string, SchemaObject> | ReferenceObject | false,
40+
additionalProperties?: SchemaObject | ReferenceObject | boolean,
4141
minProperties?: number,
4242
maxProperties?: number,
4343
};

0 commit comments

Comments
 (0)