Commit 3825851f authored by Christophe Benz's avatar Christophe Benz

Reorder keys, remove comment

parent 63c45156
......@@ -93,7 +93,6 @@ class SchemaInstance:
self.url = schema_reference.get_schema_url(ref=self.ref)
else:
# Neither schema_name or schema_url were given.
abort(400, "L'un des paramètres est nécessaire : 'schema_name', 'schema_url'")
try:
......@@ -541,18 +540,19 @@ def custom_validator():
if input_param is None:
schema_info = compute_schema_info(schema_instance.schema, schema_instance.url)
return render_template('validation_form.html',
schema_info=schema_info,
branches=schema_instance.branches,
tags=schema_instance.tags,
schema_current_version=schema_instance.ref,
doc_url=schema_instance.doc_url,
schema_params=schema_instance.request_parameters(),
section_title=schema_instance.section_title,
breadcrumbs=[
{'url': url_for('home'), 'title': 'Accueil'},
{'title': schema_instance.section_title},
{'title': schema_info['title']},
])
],
doc_url=schema_instance.doc_url,
schema_current_version=schema_instance.ref,
schema_info=schema_info,
schema_params=schema_instance.request_parameters(),
section_title=schema_instance.section_title,
tags=schema_instance.tags,
)
# Process URL
else:
......
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