|
11 | 11 | "basePath" : { |
12 | 12 | "default" : "user-registry/v1" |
13 | 13 | } |
| 14 | + }, |
| 15 | + "x-amazon-apigateway-endpoint-configuration" : { |
| 16 | + "disableExecuteApiEndpoint" : true |
14 | 17 | } |
15 | 18 | } ], |
16 | 19 | "tags" : [ { |
|
389 | 392 | } |
390 | 393 | } |
391 | 394 | }, |
392 | | - "WorkContactResource" : { |
393 | | - "title" : "WorkContactResource", |
394 | | - "type" : "object", |
395 | | - "properties" : { |
396 | | - "email" : { |
397 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
398 | | - } |
399 | | - } |
400 | | - }, |
401 | | - "CertifiableFieldResourceOfstring" : { |
402 | | - "title" : "CertifiableFieldResourceOfstring", |
| 395 | + "BirthDateCertifiableSchema" : { |
403 | 396 | "required" : [ "certification", "value" ], |
404 | 397 | "type" : "object", |
405 | 398 | "properties" : { |
|
410 | 403 | }, |
411 | 404 | "value" : { |
412 | 405 | "type" : "string", |
413 | | - "description" : "Field value" |
| 406 | + "description" : "Field value", |
| 407 | + "format" : "date" |
414 | 408 | } |
415 | | - } |
| 409 | + }, |
| 410 | + "description" : "User date of birth" |
416 | 411 | }, |
417 | | - "UserId" : { |
418 | | - "title" : "UserId", |
419 | | - "required" : [ "id" ], |
| 412 | + "WorkContactResource" : { |
420 | 413 | "type" : "object", |
421 | 414 | "properties" : { |
422 | | - "id" : { |
423 | | - "type" : "string", |
424 | | - "description" : "User internal id", |
425 | | - "format" : "uuid" |
| 415 | + "email" : { |
| 416 | + "$ref" : "#/components/schemas/EmailCertifiableSchema" |
| 417 | + }, |
| 418 | + "mobilePhone" : { |
| 419 | + "$ref" : "#/components/schemas/MobilePhoneCertifiableSchema" |
| 420 | + }, |
| 421 | + "telephone" : { |
| 422 | + "$ref" : "#/components/schemas/TelephoneCertifiableSchema" |
426 | 423 | } |
427 | | - } |
| 424 | + }, |
| 425 | + "description" : "User work contacts" |
428 | 426 | }, |
429 | 427 | "MutableUserFieldsDto" : { |
430 | 428 | "title" : "MutableUserFieldsDto", |
431 | 429 | "type" : "object", |
432 | 430 | "properties" : { |
433 | 431 | "birthDate" : { |
434 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfLocalDate" |
| 432 | + "$ref" : "#/components/schemas/BirthDateCertifiableSchema" |
435 | 433 | }, |
436 | 434 | "email" : { |
437 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 435 | + "$ref" : "#/components/schemas/EmailCertifiableSchema" |
438 | 436 | }, |
439 | 437 | "familyName" : { |
440 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 438 | + "$ref" : "#/components/schemas/FamilyNameCertifiableSchema" |
441 | 439 | }, |
442 | 440 | "name" : { |
443 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 441 | + "$ref" : "#/components/schemas/NameCertifiableSchema" |
444 | 442 | }, |
445 | 443 | "workContacts" : { |
446 | 444 | "type" : "object", |
|
451 | 449 | } |
452 | 450 | } |
453 | 451 | }, |
454 | | - "CertifiableFieldResourceOfLocalDate" : { |
455 | | - "title" : "CertifiableFieldResourceOfLocalDate", |
| 452 | + "NameCertifiableSchema" : { |
456 | 453 | "required" : [ "certification", "value" ], |
457 | 454 | "type" : "object", |
458 | 455 | "properties" : { |
|
463 | 460 | }, |
464 | 461 | "value" : { |
465 | 462 | "type" : "string", |
466 | | - "description" : "Field value", |
467 | | - "format" : "date" |
| 463 | + "description" : "Field value" |
468 | 464 | } |
469 | | - } |
| 465 | + }, |
| 466 | + "description" : "User name" |
470 | 467 | }, |
471 | 468 | "UserResource" : { |
472 | | - "title" : "UserResource", |
473 | 469 | "required" : [ "id" ], |
474 | 470 | "type" : "object", |
475 | 471 | "properties" : { |
476 | 472 | "birthDate" : { |
477 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfLocalDate" |
| 473 | + "$ref" : "#/components/schemas/BirthDateCertifiableSchema" |
478 | 474 | }, |
479 | 475 | "email" : { |
480 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 476 | + "$ref" : "#/components/schemas/EmailCertifiableSchema" |
481 | 477 | }, |
482 | 478 | "familyName" : { |
483 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 479 | + "$ref" : "#/components/schemas/FamilyNameCertifiableSchema" |
484 | 480 | }, |
485 | 481 | "fiscalCode" : { |
486 | 482 | "type" : "string", |
|
492 | 488 | "format" : "uuid" |
493 | 489 | }, |
494 | 490 | "name" : { |
495 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 491 | + "$ref" : "#/components/schemas/NameCertifiableSchema" |
496 | 492 | }, |
497 | 493 | "workContacts" : { |
498 | 494 | "type" : "object", |
|
503 | 499 | } |
504 | 500 | } |
505 | 501 | }, |
| 502 | + "TelephoneCertifiableSchema" : { |
| 503 | + "required" : [ "certification", "value" ], |
| 504 | + "type" : "object", |
| 505 | + "properties" : { |
| 506 | + "certification" : { |
| 507 | + "type" : "string", |
| 508 | + "description" : "Certified source of information", |
| 509 | + "enum" : [ "NONE", "SPID" ] |
| 510 | + }, |
| 511 | + "value" : { |
| 512 | + "type" : "string", |
| 513 | + "description" : "Field value" |
| 514 | + } |
| 515 | + }, |
| 516 | + "description" : "User work telephone number" |
| 517 | + }, |
| 518 | + "InvalidParam" : { |
| 519 | + "title" : "InvalidParam", |
| 520 | + "required" : [ "name", "reason" ], |
| 521 | + "type" : "object", |
| 522 | + "properties" : { |
| 523 | + "name" : { |
| 524 | + "type" : "string", |
| 525 | + "description" : "Invalid parameter name." |
| 526 | + }, |
| 527 | + "reason" : { |
| 528 | + "type" : "string", |
| 529 | + "description" : "Invalid parameter reason." |
| 530 | + } |
| 531 | + } |
| 532 | + }, |
| 533 | + "EmailCertifiableSchema" : { |
| 534 | + "required" : [ "certification", "value" ], |
| 535 | + "type" : "object", |
| 536 | + "properties" : { |
| 537 | + "certification" : { |
| 538 | + "type" : "string", |
| 539 | + "description" : "Certified source of information", |
| 540 | + "enum" : [ "NONE", "SPID" ] |
| 541 | + }, |
| 542 | + "value" : { |
| 543 | + "type" : "string", |
| 544 | + "description" : "Field value" |
| 545 | + } |
| 546 | + }, |
| 547 | + "description" : "User email" |
| 548 | + }, |
| 549 | + "UserId" : { |
| 550 | + "title" : "UserId", |
| 551 | + "required" : [ "id" ], |
| 552 | + "type" : "object", |
| 553 | + "properties" : { |
| 554 | + "id" : { |
| 555 | + "type" : "string", |
| 556 | + "description" : "User internal id", |
| 557 | + "format" : "uuid" |
| 558 | + } |
| 559 | + } |
| 560 | + }, |
506 | 561 | "SaveUserDto" : { |
507 | | - "title" : "SaveUserDto", |
508 | 562 | "required" : [ "fiscalCode" ], |
509 | 563 | "type" : "object", |
510 | 564 | "properties" : { |
511 | 565 | "birthDate" : { |
512 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfLocalDate" |
| 566 | + "$ref" : "#/components/schemas/BirthDateCertifiableSchema" |
513 | 567 | }, |
514 | 568 | "email" : { |
515 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 569 | + "$ref" : "#/components/schemas/EmailCertifiableSchema" |
516 | 570 | }, |
517 | 571 | "familyName" : { |
518 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 572 | + "$ref" : "#/components/schemas/FamilyNameCertifiableSchema" |
519 | 573 | }, |
520 | 574 | "fiscalCode" : { |
521 | 575 | "type" : "string", |
522 | 576 | "description" : "User fiscal code" |
523 | 577 | }, |
524 | 578 | "name" : { |
525 | | - "$ref" : "#/components/schemas/CertifiableFieldResourceOfstring" |
| 579 | + "$ref" : "#/components/schemas/NameCertifiableSchema" |
526 | 580 | }, |
527 | 581 | "workContacts" : { |
528 | 582 | "type" : "object", |
|
569 | 623 | }, |
570 | 624 | "description" : "A \"problem detail\" as a way to carry machine-readable details of errors (https://datatracker.ietf.org/doc/html/rfc7807)" |
571 | 625 | }, |
572 | | - "InvalidParam" : { |
573 | | - "title" : "InvalidParam", |
574 | | - "required" : [ "name", "reason" ], |
| 626 | + "FamilyNameCertifiableSchema" : { |
| 627 | + "required" : [ "certification", "value" ], |
575 | 628 | "type" : "object", |
576 | 629 | "properties" : { |
577 | | - "name" : { |
| 630 | + "certification" : { |
578 | 631 | "type" : "string", |
579 | | - "description" : "Invalid parameter name." |
| 632 | + "description" : "Certified source of information", |
| 633 | + "enum" : [ "NONE", "SPID" ] |
580 | 634 | }, |
581 | | - "reason" : { |
| 635 | + "value" : { |
582 | 636 | "type" : "string", |
583 | | - "description" : "Invalid parameter reason." |
| 637 | + "description" : "Field value" |
584 | 638 | } |
585 | | - } |
| 639 | + }, |
| 640 | + "description" : "User family name" |
| 641 | + }, |
| 642 | + "MobilePhoneCertifiableSchema" : { |
| 643 | + "required" : [ "certification", "value" ], |
| 644 | + "type" : "object", |
| 645 | + "properties" : { |
| 646 | + "certification" : { |
| 647 | + "type" : "string", |
| 648 | + "description" : "Certified source of information", |
| 649 | + "enum" : [ "NONE", "SPID" ] |
| 650 | + }, |
| 651 | + "value" : { |
| 652 | + "type" : "string", |
| 653 | + "description" : "Field value" |
| 654 | + } |
| 655 | + }, |
| 656 | + "description" : "User work mobile phone number" |
586 | 657 | } |
587 | 658 | }, |
588 | 659 | "securitySchemes" : { |
|
0 commit comments