Move the aai-schema, annotations and
[aai/schema-service.git] / aai-schema-gen / src / test / resources / dbedgerules / test.json
diff --git a/aai-schema-gen/src/test/resources/dbedgerules/test.json b/aai-schema-gen/src/test/resources/dbedgerules/test.json
new file mode 100644 (file)
index 0000000..66691eb
--- /dev/null
@@ -0,0 +1,48 @@
+{
+       "rules": [
+               {
+                       "from": "foo",
+                       "to": "bar",
+                       "label": "eats",
+                       "direction": "OUT",
+                       "multiplicity": "One2Many",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "${direction}",
+                       "prevent-delete": "NONE",
+                       "description": "Hard to describe"
+               },
+               {
+                       "from": "foo",
+                       "to": "bar",
+                       "label": "eatz",
+                       "direction": "IN",
+                       "multiplicity": "One2Many",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "${direction}",
+                       "prevent-delete": "NONE",
+                       "description": "Hard to describe"
+               },
+               {
+                       "from": "foo",
+                       "to": "baz",
+                       "label": "isVeryHappyAbout",
+                       "direction": "OUT",
+                       "multiplicity": "One2Many",
+                       "contains-other-v": "${direction}",
+                       "delete-other-v": "${direction}",
+                       "prevent-delete": "NONE",
+                       "description": "Hard to describe"
+               },
+               {
+                       "from": "quux",
+                       "to": "foo",
+                       "label": "dancesWith",
+                       "direction": "IN",
+                       "multiplicity": "One2Many",
+                       "contains-other-v": "!${direction}",
+                       "delete-other-v": "${direction}",
+                       "prevent-delete": "NONE",
+                       "description": "Hard to describe"
+               }
+       ]
+}
\ No newline at end of file