Skip to content

Commit

Permalink
fix: references on merge, formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Feb 9, 2024
1 parent db44c3b commit df51c1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/schemaGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ def generate_warnings_for_each_type(uiConfig, dbConfig, schema, curUiType):
newSchemaField = uiTypetoSchemaFn.get(curUiType)(
field, dbConfig, "configKey"
)
schemaDiff = diff(newSchemaField, curSchemaField)
schemaDiff = get_json_diff(newSchemaField, curSchemaField)
if schemaDiff:
warnings.warn(
"For type:{} field:{} Difference is : \n\n {} \n".format(
Expand All @@ -1259,7 +1259,7 @@ def generate_warnings_for_each_type(uiConfig, dbConfig, schema, curUiType):
newSchemaField = uiTypetoSchemaFn.get(curUiType)(
field, dbConfig, "configKey"
)
schemaDiff = diff(newSchemaField, curSchemaField)
schemaDiff = get_json_diff(newSchemaField, curSchemaField)
if schemaDiff:
warnings.warn(
"For type:{} field:{} Difference is : \n\n {} \n".format(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": ["secretTextInputField"],
"required": ["secretTextInputField", "singleSelectField"],
"type": "object",
"properties": {
"secretTextInputField": {
Expand All @@ -26,7 +26,8 @@
"type": "object",
"properties": {
"android": {
"type": "string"
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^([0-9]{0,100})$"
}
}
},
Expand All @@ -35,6 +36,9 @@
"properties": {
"android": {
"type": "boolean"
},
"web": {
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -86,6 +90,10 @@
"enum": ["cloud"]
}
}
},
"checkboxField": {
"type": "boolean",
"default": true
}
}
}
Expand Down

0 comments on commit df51c1e

Please sign in to comment.