We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 029801a + ae82e31 commit af66bb9Copy full SHA for af66bb9
src/jesse_lib.erl
@@ -239,7 +239,7 @@ compare_properties(Value1, Value2) ->
239
%% @doc Returns "id" or "$id" based on the value of $schema.
240
-spec get_schema_id_key(Schema :: jesse:json_term()) -> binary().
241
get_schema_id_key(Schema) ->
242
- case jesse_json_path:value(?SCHEMA, Schema, undefined) of
+ case jesse_json_path:value(?SCHEMA, Schema, ?default_schema_ver) of
243
?json_schema_draft6 -> ?ID;
244
_ -> ?ID_OLD
245
end.
0 commit comments