github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/third_party/OpenAPI/user/address.swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "user/address.proto", 5 "version": "version not set" 6 }, 7 "consumes": [ 8 "application/json" 9 ], 10 "produces": [ 11 "application/json" 12 ], 13 "paths": {}, 14 "definitions": { 15 "protobufAny": { 16 "type": "object", 17 "properties": { 18 "typeUrl": { 19 "type": "string" 20 }, 21 "value": { 22 "type": "string", 23 "format": "byte" 24 } 25 } 26 }, 27 "protobufNullValue": { 28 "type": "string", 29 "enum": [ 30 "NULL_VALUE" 31 ], 32 "default": "NULL_VALUE", 33 "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." 34 }, 35 "rpcStatus": { 36 "type": "object", 37 "properties": { 38 "code": { 39 "type": "integer", 40 "format": "int32" 41 }, 42 "message": { 43 "type": "string" 44 }, 45 "details": { 46 "type": "array", 47 "items": { 48 "$ref": "#/definitions/protobufAny" 49 } 50 } 51 } 52 }, 53 "userAddressResult": { 54 "type": "object", 55 "properties": { 56 "objectId": { 57 "type": "string" 58 }, 59 "country": { 60 "type": "object", 61 "additionalProperties": { 62 "type": "string" 63 } 64 }, 65 "postcode": { 66 "type": "array", 67 "items": { 68 "type": "string" 69 } 70 }, 71 "administrative": { 72 "type": "array", 73 "items": { 74 "type": "string" 75 } 76 }, 77 "countryCode": { 78 "type": "string" 79 }, 80 "geoloc": { 81 "type": "object", 82 "additionalProperties": { 83 "type": "number", 84 "format": "float" 85 } 86 }, 87 "localeNames": { 88 "type": "object", 89 "additionalProperties": { 90 "type": "array", 91 "items": { 92 "type": "object" 93 } 94 } 95 }, 96 "city": { 97 "type": "object", 98 "additionalProperties": { 99 "type": "array", 100 "items": { 101 "type": "object" 102 } 103 } 104 } 105 } 106 }, 107 "userAddressResults": { 108 "type": "object", 109 "properties": { 110 "hits": { 111 "type": "array", 112 "items": { 113 "$ref": "#/definitions/userAddressResult" 114 } 115 }, 116 "nbHits": { 117 "type": "integer", 118 "format": "int32" 119 } 120 } 121 } 122 } 123 }