From 28f5cfef5027e68efd184276714f013b616a4d27 Mon Sep 17 00:00:00 2001 From: Pavel Paroulek Date: Sat, 23 Nov 2019 15:43:04 +0100 Subject: Adding new schema version Issue-ID: AAI-2583 Signed-off-by: Pavel Paroulek Change-Id: Ic56c132cbe74ac8895cbb3587eca7eef8fea351d --- src/main/java/org/onap/aai/graphgraph/App.java | 2 +- src/main/resources/application.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/onap/aai/graphgraph/App.java b/src/main/java/org/onap/aai/graphgraph/App.java index 910c086..ed1bb9a 100644 --- a/src/main/java/org/onap/aai/graphgraph/App.java +++ b/src/main/java/org/onap/aai/graphgraph/App.java @@ -49,7 +49,7 @@ public class App{ // to some initialization issues. By all means feel free to improve and move it to Spring public static void loadSchemes(ConfigurableApplicationContext context){ String version; - for (int i = 10; i < 17; i++) { + for (int i = 10; i < 19; i++) { version = "v" + i; moxyLoaders.put(version, new MoxyLoader(new SchemaVersion(version), (NodeIngestor) context.getBean("nodeIngestor")) ); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1727fb1..1576633 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -14,7 +14,7 @@ schema.ingest.file=${server.local.startpath}/application.properties schema.uri.base.path=/aai # Lists all of the versions in the schema -schema.version.list=v10,v11,v12,v13,v14,v15,v16 +schema.version.list=v10,v11,v12,v13,v14,v15,v16,v17,v18 # Specifies from which version should the depth parameter to default to zero schema.version.depth.start=v10 # Specifies from which version should the related link be displayed in response payload -- cgit 1.2.3-korg