Skip to content

Conversation

atckr
Copy link
Contributor

@atckr atckr commented Aug 10, 2023

No description provided.

@atckr atckr requested review from esoterra and sadroeck August 10, 2023 22:19
@atckr atckr requested a review from pvetere August 21, 2023 14:44
compiler.add_resource(DEFAULT_SCHEMA_URL, schema).unwrap();
let sch_index = compiler.compile(DEFAULT_SCHEMA_URL, &mut schemas).unwrap();
let result = schemas.validate(&instance, sch_index);
if result.is_err() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this block could be abbreviated to just:
!result.is_err()

Same with the one below.

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