From 9d661ab0572c486ad0534fd21d502de0782bd4ea Mon Sep 17 00:00:00 2001 From: "Kajur, Harish (vk250x)" Date: Thu, 1 Nov 2018 15:56:56 -0400 Subject: Add required properties to schema Issue-ID: AAI-1826 Change-Id: Ifc7122880e2c98888aa6b478cba3f70fb4c62e52 Signed-off-by: Kajur, Harish (vk250x) --- aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java | 1 + .../src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'aai-annotations/src/main/java') 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 @@ -60,6 +60,11 @@ public enum ObjectMetadata { *
comma separated list */ UNIQUE_PROPS("uniqueProps"), + /** + * properties marked as required + *
comma separated list + */ + REQUIRED_PROPS("requiredProps"), /** * uri template for this object */ -- cgit 1.2.3-korg