cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Custom Snap Input Schema is null

kayla_akey
New Contributor

Developing a custom snap that is an expression and accepts input schema.

This is how I defined my parameter:
image

And this is the error I get when I test it in snaplogic:
image

Any idea of what needs to be done to get the input schema to work?

3 REPLIES 3

Supratim
Contributor III

@kayla.akey I think you have to use snap type as JSONPATH like that

propertyBuilder.describe(INPUT_DATE_STR,โ€œDate field to convert,it should be as a stringโ€).required().expression(SnapProperty.DecoratorType.ACCEPTS_SCHEMA). expression(SnapProperty.DecoratorType.ENABLED_EXPRESSION).type(SnapType.JSONPATH).add();
and have to use INPUT_DATE_STR_EXP_PROP.eval(document) inside Process method.
@dmiller Example given in snap developer portal is very good but it will be great if you can add few more information and use cases there. Thanks.

Iโ€™ve forwarded the request on to the Snap developers.


Diane Miller
Community Manager

Thanks @dmiller