JsonataFunctionReturnType

Type the function returns. For primitives (string, number, boolean), the bare type is enough. For object, pair with schemaKey + schemaVersion to pin the produced shape to a schema. For array, pair with itemType to declare the element type (and add schemaKey + schemaVersion when itemType is object).

  • type
    Type: stringenum
    required

    The return type.

    values
    • string
    • number
    • boolean
    • object
    • array
  • itemType
    Type: stringenum

    Element type when type is array.

    values
    • string
    • number
    • boolean
    • object
  • schemaKey
    Type: string

    Schema key pinning the returned shape (when type is object, or when type is array and itemType is object).

  • schemaVersion
    Type: string

    Version of the pinned schema (draft or a published semver).