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

UsersUser в поле Occupation.ID возвращает number вместо integer #49

Open
SevereCloud opened this issue Jul 18, 2019 · 0 comments
Labels
vk bug Error on the side of vk

Comments

@SevereCloud
Copy link
Owner

https://vk.com/bug136108

Шаги воспроизведения:

  1. Запросить например users.get c параметрами fields=occupation и user_ids=331726408

P.S. Даже не пытайтесь запросить через vk.com/dev - там нули обрезаются

Фактический результат:

"id": 960775.000000,

Ожидаемый результат:

"id": 960775,

Временный костыль - вместо int использовать float64

vksdk/5.92/object/users.go

Lines 154 to 159 in 8e2e228

type usersOccupation struct {
// BUG(VK): https://vk.com/bug136108
ID float64 `json:"id"` // ID of school, university, company group
Name string `json:"name"` // Name of occupation
Type string `json:"type"` // Type of occupation
}

@SevereCloud SevereCloud added the vk bug Error on the side of vk label Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vk bug Error on the side of vk
Projects
None yet
Development

No branches or pull requests

1 participant