Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
european-cloud-industry
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Fonds-de-Dotation-du-Libre
european-cloud-industry
Commits
b905b80a
Commit
b905b80a
authored
Oct 03, 2022
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
validate: remove the top [ and beautify format
it seems not a valid json schema
parent
a58b450d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
396 additions
and
341 deletions
+396
-341
data/JSON-schema.json
data/JSON-schema.json
+395
-340
validator.py
validator.py
+1
-1
No files found.
data/JSON-schema.json
View file @
b905b80a
This diff is collapsed.
Click to expand it.
validator.py
View file @
b905b80a
...
@@ -30,7 +30,7 @@ for fn in filenames:
...
@@ -30,7 +30,7 @@ for fn in filenames:
continue
continue
try
:
try
:
validate
(
instance
=
data
,
schema
=
SCHEMA
[
0
]
)
validate
(
instance
=
data
,
schema
=
SCHEMA
)
except
ValidationError
as
e
:
except
ValidationError
as
e
:
invalid_json_list
.
append
({
"file"
:
fn
,
"error"
:
e
.
message
,
"path"
:
e
.
absolute_path
})
invalid_json_list
.
append
({
"file"
:
fn
,
"error"
:
e
.
message
,
"path"
:
e
.
absolute_path
})
continue
continue
...
...
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