Closed zachdaniel closed 3 years ago
This json object: https://github.com/ash-project/ash_json_api/blob/master/lib/ash_json_api/json_schema/json_schema.ex#L556 should have a required key (like attributes), which should be any relationship marked as required (only belongs_to relationships can be required at the moment). This only needs to be on post. For updates, the relationship will have already been set.
required
belongs_to
post
This json object: https://github.com/ash-project/ash_json_api/blob/master/lib/ash_json_api/json_schema/json_schema.ex#L556 should have a
required
key (like attributes), which should be any relationship marked asrequired
(onlybelongs_to
relationships can be required at the moment). This only needs to be onpost
. For updates, the relationship will have already been set.