Description
We currently do not support Unstructured in Schema.Convert - there was a quick attempt here open-component-model/open-component-model@6309a5d#diff-4b40a5b3380086b2fa158745f5feaffb60c2af308fa97ce7654a21451a4e5485R428 but we should spend more time doing it right.
We stumble across this usually when we want to support our complete type-system to be parsed into a concrete type.
scheme.Convert should support Unstructured as a source and concrete types as a target. We would have to use the internal type field in the json payload as the type to parse into, and then use the internal json data as the content of the type. You can check how raw does it, scheme.Convert needs a comparable handling for Unstructured.
Done Criteria
Description
We currently do not support Unstructured in Schema.Convert - there was a quick attempt here open-component-model/open-component-model@6309a5d#diff-4b40a5b3380086b2fa158745f5feaffb60c2af308fa97ce7654a21451a4e5485R428 but we should spend more time doing it right.
We stumble across this usually when we want to support our complete type-system to be parsed into a concrete type.
scheme.Convertshould supportUnstructuredas a source and concrete types as a target. We would have to use the internaltypefield in the json payload as the type to parse into, and then use the internaljsondata as the content of the type. You can check how raw does it,scheme.Convertneeds a comparable handling forUnstructured.Done Criteria