diff --git a/extensions/schema.yaml b/extensions/schema.yaml index f62b055..402011e 100644 --- a/extensions/schema.yaml +++ b/extensions/schema.yaml @@ -24,6 +24,22 @@ $defs: The file extension to save files with. The value of `name` is used if `extension` is not provided. type: string + insertRow: + description: >- + A row of data to insert into the dataframe at the specified location. + type: object + required: + - location + - value + additionalProperties: false + properties: + location: + type: integer + value: + oneOf: + - $ref: "#/$defs/scalar" + - type: object + - type: array operation: description: >- An operation to perform on a value to convert it from one format to @@ -165,6 +181,15 @@ $defs: type: string string: type: string + operations: + description: >- + One or more operations to perform on a value. + oneOf: + - $ref: "#/$defs/operation" + - type: array + minItems: 1 + items: + $ref: "#/$defs/operation" scalar: anyOf: - type: boolean @@ -192,28 +217,7 @@ $defs: description: >- Operations to perform on the raw value(s) to generate the value for this column. - oneOf: - - $ref: "#/$defs/operation" - - type: array - minItems: 1 - items: - $ref: "#/$defs/operation" - insertRow: - description: >- - A row of data to insert into the dataframe at the specified location. - type: object - required: - - location - - value - additionalProperties: false - properties: - location: - type: integer - value: - oneOf: - - $ref: "#/$defs/scalar" - - type: object - - type: array + $ref: "#/$defs/operations" # Schema type: object @@ -334,9 +338,9 @@ properties: $ref: "#/$defs/scalar" parse: description: >- - Operation to process data for this column when reading from a + Operation(s) to process data for this column when reading from a file. - $ref: "#/$defs/operation" + $ref: "#/$defs/operations" const: $ref: "#/$defs/scalar" translate: