Skip to content

Commit

Permalink
feat(interface_json): Add "required" member
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Mar 28, 2023
1 parent d13c221 commit 4032436
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/itkPipeline.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ ::interface_json()
optionName.SetString(opt->get_single_name().c_str(), allocator);
option.AddMember("name", optionName.Move(), allocator);

rapidjson::Value required;
required.SetBool(opt->get_required());
option.AddMember("required", required.Move(), allocator);

rapidjson::Value itemsExpected;
itemsExpected.SetInt(opt->get_items_expected());
option.AddMember("itemsExpected", itemsExpected.Move(), allocator);
Expand Down

0 comments on commit 4032436

Please sign in to comment.