Skip to content

Commit

Permalink
add flag for generating required properties list
Browse files Browse the repository at this point in the history
  • Loading branch information
cweedall committed May 6, 2024
1 parent 27531a1 commit fb0c34a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/edu/isi/oba/config/CONFIG_FLAG.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ public enum CONFIG_FLAG {
PATH_GET,
PATH_PATCH,
PATH_POST,
PATH_PUT
PATH_PUT,
REQUIRED_PROPERTIES_FROM_CARDINALITY,
}
9 changes: 9 additions & 0 deletions src/main/java/edu/isi/oba/config/YamlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class YamlConfig {
put(CONFIG_FLAG.PATH_PATCH, false);
put(CONFIG_FLAG.PATH_POST, false);
put(CONFIG_FLAG.PATH_PUT, false);
put(CONFIG_FLAG.REQUIRED_PROPERTIES_FROM_CARDINALITY, false);
}};

String DEFAULT_OUTPUT_DIRECTORY = "outputs";
Expand Down Expand Up @@ -196,6 +197,14 @@ public void setDefault_properties(Boolean default_properties) {
this.configFlags.put(CONFIG_FLAG.DEFAULT_PROPERTIES, default_properties);
}

public Boolean getRequired_properties_from_cardinality() {
return this.configFlags.get(CONFIG_FLAG.REQUIRED_PROPERTIES_FROM_CARDINALITY);
}

public void setRequired_properties_from_cardinality(Boolean required_properties_from_cardinality) {
this.configFlags.put(CONFIG_FLAG.REQUIRED_PROPERTIES_FROM_CARDINALITY, required_properties_from_cardinality);
}

public AuthConfig getAuth() {
return auth;
}
Expand Down

0 comments on commit fb0c34a

Please sign in to comment.