|
530 | 530 | "properties": {
|
531 | 531 | "key": {
|
532 | 532 | "type": "string",
|
533 |
| - "description": "The key for the entry to get from the keychain.", |
| 533 | + "description": "The key for the entry to delete from the keychain.", |
534 | 534 | "minLength": 1,
|
535 | 535 | "maxLength": 1024,
|
536 | 536 | "nullable": false
|
|
540 | 540 | "GetKeychainEntryResponseV1": {
|
541 | 541 | "type": "object",
|
542 | 542 | "required": [
|
543 |
| - "key", |
544 |
| - "value" |
| 543 | + "key" |
545 | 544 | ],
|
546 | 545 | "additionalProperties": false,
|
547 | 546 | "properties": {
|
548 | 547 | "key": {
|
549 | 548 | "type": "string",
|
550 |
| - "description": "The key that was used to retrieve the value from the keychain.", |
| 549 | + "description": "The key for the entry to get from the keychain.", |
551 | 550 | "minLength": 1,
|
552 | 551 | "maxLength": 1024,
|
553 | 552 | "nullable": false
|
554 |
| - }, |
555 |
| - "value": { |
556 |
| - "type": "string", |
557 |
| - "description": "The value associated with the requested key on the keychain.", |
558 |
| - "minLength": 0, |
559 |
| - "maxLength": 10485760, |
560 |
| - "nullable": false |
561 | 553 | }
|
562 | 554 | }
|
563 | 555 | },
|
|
571 | 563 | "properties": {
|
572 | 564 | "key": {
|
573 | 565 | "type": "string",
|
574 |
| - "description": "The key for the entry to set on the keychain.", |
| 566 | + "description": "The key that was used to retrieve the value from the keychain.", |
575 | 567 | "minLength": 1,
|
576 | 568 | "maxLength": 1024,
|
577 | 569 | "nullable": false
|
578 | 570 | },
|
579 | 571 | "value": {
|
580 | 572 | "type": "string",
|
581 |
| - "description": "The value that will be associated with the key on the keychain.", |
| 573 | + "description": "The value associated with the requested key on the keychain.", |
582 | 574 | "minLength": 0,
|
583 | 575 | "maxLength": 10485760,
|
584 | 576 | "nullable": false
|
585 | 577 | }
|
586 | 578 | }
|
587 | 579 | },
|
588 | 580 | "SetKeychainEntryResponseV1": {
|
589 |
| - "type": "object", |
590 |
| - "required": [ |
591 |
| - "key" |
592 |
| - ], |
593 |
| - "properties": { |
594 |
| - "key": { |
595 |
| - "type": "string", |
596 |
| - "description": "The key that was used to set the value on the keychain.", |
597 |
| - "minLength": 1, |
598 |
| - "maxLength": 1024, |
599 |
| - "nullable": false |
600 |
| - } |
601 |
| - } |
602 |
| - }, |
603 |
| - "DeleteKeychainEntryRequestV1": { |
604 |
| - "type": "object", |
605 |
| - "required": [ |
606 |
| - "key" |
607 |
| - ], |
608 |
| - "properties": { |
609 |
| - "key": { |
610 |
| - "type": "string", |
611 |
| - "description": "The key for the entry to check the presence of on the keychain.", |
612 |
| - "minLength": 1, |
613 |
| - "maxLength": 1024, |
614 |
| - "nullable": false |
615 |
| - } |
616 |
| - } |
617 |
| - }, |
618 |
| - "DeleteKeychainEntryResponseV1": { |
619 | 581 | "type": "object",
|
620 | 582 | "required": [
|
621 | 583 | "key"
|
|
624 | 586 | "properties": {
|
625 | 587 | "key": {
|
626 | 588 | "type": "string",
|
627 |
| - "description": "The key that was deleted from the keychain.", |
| 589 | + "description": "The key that was used to set the value on the keychain.", |
628 | 590 | "minLength": 1,
|
629 | 591 | "maxLength": 1024,
|
630 | 592 | "nullable": false
|
631 | 593 | }
|
632 | 594 | }
|
633 |
| - }, |
| 595 | + }, |
634 | 596 | "HasKeychainEntryRequestV1": {
|
635 | 597 | "type": "object",
|
636 | 598 | "required": [
|
|
640 | 602 | "properties": {
|
641 | 603 | "key": {
|
642 | 604 | "type": "string",
|
643 |
| - "description": "The key to check for presence in the keychain.", |
| 605 | + "description": "The key to check for presence in the keychain", |
644 | 606 | "minLength": 1,
|
645 | 607 | "maxLength": 1024,
|
646 | 608 | "nullable": false
|
|
669 | 631 | "nullable": false
|
670 | 632 | }
|
671 | 633 | }
|
| 634 | + }, |
| 635 | + "DeleteKeychainEntryResponseV1": { |
| 636 | + "type": "object", |
| 637 | + "required": [ |
| 638 | + "key" |
| 639 | + ], |
| 640 | + "properties": { |
| 641 | + "key": { |
| 642 | + "type": "string", |
| 643 | + "description": "The key that was deleted from the keychain.", |
| 644 | + "minLength": 1, |
| 645 | + "maxLength": 1024, |
| 646 | + "nullable": false |
| 647 | + } |
| 648 | + } |
672 | 649 | }
|
673 | 650 | },
|
674 | 651 | "requestBodies": {
|
|
726 | 703 | }
|
727 | 704 | }
|
728 | 705 | }
|
729 |
| - }, |
730 |
| - "keychain_has_entry_request_body": { |
731 |
| - "description": "Request body for checking a keychain entry via its key", |
| 706 | + }, |
| 707 | + "keychain_delete_entry_request_body": { |
| 708 | + "description": "Request body to delete a keychain entry via its key", |
732 | 709 | "required": true,
|
733 | 710 | "content": {
|
734 | 711 | "application/json": {
|
735 | 712 | "schema": {
|
736 |
| - "$ref": "#/components/schemas/HasKeychainEntryRequestV1" |
| 713 | + "$ref": "#/components/schemas/DeleteKeychainEntryRequestV1" |
737 | 714 | }
|
738 | 715 | }
|
739 | 716 | }
|
740 |
| - }, |
741 |
| - "keychain_delete_entry_request_body": { |
742 |
| - "description": "Request body to delete a keychain entry via its key", |
| 717 | + }, |
| 718 | + "keychain_has_entry_request_body": { |
| 719 | + "description": "Request body for checking a keychain entry via its key", |
743 | 720 | "required": true,
|
744 | 721 | "content": {
|
745 | 722 | "application/json": {
|
746 | 723 | "schema": {
|
747 |
| - "$ref": "#/components/schemas/DeleteKeychainEntryRequestV1" |
| 724 | + "$ref": "#/components/schemas/HasKeychainEntryRequestV1" |
748 | 725 | }
|
749 | 726 | }
|
750 | 727 | }
|
|
822 | 799 | "keychain_set_entry_500": {
|
823 | 800 | "description": "Unexpected error."
|
824 | 801 | },
|
825 |
| - "keychain_has_entry_200": { |
| 802 | + "keychain_delete_entry_200": { |
826 | 803 | "description": "OK",
|
827 | 804 | "content": {
|
828 | 805 | "application/json": {
|
829 |
| - "schema": { |
830 |
| - "$ref": "#/components/schemas/HasKeychainEntryResponseV1" |
831 |
| - } |
| 806 | + "schema": { |
| 807 | + "$ref": "#/components/schemas/DeleteKeychainEntryResponseV1" |
| 808 | + } |
832 | 809 | }
|
833 |
| - } |
| 810 | + } |
834 | 811 | },
|
835 |
| - "keychain_has_entry_400": { |
| 812 | + "keychain_delete_entry_400": { |
836 | 813 | "description": "Bad request. Key must be a string and longer than 0, shorter than 1024 characters."
|
837 | 814 | },
|
838 |
| - "keychain_has_entry_401": { |
| 815 | + "keychain_delete_entry_401": { |
839 | 816 | "description": "Authorization information is missing or invalid."
|
840 | 817 | },
|
841 |
| - "keychain_has_entry_500": { |
| 818 | + "keychain_delete_entry_500": { |
842 | 819 | "description": "Unexpected error."
|
843 |
| - }, |
844 |
| - "keychain_delete_entry_200": { |
| 820 | + }, |
| 821 | + "keychain_has_entry_200": { |
845 | 822 | "description": "OK",
|
846 | 823 | "content": {
|
847 | 824 | "application/json": {
|
848 |
| - "schema": { |
849 |
| - "$ref": "#/components/schemas/DeleteKeychainEntryResponseV1" |
850 |
| - } |
| 825 | + "schema": { |
| 826 | + "$ref": "#/components/schemas/HasKeychainEntryResponseV1" |
| 827 | + } |
851 | 828 | }
|
852 |
| - } |
| 829 | + } |
853 | 830 | },
|
854 |
| - "keychain_delete_entry_400": { |
| 831 | + "keychain_has_entry_400": { |
855 | 832 | "description": "Bad request. Key must be a string and longer than 0, shorter than 1024 characters."
|
856 | 833 | },
|
857 |
| - "keychain_delete_entry_401": { |
| 834 | + "keychain_has_entry_401": { |
858 | 835 | "description": "Authorization information is missing or invalid."
|
859 | 836 | },
|
860 |
| - "keychain_delete_entry_500": { |
| 837 | + "keychain_has_entry_500": { |
861 | 838 | "description": "Unexpected error."
|
862 | 839 | }
|
863 | 840 | }
|
|
0 commit comments