Skip to content
Discussion options

You must be logged in to vote

The nested fields need to be part of the structured type value. With the scalar shorthand type: record / type: table, the YAML reader creates a RecordDataType / TableDataType with an empty Properties collection; the sibling properties mapping is not used to populate that data type.

This shape preserves the children:

outputSchema:
  type: object
  properties:
    rationale:
      type:
        kind: record
        properties:
          test:
            type: string
          test2:
            type: string
      required: true
    results:
      type:
        kind: table
        properties:
          id:
            type: string
          value:
            type: string

table is the objec…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KossiH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants