Skip to content

Commit

Permalink
add object term if any is given
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Apr 28, 2024
1 parent a4709e8 commit 3c6a447
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ fn process_class(object: &object::Object) -> (serde_json::Value, HashSet<String>
"properties": {},
});

if object.term.is_some() {
schema["term"] = json!(object.term.as_ref().unwrap());
}

for attribute in &object.attributes {
let (primitives, references) = extract_primitives_and_refs(&attribute.dtypes);

Expand Down

0 comments on commit 3c6a447

Please sign in to comment.