Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Add JSON schema support for the datamapper source/target document #861

Closed
igarashitm opened this issue Aug 29, 2017 · 5 comments
Closed

Comments

@igarashitm
Copy link
Member

No description provided.

@igarashitm
Copy link
Member Author

The first commit attached here is just adding an entry point for the JSON schema, nothing else. Let's start here.

datamapper initializes the source/target document here from their DataShape
https://github.com/syndesisio/syndesis-ui/blob/master/src/app/integrations/edit-page/step-configure/data-mapper/data-mapper-host.component.ts#L184-L201

Right now it doesn't even load nor put the content into createDocumentDefinition(), so only java is allowed for DataShape.type. In order to support JSON schema, we need to load the JSON schema from somewhere, and pass it along.

@gashcrumb
Copy link
Contributor

Is this related to #606 by any chance?

@igarashitm
Copy link
Member Author

It looks like so, and it's a datamapper part of the syndesisio/syndesis-project#14. Retrieve a JSON schema from component metadata and pass it into the atlasmap.

@igarashitm
Copy link
Member Author

JSON schema inspection in atlasmap has been implemented here - atlasmap/atlasmap#153

@igarashitm
Copy link
Member Author

igarashitm commented Aug 30, 2017

if DataShape.kind == json-instance || json-schema || xml-instance || xml-schema
then we need a content. We'll need a extra key in the DataShape to indicate where the metadata can be retrieved, which would eventually reach the camel component metadata.

https://github.com/igarashitm/syndesis-ui/blob/77e81e1d37689d7fbdb08bff57eae3a41a55f309/src/app/integrations/edit-page/step-configure/data-mapper/data-mapper-host.component.ts#L164-L175

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants