Skip to content

Commit de746e2

Browse files
authored
Merge pull request #59 from taras-dubyk/master
HCK-3481 add prefixItems keyword for mapping
2 parents a0e023e + 1ddfd40 commit de746e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reverse_engineering/helpers/adaptJsonSchema/mapJsonSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const mapJsonSchema = (jsonSchema, callback) => {
3434
}
3535
const mapper = partial(mapJsonSchema, partial.placeholder, callback);
3636
const propertiesLike = [ 'properties', 'definitions', 'patternProperties' ];
37-
const itemsLike = [ 'items', 'oneOf', 'allOf', 'anyOf', 'not' ];
37+
const itemsLike = [ 'items', 'prefixItems', 'oneOf', 'allOf', 'anyOf', 'not' ];
3838

3939
const copyJsonSchema = Object.assign({}, jsonSchema);
4040
const jsonSchemaWithNewProperties = applyTo(propertiesLike, copyJsonSchema, partial(mapProperties, partial.placeholder, mapper));

0 commit comments

Comments
 (0)