Kickstart and lambdas and newlines
-
I'm using kickstart to set up my FusionAuth instances.
Only issue i ran into was posting a lambda body. looks like FusionAuth does some ‘\n’ replacement in the kickstart process. The lambdas created using kickstart have newlines stripped.
Creating a lambda using the API (post for example) works fine, (respects newlines). The lambda appears to work, so this isn't a critical issue.
But is there a way to preserve newlines?
-
Can you use an include for the function body? For example: (where
myLambda.ftl
is your Lambda function in a folder namedlambdas
)"lambda":{ "body": "@{lambdas/myLambda.ftl}", }
That should preserve your line returns if you include it that way. Hope that helps!