I'm implementing some dynamic types for use in custom resources. I'd like to create the actions using polyglot but when I return a JSON object it doesn't get converted to the expected DynamicType.
Is this possible or do I need a post-step which takes my JSON object and builds an instance of the dynamic type from it?
Ah that's a really good point.
I'm not married to the idea of DynamicTypes - in fact I'd prefer not to use them.
I suppose what I can do is try to make a very generic action that takes JSON input, and a type, and returns a DynamicObject. Then I can re-use that action wherever I have this use case.