Active
Project:
JSON:API Schema
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jun 2019 at 06:33 UTC
Updated:
1 Jun 2019 at 06:33 UTC
Jump to comment: Most recent
Consider this output:
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://vanilla-drupal.local/en/jsonapi/block/block/resource/schema.json?XDEBUG_SESSION_START=PHPSTORM",
"allOf": [
{
"type": "object",
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
},
"relationships": {
"$ref": "#/definitions/relationships"
}
}
},
{
"$ref": "https://jsonapi.org/schema#/definitions/resource"
}
],
"properties": {
"attributes": {
"$ref": "#/definitions/attributes"
}
},
"definitions": {
"attributes": {
"description": "Entity attributes",
"type": "object",
"properties": {
"third_party_settings": {
"properties": {
"third_party_settings": []
}
},
"visibility": {
"properties": {
"visibility": []
}
}
},
"additionalProperties": false
}
}
}
Notice how /allOf[0]/properties/relationships is pointing to /definitions/relationships. However that path does not exist because this entity type has no relationships.
This won't end up well when de-referencing the schema.
Comments