Skip to content

Commit

Permalink
Add note about JSON syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Oct 5, 2020
1 parent a47bf48 commit 09c00fd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions constructor/dsl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ In the Rosetta Constructor DSL, it is possible to invoke functions (where
the function name is an `Action.Type`) but not possible to define your own
functions (yet!).

#### Inputs
The input for all functions is a JSON blob that will be evaluated by
the `Worker`. Note, it is possible to reference other variables
in an input using the syntax `{{var}}`. The Rosetta Constructor DSL
compiler will automatically check that referenced variables are previously
defined.
the `Worker`. It is possible to reference other variables
in an input using the syntax `{{var}}` where `var` must follow
[this syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md).
The Rosetta Constructor DSL compiler will automatically check that referenced
variables are previously defined.

#### End Line
Function invocations can span multiple lines (if you "pretty print" the JSON
Expand Down

0 comments on commit 09c00fd

Please sign in to comment.