Skip to content

Commit 4a987ab

Browse files
committed
Revert "Faktor out schema (to different PR);"
This reverts commit 300eaca.
1 parent 300eaca commit 4a987ab

19 files changed

+1632
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-05/schema#",
3+
"title": "Binding-request-parameters-schema",
4+
"description": "Schema for parameters for a service-binding creation with an instances of Application Autoscaler.",
5+
"type": "object",
6+
7+
"properties": {
8+
"binding-configuration": {
9+
"$ref": "./binding-configuration.schema.json"
10+
},
11+
"scaling-policy": {
12+
"$ref": "./scaling-policy.schema.json"
13+
}
14+
},
15+
16+
"additionalProperties": false
17+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-05/schema#",
3+
"title": "",
4+
"description": "Schema for the configuration of service-bindings with instances of Application Autoscaler.",
5+
"type": "object",
6+
7+
"properties": {
8+
"app_guid": {
9+
"$ref": "./shared_definitions.json#/schemas/guid"
10+
},
11+
"credential-type": {
12+
"type": "string",
13+
"enum": [
14+
"x509",
15+
"binding-secret"
16+
]
17+
}
18+
},
19+
"required": ["app_guid"],
20+
"additionalProperties": false
21+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-05/schema#",
3+
"title": "",
4+
"description": "Schema for a scaling-policy.",
5+
"type": "object",
6+
7+
"properties": {
8+
"configuration": {
9+
"type": "object",
10+
"properties": {
11+
"custom_metrics": {
12+
"type": "object",
13+
"properties": {
14+
"metric_submission_strategy": {
15+
"type": "object",
16+
"properties": {
17+
"allow_from": {
18+
"type": "string",
19+
"enum": [
20+
"bound_app",
21+
"same_app"
22+
]
23+
}
24+
},
25+
"required": [
26+
"allow_from"
27+
]
28+
}
29+
},
30+
"required": [
31+
"metric_submission_strategy"
32+
],
33+
"additionalProperties": false
34+
}
35+
},
36+
"required": [
37+
"custom_metrics"
38+
],
39+
"additionalProperties": false
40+
}
41+
},
42+
"additionalProperties": false
43+
}

0 commit comments

Comments
 (0)