-
-
Notifications
You must be signed in to change notification settings - Fork 158
Relations being validated on POST #671
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
Comments
Hi @Lobosque. If I'm understanding correctly you're trying to use create a resource and relate it to an already existing resource this part of the json:api spec, but the usage of .NET Core's I.e. Could you try removing the If the error indeed stems from mixing JADNC with Thanks in advance for confirming! |
Confirming that I can reproduce the problem and this is not fixed yet. |
Description
I am trying to POST an
enterprise
resource. while posting it, I need to associate it to apartner
:And these are the models:
I am getting the following return:
While debugging, I found that the partner attributes are being validated, and of course not passing since I am not sending any value:
I expect that while Posting, I am just associating the entities, not trying to create a new one. Should I be doing this in a different way?
The final error happens when the code tries to access
Partner.Name
attribute fromEnterprise
, but the actual problem seems to be the validation of the related resource.Environment
The text was updated successfully, but these errors were encountered: