Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Introduce json schema validation #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
jf-tech merged 1 commit into master from jsonschema
Sep 7, 2020
Merged

Introduce json schema validation #25

jf-tech merged 1 commit into master from jsonschema
Sep 7, 2020

Conversation

@jf-tech
Copy link
Owner

@jf-tech jf-tech commented Sep 7, 2020

Given the complexity of omniparser schemas (all of which are written in json), we'll use json schema to validate these schemas :)

Created schemavalidate package for generating each schema section json schema and helper for doing json validation.

Added parser_settings validation to parser.go
Added transform_declarations validation to omniv2/plugin.go

Given the complexity of omniparser schemas (all of which are written in json), we'll use json schema to
validate these schemas :)
Created `schemavalidate` package for generating each schema section json schema and helper for doing json validation.
Added `parser_settings` validation to parser.go
Added `transform_declarations` validation to omniv2/plugin.go
Copy link

codecov bot commented Sep 7, 2020

Codecov Report

Merging #25 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@ Coverage Diff @@
## master #25 +/- ##
=========================================
 Coverage 100.00% 100.00% 
=========================================
 Files 24 24 
 Lines 1037 1040 +3 
=========================================
+ Hits 1037 1040 +3 
Impacted Files Coverage Δ
omniparser/parser.go 100.00% <100.00%> (ø)
omniparser/schemaplugin/omni/v2/plugin.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 043e2f8...e0f8f49. Read the comment docs.

@jf-tech jf-tech merged commit d7f9681 into master Sep 7, 2020
@jf-tech jf-tech deleted the jsonschema branch September 7, 2020 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /