|
175 | 175 | "description": "Invitee's email. Note that the registration can ONLY be used with this email" |
176 | 176 | }, |
177 | 177 | "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 | + ], |
180 | 188 | "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" |
183 | 190 | }, |
184 | 191 | "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 | + ], |
187 | 202 | "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" |
190 | 204 | }, |
191 | 205 | "product": { |
192 | 206 | "type": "string", |
|
208 | 222 | "created" |
209 | 223 | ], |
210 | 224 | "title": "ApiInvitationContent", |
211 | | - "description": "Data in an invitation", |
212 | 225 | "example": { |
213 | | - "issuer": "issuerid", |
| 226 | + "created": "2023-01-11 13:11:47.293595", |
214 | 227 | |
215 | | - "trial_account_days": 2, |
| 228 | + "issuer": "issuerid", |
216 | 229 | "product": "osparc", |
217 | | - "created": "2023-01-11 13:11:47.293595" |
| 230 | + "trial_account_days": 2 |
218 | 231 | } |
219 | 232 | }, |
220 | 233 | "ApiInvitationContentAndLink": { |
|
233 | 246 | "description": "Invitee's email. Note that the registration can ONLY be used with this email" |
234 | 247 | }, |
235 | 248 | "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 | + ], |
238 | 259 | "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" |
241 | 261 | }, |
242 | 262 | "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 | + ], |
245 | 273 | "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" |
248 | 275 | }, |
249 | 276 | "product": { |
250 | 277 | "type": "string", |
|
275 | 302 | "invitation_url" |
276 | 303 | ], |
277 | 304 | "title": "ApiInvitationContentAndLink", |
278 | | - "description": "Data in an invitation", |
279 | 305 | "example": { |
280 | | - "issuer": "issuerid", |
| 306 | + "created": "2023-01-11 13:11:47.293595", |
281 | 307 | |
282 | | - "trial_account_days": 2, |
| 308 | + "invitation_url": "https://foo.com/#/registration?invitation=1234", |
| 309 | + "issuer": "issuerid", |
283 | 310 | "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 |
286 | 312 | } |
287 | 313 | }, |
288 | 314 | "ApiInvitationInputs": { |
|
301 | 327 | "description": "Invitee's email. Note that the registration can ONLY be used with this email" |
302 | 328 | }, |
303 | 329 | "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 | + ], |
306 | 340 | "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" |
309 | 342 | }, |
310 | 343 | "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 | + ], |
313 | 354 | "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" |
316 | 356 | }, |
317 | 357 | "product": { |
318 | | - "type": "string", |
| 358 | + "anyOf": [ |
| 359 | + { |
| 360 | + "type": "string" |
| 361 | + }, |
| 362 | + { |
| 363 | + "type": "null" |
| 364 | + } |
| 365 | + ], |
319 | 366 | "title": "Product", |
320 | 367 | "description": "If None, it will use INVITATIONS_DEFAULT_PRODUCT" |
321 | 368 | } |
|
326 | 373 | "guest" |
327 | 374 | ], |
328 | 375 | "title": "ApiInvitationInputs", |
329 | | - "description": "Input data necessary to create an invitation", |
330 | 376 | "example": { |
331 | | - "issuer": "issuerid", |
332 | 377 | |
| 378 | + "issuer": "issuerid", |
333 | 379 | "trial_account_days": 2 |
334 | 380 | } |
335 | 381 | }, |
|
0 commit comments