Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,35 @@ making sure that you maintain a proper JSON format.
{
"propertyKeyword": "subtype",
"hidden": true
},
{
"propertyName": "extensions",
"propertyType": "group",
"propertyKeyword": "scopesExtensions",
"shouldValidate": true,
"propertyTooltip": "",
"structure": [
{
"propertyName": "pattern",
"propertyKeyword": "extensionPattern",
"shouldValidate": true,
"propertyType": "text",
"regex":"^x-"
},
{
"propertyName": "value",
"propertyKeyword": "extensionValue",
"propertyValidate": false,
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea",
"markdown": false
}
],
"dependency": {
"key": "subtype",
"value": "schema"
}
}
],
"object": [
Expand Down
3 changes: 2 additions & 1 deletion reverse_engineering/helpers/dataHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ const handleDefinitionSchemaProps = (schema, fieldOrder) => {

const fixedSchema = convertFormatToMode(setMissedType(schema));
const schemaWithAdditionalPropertiesData = handleAdditionalProperties(fixedSchema);
const reorderedSchema = commonHelper.reorderFields(schemaWithAdditionalPropertiesData, fieldOrder);
const schemaWithExtensions = handleSchemaExtensions(schemaWithAdditionalPropertiesData);
const reorderedSchema = commonHelper.reorderFields(schemaWithExtensions, fieldOrder);
const schemaWithHandledProperties = Object.keys(reorderedSchema).reduce((accumulator, property) => {
if (property === 'example') {
property = 'sample';
Expand Down