Skip to content

Commit 8be7c5e

Browse files
committed
Adjust intersystems.server schema after feedback
1 parent 13a74d1 commit 8be7c5e

File tree

1 file changed

+25
-29
lines changed

1 file changed

+25
-29
lines changed

package.json

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,27 @@
6767
"default": {
6868
"IRIS": {
6969
"webServer": {
70+
"scheme": "http",
7071
"host": "127.0.0.1",
71-
"port": 52773,
72-
"scheme": "http"
72+
"port": 52773
7373
},
74-
"comment": "Connection to default local InterSystems IRIS™ installation. Delete if unwanted."
74+
"description": "Connection to default local InterSystems IRIS™ installation. Delete if unwanted."
7575
},
7676
"CACHE": {
7777
"webServer": {
78+
"scheme": "http",
7879
"host": "127.0.0.1",
79-
"port": 57772,
80-
"scheme": "http"
80+
"port": 57772
8181
},
82-
"comment": "Connection to default local InterSystems Caché® installation. Delete if unwanted."
82+
"description": "Connection to default local InterSystems Caché® installation. Delete if unwanted."
8383
},
8484
"ENSEMBLE": {
8585
"webServer": {
86+
"scheme": "http",
8687
"host": "127.0.0.1",
87-
"port": 57772,
88-
"scheme": "http"
88+
"port": 57772
8989
},
90-
"comment": "Connection to default local InterSystems Ensemble® installation. Delete if unwanted."
90+
"description": "Connection to default local InterSystems Ensemble® installation. Delete if unwanted."
9191
},
9292
"/default": "IRIS"
9393
},
@@ -100,6 +100,12 @@
100100
"type": "object",
101101
"description": "Web server publishing an InterSystems® server's web services.",
102102
"properties": {
103+
"scheme": {
104+
"type": "string",
105+
"description": "Protocol used for connections.",
106+
"enum": ["http", "https"],
107+
"default": "http"
108+
},
103109
"host": {
104110
"type": "string",
105111
"description": "Hostname or IP address of the web server. Often the same as the InterSystems® server host.",
@@ -123,25 +129,13 @@
123129
"maximum": 65535,
124130
"default": 52773
125131
},
126-
"instanceName": {
132+
"pathPrefix": {
127133
"type": "string",
128-
"description": "Optional prefix for the path to the resource. Only needed when one web server publishes services of multiple InterSystems® servers.",
129-
"default": ""
130-
},
131-
"scheme": {
132-
"type": "string",
133-
"description": "Protocol used for connections.",
134-
"anyOf": [
135-
{
136-
"string": "http"
137-
},
138-
{
139-
"string": "https"
140-
}
141-
],
142-
"default": "http"
134+
"description": "Optional prefix for the path to the resource. Only needed when one web server publishes services on behalf of multiple InterSystems® servers."
143135
}
144-
}
136+
},
137+
"required": ["host", "port"],
138+
"additionalProperties": false
145139
},
146140
"username": {
147141
"type": "string",
@@ -151,11 +145,13 @@
151145
"type": "string",
152146
"description": "Password of username. If not set here it must be provided when connecting."
153147
},
154-
"comment": {
148+
"description": {
155149
"type": "string",
156-
"description": "Optional comment about the server."
150+
"description": "Optional description of the server."
157151
}
158-
}
152+
},
153+
"required": ["webServer"],
154+
"additionalProperties": false
159155
}
160156
},
161157
"properties": {

0 commit comments

Comments
 (0)