-
-
Notifications
You must be signed in to change notification settings - Fork 121
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 |
@Mamatha1718 I have assigned the issue to you, thank you! |
Hi @DianaLease , Thank you for assigning the issue to me. I've made a PR, but I’m facing an issue. In the time of Could you please help me understand why this error is occurring? I believe it might be related to how the class types are not properly defined or linked during serialization/deserialization. Could you clarify how to resolve this? |
@DianaLease shouldn't we merge the PR by Kshitij, if its not conflicting with any other changes made after that PR? @mttrbrts has already approved the PR and you and Dan seemed fine with the changes as well. |
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: