-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map does not support polymorphic values #769
Comments
@dselman This pull request needs review. Currently, it lacks test cases, but I will implement them if the changes are in the right direction. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Hi @dselman @DianaLease . I would like tackle this issue. Thank you for the detailed explanation. You're correct that abstract types like |
Bug Report 🐛
Possibly an enhancement?
Today I tried to use a map with an abstract type as the value:
Code:
Expected Behavior
Should be able to deserialise a map that uses abstract types as values.
Current Behavior
Possible Solution
I think the bug is in processMapType. We are calling
newConcept
with the name of the map value type, whereas we should be using the $class invalue
, and we should check thatvalue
is assignable to map value.E.g. see this code in ResourceValidator:
Steps to Reproduce
Context (Environment)
Concerto v3.14.2
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: