Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
validata-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Validata
validata-ui
Commits
3825851f
Commit
3825851f
authored
Jun 21, 2019
by
Christophe Benz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder keys, remove comment
parent
63c45156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
validata_ui/views.py
validata_ui/views.py
+8
-8
No files found.
validata_ui/views.py
View file @
3825851f
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment