Skip to content

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 8, 2026

…alse

When a Post operation has output: false, API Platform's Hydra documentation sets hydra:returns to owl:Nothing. The findRelatedClass function's Strategy 2 tried to look up this class and threw because it's not a supported class.

Wrap the findSupportedClass call in Strategy 2 with try/catch (matching Strategy 3's pattern) so it falls through to other strategies when a class like owl:Nothing is not found.

Closes #163

…alse

When a Post operation has output: false, API Platform's Hydra documentation
sets hydra:returns to owl:Nothing. The findRelatedClass function's Strategy 2
tried to look up this class and threw because it's not a supported class.

Wrap the findSupportedClass call in Strategy 2 with try/catch (matching
Strategy 3's pattern) so it falls through to other strategies when a class
like owl:Nothing is not found.

Closes api-platform#163
@soyuka soyuka merged commit ef10e12 into api-platform:main Feb 8, 2026
3 checks passed
@soyuka soyuka deleted the fix/163 branch February 8, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting Post output to false exception in React Admin on missing owl:Nothing reference

1 participant