Skip to content

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
@codecov
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants