cancel
Showing results for 
Search instead for 
Did you mean: 

Example of defineInputSchema for multi-level inputs

andrew_holbrook
New Contributor III

Hi,

I’m trying to create an input schema for my data source. Here is an example input data format:

{ “data”: { “name”:“Andrew”, “value”:1}}

How do I represent this “layered” schema? Can you provide an example?

6 REPLIES 6

andrew_holbrook
New Contributor III

Thanks! Can’t wait to try this out!

andrew_holbrook
New Contributor III

@del @robin that appears to be working, thank you!

One last question is how we think doing an array?

For now I’ve done it like this:
ObjectSchema array_schema = provider.createSchema(SnapType.TABLE, "data");
and then I leverage addChild to define schema elements to a potential object in an array?