Commit babc4ce6 authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: rename json_schema_url -> schema_url

To follow the API as the new JSON editor
parent 6b2e0b92
Pipeline #31528 failed with stage
in 0 seconds
......@@ -112,10 +112,10 @@
model_language = 'python';
} else if (options.content_type === 'application/json') {
model_language = 'json';
state_dict.json_schema_url = options.json_schema_url;
state_dict.schema_url = options.schema_url;
} else if (options.content_type === 'application/x-yaml') {
model_language = 'yaml';
state_dict.json_schema_url = options.json_schema_url;
state_dict.schema_url = options.schema_url;
}
state_dict.model_language = model_language;
state_dict.value = options.value || '';
......@@ -350,10 +350,10 @@
if (this.state.model_language === 'json') {
let schemas = []
if (this.state.json_schema_url) {
if (this.state.schema_url) {
schemas.push(
{
uri: this.state.json_schema_url,
uri: this.state.schema_url,
fileMatch: "*"
}
)
......
......@@ -133,7 +133,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(\'content_type\', context.getContentType()), (\'json_schema_url\', "%s/OpenAPIType_viewOpenAPIJSONSchema" % context.absolute_url())]</string> </value>
<value> <string>python: [(\'content_type\', context.getContentType()), (\'schema_url\', "%s/OpenAPIType_viewOpenAPIJSONSchema" % context.absolute_url())]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -138,7 +138,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(\'content_type\', \'application/json\'), (\'json_schema_url\', context.getSlapOSInstanceParameterSchemaURL())]</string> </value>
<value> <string>python: [(\'content_type\', \'application/json\'), (\'schema_url\', context.getSlapOSInstanceParameterSchemaURL())]</string> </value>
</item>
</dictionary>
</pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment