Skip to content

Commit 2f2b31b

Browse files
committed
deal with additionalProperties
1 parent 155ffe7 commit 2f2b31b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Convertor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ class Convertor {
77
constructor(schema) {
88
this.schema = JSON.parse(JSON.stringify(schema))
99

10-
// this.specialProperties = ['allOf', 'oneOf', 'anyOf', 'not', 'items', 'properties', 'additionalProperties']
11-
this.specialProperties = ['allOf', 'anyOf', 'items', 'oneOf', 'not', 'properties']
10+
this.specialProperties = ['allOf', 'anyOf', 'items', 'oneOf', 'not', 'properties', 'additionalProperties']
1211
this.ofProperties = ['allOf', 'anyOf', 'oneOf']
1312
this.referencedSchemas = {}
1413
this.bannedKeyWords = ['$schema', '$comment', '$id', 'version', 'examples', 'id']

0 commit comments

Comments
 (0)