Skip to content

Commit 42a3650

Browse files
committed
handle extensions for components schema root items
1 parent fae4d72 commit 42a3650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reverse_engineering/helpers/dataHelper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,8 @@ const handleDefinitionSchemaProps = (schema, fieldOrder) => {
641641

642642
const fixedSchema = convertFormatToMode(setMissedType(schema));
643643
const schemaWithAdditionalPropertiesData = handleAdditionalProperties(fixedSchema);
644-
const reorderedSchema = commonHelper.reorderFields(schemaWithAdditionalPropertiesData, fieldOrder);
644+
const schemaWithExtensions = handleSchemaExtensions(schemaWithAdditionalPropertiesData);
645+
const reorderedSchema = commonHelper.reorderFields(schemaWithExtensions, fieldOrder);
645646
const schemaWithHandledProperties = Object.keys(reorderedSchema).reduce((accumulator, property) => {
646647
if (property === 'example') {
647648
property = 'sample';

0 commit comments

Comments
 (0)