I am getting this response validation error when I use 8.x-2.0-rc1:

{
    "property": "relationships.agency.data.type",
    "pointer": "\/relationships\/agency\/data\/type",
    "message": "Does not have a value in the enumeration [\"taxonomy_term--agency\"]",
    "constraint": "enum",
    "context": 1,
    "enum": [
      "taxonomy_term--agency"
    ]
},

It goes away if I manually unset the 'enum' from where it is, deep in the nested schema array. But I suspect that's not really fixing the problem. I'm happy to try some debugging if anyone has ideas.

If it helps, this site has a taxonomy vocabulary resource which is being overridden by this module from 'taxonomy_term--agency' to just 'agency'.

Comments

brockfanning created an issue. See original summary.

brockfanning’s picture

Status: Active » Needs review
StatusFileSize
new1.98 KB

This is not a neat fix, but the attached patch does prevent the reported validation errors for me. At the least maybe this helps illustrate the issue.

Also for reference, this offending 'enum' element is getting added in the Schemata module here.

brockfanning’s picture

StatusFileSize
new1.62 KB

Removing irrelevant change.

logickal’s picture

We also saw a lot of these messages with our custom entities, possibly also related to the Schemata validation issues reported in JSONAPI #2958370: Schemata + JSON API: "JSON API response failed validation" error message on node endpoints...

logickal’s picture

I'm fairly certain this has been resolved...

e0ipso’s picture

Status: Needs review » Fixed

Thanks for bubbling this up @logickal. I'm sorry this took so long @brockfanning :-(

I'm OK with the fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.