Skip to content

Commit 030da5d

Browse files
committed
add jsonSchemaDialect handling
1 parent 3d9a0d2 commit 030da5d

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

forward_engineering/api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
tags: modelTags,
2121
security: modelSecurity,
2222
servers: modelServers,
23+
jsonSchemaDialect,
2324
} = data.modelData[0];
2425

2526
const containersIdsFromCallbacks = commonHelper.getContainersIdsForCallbacks(data);
@@ -45,6 +46,7 @@ module.exports = {
4546
const openApiSchema = {
4647
openapi: specVersion,
4748
info,
49+
...(jsonSchemaDialect && { jsonSchemaDialect }),
4850
servers,
4951
paths,
5052
...(webhooks && Object.keys(webhooks).length ? { webhooks } : {}),

properties_pane/model_level/modelLevelConfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,14 @@ making sure that you maintain a proper JSON format.
338338
}
339339
]
340340
},
341+
{
342+
"propertyName": "jsonSchemaDialect",
343+
"propertyKeyword": "jsonSchemaDialect",
344+
"propertyType": "text",
345+
"propertyFormat": "uri",
346+
"shouldValidate": true,
347+
"propertyTooltip": ""
348+
},
341349
{
342350
"propertyName": "servers",
343351
"propertyType": "group",

reverse_engineering/propertiesConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const modelConfig = {
33
openapi: 'dbVersion',
44
termsOfService: 'termsOfService',
55
info: 'info',
6+
jsonSchemaDialect: "jsonSchemaDialect",
67
servers: 'servers',
78
security: 'security',
89
tags: [{

0 commit comments

Comments
 (0)