Zerkel Cli
Summary
Simple zerkel validator cli tool that uses the adzerk/zerkel
library.
Usage
Cli options available with zerkel --help
.
- Install the tool with
npm install --global @adzerk/zerkel-cli
. - Run the command with
zerkel validate [expression]
- That's it!
Output Format
title: Zerkel Validation Result
oneOf:
- title: Zerkel Validation Error Result
required:
- body
- result
properties:
body:
title: Body
type: object
required:
- error
- version
properties:
error:
title: Error
description: Error information.
type: string
version:
title: Version
description: Parser version.
type: string
pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+$"
result:
title: Result
description: Error result.
const: error
- title: Zerkel Validation Successful Result
required:
- body
- result
properties:
body:
title: Body
type: object
required:
- code
- version
properties:
code:
title: Code
description: Result information.
type: string
version:
title: Version
description: Parser version.
type: string
pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+$"
result:
title: Result
description: Success result.
const: success