We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
I stumbled upon the property link_redirects in account_info object in objects.json:
link_redirects
account_info
"link_redirects": { "type": "object" },
Actual question, what does that means?
The text was updated successfully, but these errors were encountered:
VKCOM/api-schema-typescript-generator#19
Можно привести к такому
type AccountInfo struct { LinkRedirects map[string]interface{} `json:"link_redirects"` // Ну или map[string]any если версия go >= 1.18 }
На деле api возвращает объект со строками, поэтому у себя в vksdk я использую map[string]string
map[string]string
https://github.com/SevereCloud/vksdk/blob/e983680a2c27787d571362892aba53ae5e86d59d/object/account.go#L110-L112
Sorry, something went wrong.
Да, я понимаю, что можно просто использовать map[string]string, но мне нужно конкретно тип поля
No branches or pull requests
Hello!
I stumbled upon the property
link_redirects
inaccount_info
object in objects.json:Actual question, what does that means?
The text was updated successfully, but these errors were encountered: