Skip to content

JSON Schema For Scenario Validation

JAPPS edited this page Jun 3, 2026 · 2 revisions

You may not need this schema often, you may need it only you are developing some kind of custom tool using zerocode.

Use it this way:

  • Validate scenarios from the CLI, e.g. with ajv-cli:

    # Note: This is optional step, only do this if you have npx and ajv-cli already installed
    # npx: Runs npm package without global install
    npx ajv-cli validate -s schema/zerocode-scenario-schema.json -d core/src/test/resources/templates/example_scenario_1.json
  • Note: you can use any other tool as well to validate a JSON scenario file against the Schema

  • Two starter templates live under core/src/test/resources/templates/: example_scenario_1.json (typical REST flow with two steps), and example_scenario_2.json (parameterized scenario with both valueSource and csvSource).

Blogs

Clone this wiki locally