diff options
Diffstat (limited to 'aai-annotations')
4 files changed, 9 insertions, 2 deletions
diff --git a/aai-annotations/pom.xml b/aai-annotations/pom.xml index 1e03e0ef..4dab523e 100644 --- a/aai-annotations/pom.xml +++ b/aai-annotations/pom.xml @@ -27,12 +27,12 @@ <parent> <groupId>org.onap.aai.aai-common</groupId> <artifactId>aai-common</artifactId> - <version>1.3.1-SNAPSHOT</version> + <version>1.4.0-SNAPSHOT</version> </parent> <artifactId>aai-annotations</artifactId> <name>aai-annotations</name> <packaging>jar</packaging> - <version>1.3.1-SNAPSHOT</version> + <version>1.4.0-SNAPSHOT</version> <properties> <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> </properties> diff --git a/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java b/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java index 8d03d8ab..d9e9f0fd 100644 --- a/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java +++ b/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java @@ -39,6 +39,7 @@ public @interface Metadata { String defaultValue() default ""; String searchable() default ""; String uniqueProps() default ""; + String requiredProps() default ""; String uriTemplate() default ""; String extendsFrom() default ""; String isAbstract() default ""; diff --git a/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java b/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java index a127ba7f..39cfdec4 100644 --- a/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java +++ b/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java @@ -61,6 +61,11 @@ public enum ObjectMetadata { */ UNIQUE_PROPS("uniqueProps"), /** + * properties marked as required + * <br><b>comma separated list</b> + */ + REQUIRED_PROPS("requiredProps"), + /** * uri template for this object */ URI_TEMPLATE("uriTemplate"), diff --git a/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java b/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java index 52c74b6e..a518e0c2 100644 --- a/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java +++ b/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java @@ -36,6 +36,7 @@ public class AnnotationsTest { defaultValue = "", searchable = "", uniqueProps = "", + requiredProps = "", uriTemplate = "", extendsFrom = "", isAbstract = "", |