concerto icon indicating copy to clipboard operation
concerto copied to clipboard

Convert a payload to and from a Concerto-compliant one

Open stefanblaginov opened this issue 2 years ago • 2 comments

We would like to be able to convert any payload that has an existing Concerto model to a Concerto-compliant one (i.e. containing $class fields etc).

This already exists in an experimental version in a private repo and can be moved to concerto-tools.

stefanblaginov avatar Feb 08 '23 16:02 stefanblaginov

@stefanblaginov is this a duplicate of #542 ?

mttrbrts avatar Apr 26 '23 10:04 mttrbrts

I don't think it's quite the same. #542 still requires $class fields where it would be ambiguous without them. I don't know what it means to talk about a "payload that has an existing Concerto model" that's not already "a Concerto-compliant one". Perhaps it means something like "Here's a bare JSON object. I know it doesn't say so, but it's actually a [email protected]. Now go fix it up to make it legal."? An example would help. :-)

DS-AdamMilazzo avatar May 24 '23 16:05 DS-AdamMilazzo