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

Validation error when trying to update an image block #169

Closed
Lysandros-SLR opened this issue Feb 6, 2024 · 1 comment
Closed

Validation error when trying to update an image block #169

Lysandros-SLR opened this issue Feb 6, 2024 · 1 comment

Comments

@Lysandros-SLR
Copy link

Lysandros-SLR commented Feb 6, 2024

When sending a BlockUpdateRequest with an Image a 400 is returned with a validation error. A type should not be passed in when updating an image it would seem. I tried putting in nothing for the type and got the following error

"body failed validation: body.image.type should be not present, instead was ""."

Tested manually and was able to update the block by not passing in a type.

@Chirab
Copy link
Contributor

Chirab commented Feb 10, 2024

I think we need to add "omitempty" tag within Type
I also have this problem when updating pdf

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

3 participants