Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jan 21, 2025
1 parent 787760b commit b4544de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions strip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ int main(int argc, char* argv[]) {

auto &subschema{get(schema, entry.second.pointer)};

if (!subschema.is_object()) {
continue;
}

for (const auto &property : subschema.as_object()) {
const auto keyword_type{sourcemeta::jsontoolkit::default_schema_walker(
property.first, frame.vocabularies(entry.second,
Expand Down

0 comments on commit b4544de

Please sign in to comment.