Bungie-net / api

Resources for the Bungie.net API
Other
1.22k stars 92 forks source link

GetSanitizedPlatformDisplayNames returns a map of (string, string) not (BungieCredentialType) #1888

Open d2orbc opened 3 months ago

d2orbc commented 3 months ago

GetSanitizedPlatformDisplayNames

    "/User/GetSanitizedPlatformDisplayNames/{membershipId}/": {
      "summary": "User.GetSanitizedPlatformDisplayNames",
      "description": "Gets a list of all display names linked to this membership id but sanitized (profanity filtered). Obeys all visibility rules of calling user and is heavily cached.",
      "get": {
        "tags": [
          "User"
        ],
        "description": "Gets a list of all display names linked to this membership id but sanitized (profanity filtered). Obeys all visibility rules of calling user and is heavily cached.",
        "operationId": "User.GetSanitizedPlatformDisplayNames",
        "parameters": [
          {
            "name": "membershipId",
            "in": "path",
            "description": "The requested membership id to load.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/CEDictionaryOfBungieCredentialTypeAndstring"
          }
        },
        "deprecated": false
      }
    },

CEDictionaryOfBungieCredentialTypeAndstring

                "Response": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "x-dictionary-key": {
                    "type": "integer",
                    "description": "The types of credentials the Accounts system supports. This is the external facing enum used in place of the internal-only Bungie.SharedDefinitions.CredentialType.",
                    "format": "byte",
                    "x-enum-reference": {
                      "$ref": "#/components/schemas/BungieCredentialType"
                    },
                    "x-enum-is-bitmask": false
                  }
                },

Actual response:

{"Response":{"TwitchId":"xxx","EgsId":"xxx","SteamId":"xxx"},"ErrorCode":1,"ThrottleSeconds":0,"ErrorStatus":"Success","Message":"Ok","MessageData":{}}
d2orbc commented 3 months ago

Similar to #1374 and #1575 but with BungieCredentialType