Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
af1a8f31
Commit
af1a8f31
authored
May 23, 2019
by
Pierre Dittgen
Browse files
Ignore schemas that fail to load
parent
5b18fc90
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/validate_helper.py
View file @
af1a8f31
...
@@ -21,7 +21,8 @@ class ValidatorHelper:
...
@@ -21,7 +21,8 @@ class ValidatorHelper:
schema
=
schema_config
[
'schema'
]
schema
=
schema_config
[
'schema'
]
log
.
info
(
'Loading schema %r from %r'
,
code
,
schema
)
log
.
info
(
'Loading schema %r from %r'
,
code
,
schema
)
schema_instance
=
cls
.
validator
.
load_schema
(
schema
)
schema_instance
=
cls
.
validator
.
load_schema
(
schema
)
cls
.
schema_dict
[
code
]
=
{
**
schema_config
,
"schema_instance"
:
schema_instance
}
if
schema_instance
:
cls
.
schema_dict
[
code
]
=
{
**
schema_config
,
"schema_instance"
:
schema_instance
}
@
classmethod
@
classmethod
def
schema_exist
(
cls
,
schema_code
):
def
schema_exist
(
cls
,
schema_code
):
...
...
Write
Preview
Supports
Markdown
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