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

Excessive entry of People User Type in DatabasePageProperty struct issue #46

Open
ian-lss opened this issue Nov 14, 2022 · 0 comments
Open

Comments

@ian-lss
Copy link

ian-lss commented Nov 14, 2022

In the CreatePage function, when data is entered in the People type of the Type database, due to excessive DatabasePageProperty->People User struct item
body.properties.People.people[0].type should be not present, instead was "".
body.properties.People.people[0].name should be not present, instead was "".
body.properties.People.people[0].avatar_url should be not present, instead was "".
body.properties.People.people[0].person should be not present or an object, instead was null.
body.properties.People.people[0].bot should be not present or an object, instead was null. (code: validation_error, status: 400)
error occurs.
However, It can be solved by adding omitempty to each json item of User struct.

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