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

Reorder keys, remove comment

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