aboutsummaryrefslogtreecommitdiffstats
path: root/feature-lifecycle/src/main/resources/schemas/onap.policies.native.Drools-1.0.0.schema.json
blob: 8742768bb379c76fc3b5155a4c4dc8d5c397e4ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
    "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": "Policy Name",
                    "examples": [
                        "example"
                    ],
                    "pattern": "^(.+)$"
                }
            }
        },
        "properties": {
            "$id": "#/properties/properties",
            "type": "object",
            "title": "Properties",
            "required": [
                "rulesArtifact",
                "controller"
            ],
            "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"
                    ],
                    "properties": {
                        "name": {
                            "$id": "#/properties/properties/properties/controller/properties/name",
                            "type": "string",
                            "title": "Name",
                            "examples": [
                                "example"
                            ],
                            "pattern": "^(.+)$"
                        }
                    }
                }
            }
        }
    }
}