Restructure mapping operation in schema.

This commit is contained in:
2026-11-13 14:50:42 -06:00
parent 25ea24d0fb
commit 6cc70f457e

View File

@@ -31,12 +31,13 @@ $defs:
oneOf:
# Mapping
- description: >-
Map one set of values to another. Returns the value of the `_default`
Map one set of values to another. Returns the value of the `default`
property if no other key matches. For `rregexmapping`, the mapping keys
are treated as regular expressions.
type: object
required:
- operation
- mapping
minProperties: 2
additionalProperties:
$ref: "#/$defs/scalar"
@@ -46,11 +47,13 @@ $defs:
- mapping # Exact match
- regexmapping # Search term is regex, keys are strings
- rregexmapping # Search term is string, keys are regexes
_file:
type: string
_column:
mapping:
type:
- string # Path to data file (YAML)
- object # In-place mapping
column:
type: integer
_default:
default:
default: null
$ref: "#/$defs/scalar"
# Math, Logic & Predefined Functions