diff --git a/src/main/java/edu/isi/oba/config/CONFIG_FLAG.java b/src/main/java/edu/isi/oba/config/CONFIG_FLAG.java index b9622be..f85e99e 100644 --- a/src/main/java/edu/isi/oba/config/CONFIG_FLAG.java +++ b/src/main/java/edu/isi/oba/config/CONFIG_FLAG.java @@ -9,5 +9,6 @@ public enum CONFIG_FLAG { PATH_GET, PATH_PATCH, PATH_POST, - PATH_PUT + PATH_PUT, + REQUIRED_PROPERTIES_FROM_CARDINALITY, } diff --git a/src/main/java/edu/isi/oba/config/YamlConfig.java b/src/main/java/edu/isi/oba/config/YamlConfig.java index 56052d6..d0e9b31 100644 --- a/src/main/java/edu/isi/oba/config/YamlConfig.java +++ b/src/main/java/edu/isi/oba/config/YamlConfig.java @@ -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"; @@ -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; }