- 🇺🇸United States m.stenta
I wanted to bring attention to this new issue I just opened, which aims to improve the current
allowed_values
logic so that it supports any field that implementsOptionsProviderInterface
.✨ Use OptionsProviderInterface::getPossibleOptions() for allowed field values (anyOf / oneOf) Needs review
While working on that, I came across this issue, which I noticed also uses
getPossibleOptions()
, but for a different case.I'm not sure if it would be possible to merge our logic together somehow, to cover all cases where
getPossibleOptions()
is needed. But I figured I would at least start by cross-linking the issues so everyone is aware of both. :-) - Status changed to Postponed: needs info
5 days ago 2:23pm 15 May 2025 - 🇺🇸United States m.stenta
I tried replicating this in the new automated tests, but wasn't able to get the code in the MR to trigger, so I think we would need to add more test coverage for this case.
Chatted briefly with @joachim in Slack:
@joachim: Sorry, it’s so long ago I don’t remember
@joachim: My issue came up with a custom data type, not a field typeI'm going to postpone this as "maintainer needs more info" for now. If anyone else runs into this and can provide a failing test to demonstrate it then we can reopen and work on adding support.