Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit d911242

Browse files
committed
add definition to service info endpoint
1 parent 1c0f80c commit d911242

1 file changed

Lines changed: 21 additions & 29 deletions

File tree

beacon_api/schemas/service-info.json

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
2-
"definitions": {},
32
"type": "object",
43
"additionalProperties": false,
4+
"definitions": {
5+
"string": {
6+
"$id": "$/definitions/string",
7+
"type": "string",
8+
"pattern": "^(.*)$"
9+
}
10+
},
511
"required": [
612
"id",
713
"name",
@@ -12,12 +18,10 @@
1218
],
1319
"properties": {
1420
"id": {
15-
"type": "string",
16-
"pattern": "^(.*)$"
21+
"$ref": "#/definitions/string"
1722
},
1823
"name": {
19-
"type": "string",
20-
"pattern": "^(.*)$"
24+
"$ref": "#/definitions/string"
2125
},
2226
"type": {
2327
"type": "object",
@@ -28,22 +32,18 @@
2832
],
2933
"properties": {
3034
"group": {
31-
"type": "string",
32-
"pattern": "^(.*)$"
35+
"$ref": "#/definitions/string"
3336
},
3437
"artifact": {
35-
"type": "string",
36-
"pattern": "^(.*)$"
38+
"$ref": "#/definitions/string"
3739
},
3840
"version": {
39-
"type": "string",
40-
"pattern": "^(.*)$"
41+
"$ref": "#/definitions/string"
4142
}
4243
}
4344
},
4445
"description": {
45-
"type": "string",
46-
"pattern": "^(.*)$"
46+
"$ref": "#/definitions/string"
4747
},
4848
"organization": {
4949
"type": "object",
@@ -53,38 +53,30 @@
5353
],
5454
"properties": {
5555
"name": {
56-
"type": "string",
57-
"pattern": "^(.*)$"
56+
"$ref": "#/definitions/string"
5857
},
5958
"url": {
60-
"type": "string",
61-
"pattern": "^(.*)$"
59+
"$ref": "#/definitions/string"
6260
}
6361
}
6462
},
6563
"contactUrl": {
66-
"type": "string",
67-
"pattern": "^(.*)$"
64+
"$ref": "#/definitions/string"
6865
},
6966
"documentationUrl": {
70-
"type": "string",
71-
"pattern": "^(.*)$"
67+
"$ref": "#/definitions/string"
7268
},
7369
"createdAt": {
74-
"type": "string",
75-
"pattern": "^(.*)$"
70+
"$ref": "#/definitions/string"
7671
},
7772
"updatedAt": {
78-
"type": "string",
79-
"pattern": "^(.*)$"
73+
"$ref": "#/definitions/string"
8074
},
8175
"environment": {
82-
"type": "string",
83-
"pattern": "^(.*)$"
76+
"$ref": "#/definitions/string"
8477
},
8578
"version": {
86-
"type": "string",
87-
"pattern": "^(.*)$"
79+
"$ref": "#/definitions/string"
8880
}
8981
}
9082
}

0 commit comments

Comments
 (0)