Skip to content

Commit

Permalink
Set the encoding vocabulary in the internal encoding schema (#813)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Sep 27, 2024
1 parent 8162f87 commit 9219554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compiler/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ make_resolver(const sourcemeta::jsontoolkit::SchemaResolver &fallback) -> auto {
promise.set_value(sourcemeta::jsontoolkit::parse(R"JSON({
"$id": "tag:sourcemeta.com,2024:jsonbinpack/encoding/v1",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/core": true }
"$vocabulary": {
"https://json-schema.org/draft/2020-12/vocab/core": true,
"tag:sourcemeta.com,2024:jsonbinpack/encoding/v1": true
}
})JSON"));
} else {
promise.set_value(fallback(identifier).get());
Expand Down

0 comments on commit 9219554

Please sign in to comment.