Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Json references #37

Closed
wants to merge 14 commits into from
Closed

Json references #37

wants to merge 14 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 25, 2015

This is a continuation on draft 4 PR.
It also contains the previous PR with reference support.

This PR adds both local and remote references. It should follow the id-attribute as far as I know. Atleast the basic cases.


-include_lib("common_test/include/ct.hrl").

-define(json_schema_draft4, <<"http://json-schema.org/draft-04/schema#">>).

Choose a reason for hiding this comment

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

According to Elvis:

Invalid macro name json_schema_draft4 on line 61. Use UPPER_CASE.

case jesse_lib:is_json_object(Schema) of
true ->
State1 = jesse_state:set_current_schema(State0, Schema),
State2 = jesse_schema_validator:validate_with_state(Schema, Value, State1),

Choose a reason for hiding this comment

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

According to Elvis:

Line 1127 is too long: State2 = jesse_schema_validator:validate_with_state(Schema, Value, State1),.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants