summaryrefslogtreecommitdiffstats
path: root/feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2020-02-04 16:08:43 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-04 16:08:43 +0000
commit06a1c3040a4a1a88654a91761fda8967806c9fd3 (patch)
tree119054e67b0029b2a07085a4720d35cfbd4d0c40 /feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json
parent9d5791ad96a66ca512f44aa2944c4be64dce6453 (diff)
parentbaa4e928207f5930fcd620bddddcd493aa7a4122 (diff)
Merge "domain native and operational policies support"
Diffstat (limited to 'feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json')
-rw-r--r--feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json150
1 files changed, 150 insertions, 0 deletions
diff --git a/feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json b/feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json
new file mode 100644
index 00000000..d1866c6b
--- /dev/null
+++ b/feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json
@@ -0,0 +1,150 @@
+{
+ "definitions": {},
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "http://www.onap.org/policy/models/schemas/onap.policies.controlloop.native.Drools.schema.json",
+ "type": "object",
+ "title": "Domain onap.policies.controlloop.native.Drools Policy root schema",
+ "required": [
+ "type",
+ "type_version",
+ "version",
+ "metadata",
+ "properties"
+ ],
+ "properties": {
+ "type": {
+ "$id": "#/properties/type",
+ "type": "string",
+ "title": "Policy Type",
+ "default": "onap.policies.native.Drools",
+ "examples": [
+ "onap.policies.native.Drools"
+ ],
+ "pattern": "^(.+)$"
+ },
+ "type_version": {
+ "$id": "#/properties/type_version",
+ "type": "string",
+ "title": "Policy Type Version",
+ "examples": [
+ "1.0.0"
+ ],
+ "pattern": "^(.+)$"
+ },
+ "version": {
+ "$id": "#/properties/version",
+ "type": "string",
+ "title": "Version",
+ "examples": [
+ "1.0.0"
+ ],
+ "pattern": "^(.+)$"
+ },
+ "name": {
+ "$id": "#/properties/name",
+ "type": "string",
+ "title": "Name",
+ "examples": [
+ "example"
+ ],
+ "pattern": "^(.+)$"
+ },
+ "metadata": {
+ "$id": "#/properties/metadata",
+ "type": "object",
+ "title": "Metadata",
+ "required": [
+ "policy-id"
+ ],
+ "properties": {
+ "policy-id": {
+ "$id": "#/properties/metadata/properties/policy-id",
+ "type": "string",
+ "title": "The Policy-id Schema",
+ "examples": [
+ "example"
+ ],
+ "pattern": "^(.+)$"
+ }
+ }
+ },
+ "properties": {
+ "$id": "#/properties/properties",
+ "type": "object",
+ "title": "Properties",
+ "required": [
+ "rulesArtifact"
+ ],
+ "properties": {
+ "rulesArtifact": {
+ "$id": "#/properties/properties/properties/rulesArtifact",
+ "type": "object",
+ "title": "Rules Artifact",
+ "required": [
+ "groupId",
+ "artifactId",
+ "version"
+ ],
+ "properties": {
+ "groupId": {
+ "$id": "#/properties/properties/properties/rulesArtifact/properties/groupId",
+ "type": "string",
+ "title": "Group Id",
+ "examples": [
+ "org.onap.policy.controlloop"
+ ],
+ "pattern": "^(.*)$"
+ },
+ "artifactId": {
+ "$id": "#/properties/properties/properties/rulesArtifact/properties/artifactId",
+ "type": "string",
+ "title": "Artifact ID",
+ "examples": [
+ "example"
+ ],
+ "pattern": "^(.*)$"
+ },
+ "version": {
+ "$id": "#/properties/properties/properties/rulesArtifact/properties/version",
+ "type": "string",
+ "title": "Version",
+ "examples": [
+ "1.0.0"
+ ],
+ "pattern": "^(.*)$"
+ }
+ }
+ },
+ "controller": {
+ "$id": "#/properties/properties/properties/controller",
+ "type": "object",
+ "title": "Controller",
+ "required": [
+ "name",
+ "version"
+ ],
+ "properties": {
+ "name": {
+ "$id": "#/properties/properties/properties/controller/properties/name",
+ "type": "string",
+ "title": "Name",
+ "examples": [
+ "example"
+ ],
+ "pattern": "^(.+)$"
+ },
+ "version": {
+ "$id": "#/properties/properties/properties/controller/properties/version",
+ "type": "string",
+ "title": "Version",
+ "examples": [
+ "1.0.0"
+ ],
+ "pattern": "^(.*)$"
+ }
+ }
+ }
+ }
+ }
+ }
+}