Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong account.getProfileInfo response #223

Open
elias506 opened this issue May 23, 2022 · 1 comment
Open

Wrong account.getProfileInfo response #223

elias506 opened this issue May 23, 2022 · 1 comment

Comments

@elias506
Copy link

account_user_settings object has json description:

"account_user_settings": {
      "type": "object",
      "allOf": [
        {
          "$ref": "objects.json#/definitions/users_user_min"
        },
        {
          "$ref": "objects.json#/definitions/users_user_settings_xtr"
        },
        {
          "properties": {
            "photo_200": {
              "type": "string",
              "format": "uri",
              "description": "URL of square photo of the user with 200 pixels in width"
            },
            "is_service_account": {
              "type": "boolean",
              "description": "flag about service account"
            }
          }
        }
      ],
      "additionalProperties": false
    },

and used in account_getProfileInfo_response response object:

"account_getProfileInfo_response": {
      "type": "object",
      "properties": {
        "response": {
          "$ref": "objects.json#/definitions/account_user_settings",
          "required": true
        }
      },
      "additionalProperties": false
    },

But users_user_min and users_user_settings_xtr objects have same last_name and first_name fields. Besides account.getProfileInfo method do not need users_user_min object in allOf

@elias506
Copy link
Author

fix by #214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant