Skip to content

Commit 676e65e

Browse files
make openapi.json
1 parent d781534 commit 676e65e

File tree

1 file changed

+82
-36
lines changed

1 file changed

+82
-36
lines changed

services/invitations/openapi.json

Lines changed: 82 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,32 @@
175175
"description": "Invitee's email. Note that the registration can ONLY be used with this email"
176176
},
177177
"trial_account_days": {
178-
"type": "integer",
179-
"exclusiveMinimum": true,
178+
"anyOf": [
179+
{
180+
"type": "integer",
181+
"exclusiveMinimum": true,
182+
"minimum": 0
183+
},
184+
{
185+
"type": "null"
186+
}
187+
],
180188
"title": "Trial Account Days",
181-
"description": "If set, this invitation will activate a trial account.Sets the number of days from creation until the account expires",
182-
"minimum": 0
189+
"description": "If set, this invitation will activate a trial account.Sets the number of days from creation until the account expires"
183190
},
184191
"extra_credits_in_usd": {
185-
"type": "integer",
186-
"exclusiveMinimum": true,
192+
"anyOf": [
193+
{
194+
"type": "integer",
195+
"exclusiveMinimum": true,
196+
"minimum": 0
197+
},
198+
{
199+
"type": "null"
200+
}
201+
],
187202
"title": "Extra Credits In Usd",
188-
"description": "If set, the account's primary wallet will add extra credits corresponding to this ammount in USD",
189-
"minimum": 0
203+
"description": "If set, the account's primary wallet will add extra credits corresponding to this ammount in USD"
190204
},
191205
"product": {
192206
"type": "string",
@@ -208,13 +222,12 @@
208222
"created"
209223
],
210224
"title": "ApiInvitationContent",
211-
"description": "Data in an invitation",
212225
"example": {
213-
"issuer": "issuerid",
226+
"created": "2023-01-11 13:11:47.293595",
214227
"guest": "[email protected]",
215-
"trial_account_days": 2,
228+
"issuer": "issuerid",
216229
"product": "osparc",
217-
"created": "2023-01-11 13:11:47.293595"
230+
"trial_account_days": 2
218231
}
219232
},
220233
"ApiInvitationContentAndLink": {
@@ -233,18 +246,32 @@
233246
"description": "Invitee's email. Note that the registration can ONLY be used with this email"
234247
},
235248
"trial_account_days": {
236-
"type": "integer",
237-
"exclusiveMinimum": true,
249+
"anyOf": [
250+
{
251+
"type": "integer",
252+
"exclusiveMinimum": true,
253+
"minimum": 0
254+
},
255+
{
256+
"type": "null"
257+
}
258+
],
238259
"title": "Trial Account Days",
239-
"description": "If set, this invitation will activate a trial account.Sets the number of days from creation until the account expires",
240-
"minimum": 0
260+
"description": "If set, this invitation will activate a trial account.Sets the number of days from creation until the account expires"
241261
},
242262
"extra_credits_in_usd": {
243-
"type": "integer",
244-
"exclusiveMinimum": true,
263+
"anyOf": [
264+
{
265+
"type": "integer",
266+
"exclusiveMinimum": true,
267+
"minimum": 0
268+
},
269+
{
270+
"type": "null"
271+
}
272+
],
245273
"title": "Extra Credits In Usd",
246-
"description": "If set, the account's primary wallet will add extra credits corresponding to this ammount in USD",
247-
"minimum": 0
274+
"description": "If set, the account's primary wallet will add extra credits corresponding to this ammount in USD"
248275
},
249276
"product": {
250277
"type": "string",
@@ -275,14 +302,13 @@
275302
"invitation_url"
276303
],
277304
"title": "ApiInvitationContentAndLink",
278-
"description": "Data in an invitation",
279305
"example": {
280-
"issuer": "issuerid",
306+
"created": "2023-01-11 13:11:47.293595",
281307
"guest": "[email protected]",
282-
"trial_account_days": 2,
308+
"invitation_url": "https://foo.com/#/registration?invitation=1234",
309+
"issuer": "issuerid",
283310
"product": "osparc",
284-
"created": "2023-01-11 13:11:47.293595",
285-
"invitation_url": "https://foo.com/#/registration?invitation=1234"
311+
"trial_account_days": 2
286312
}
287313
},
288314
"ApiInvitationInputs": {
@@ -301,21 +327,42 @@
301327
"description": "Invitee's email. Note that the registration can ONLY be used with this email"
302328
},
303329
"trial_account_days": {
304-
"type": "integer",
305-
"exclusiveMinimum": true,
330+
"anyOf": [
331+
{
332+
"type": "integer",
333+
"exclusiveMinimum": true,
334+
"minimum": 0
335+
},
336+
{
337+
"type": "null"
338+
}
339+
],
306340
"title": "Trial Account Days",
307-
"description": "If set, this invitation will activate a trial account.Sets the number of days from creation until the account expires",
308-
"minimum": 0
341+
"description": "If set, this invitation will activate a trial account.Sets the number of days from creation until the account expires"
309342
},
310343
"extra_credits_in_usd": {
311-
"type": "integer",
312-
"exclusiveMinimum": true,
344+
"anyOf": [
345+
{
346+
"type": "integer",
347+
"exclusiveMinimum": true,
348+
"minimum": 0
349+
},
350+
{
351+
"type": "null"
352+
}
353+
],
313354
"title": "Extra Credits In Usd",
314-
"description": "If set, the account's primary wallet will add extra credits corresponding to this ammount in USD",
315-
"minimum": 0
355+
"description": "If set, the account's primary wallet will add extra credits corresponding to this ammount in USD"
316356
},
317357
"product": {
318-
"type": "string",
358+
"anyOf": [
359+
{
360+
"type": "string"
361+
},
362+
{
363+
"type": "null"
364+
}
365+
],
319366
"title": "Product",
320367
"description": "If None, it will use INVITATIONS_DEFAULT_PRODUCT"
321368
}
@@ -326,10 +373,9 @@
326373
"guest"
327374
],
328375
"title": "ApiInvitationInputs",
329-
"description": "Input data necessary to create an invitation",
330376
"example": {
331-
"issuer": "issuerid",
332377
"guest": "[email protected]",
378+
"issuer": "issuerid",
333379
"trial_account_days": 2
334380
}
335381
},

0 commit comments

Comments
 (0)