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"