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 for Entity; relations; none is not an allowed value (type=type_error.none.not_allowed) #172

Open
sennierer opened this issue Jun 27, 2023 · 1 comment

Comments

@sennierer
Copy link
Member

we should either replace None with an empty array or allow None as a value for relations

@johannesliem would it break something in the frontend if we just allow None as a value for relations (which would mean that there is no relations key in the return format if there are no relations.

@johannesliem
Copy link
Member

I just checked, in some places we check if the key exists, in several we assume the relations array exists (empty if no relations exist, but we do not check). So for now, it would be better to keep the empty array in the response format.

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

2 participants