rulemorph 0.2.3

YAML-based declarative data transformation engine for CSV/JSON to JSON
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
version: 2
input:
  format: json
  json: {}
steps:
  - mappings:
      - target: "score"
        source: "input.score"
  - asserts:
      - when: { gt: ["@out.score", 0] }
        error:
          code: "INVALID_SCORE"
          message: "score must be > 0"