api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
482 stars 130 forks source link

fix problem+json context resolving while expanding violation list #553

Closed PawelSuwinski closed 4 months ago

PawelSuwinski commented 4 months ago

It seems that @context ld+json property conflicts with expandContext option of jsonld.expand() while expanding document, however it is required for problem+json for proper context resolving.

It is continuation of #528 revert, which brought back ld+json support but broke problem+json. This combines the two depending on existence of @context property in response body.

Fix #548