You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a commandline option to the make-validation-function script that, instead of outputting the result as a multi-line JavaScript block, escapes all line ending, backslash and double quote characters so that the output is encased in a single-line JSON-compatible string written to the target file.
OldSneerJaw
changed the title
Option to output a generated validation function as a single-line string
Option to output a generated validation function as a single-line JSON string
Mar 6, 2018
Specified as either `--json-string` or `-j`, this command line option has the `make-validation-function` script output the validation function in a double-quoted string that is suitable for use as the value of a design document's `validate_doc_update` property.
Add a commandline option to the
make-validation-function
script that, instead of outputting the result as a multi-line JavaScript block, escapes all line ending, backslash and double quote characters so that the output is encased in a single-line JSON-compatible string written to the target file.For example:
or
The text was updated successfully, but these errors were encountered: