@dxos/react-ui-form
    Preparing search index...

    Function getRootFormProperties

    • Resolve the properties to render for a field set's root schema, given the current form values.

      A top-level discriminated union is rendered flat: the fields of the member selected by the current discriminator value, with the discriminator field keeping the union-wide set of literals so it stays switchable. (SchemaAST.getPropertySignatures on a union returns only the common discriminator, so a union root would otherwise render just that one field.) Non-union roots are unchanged. Nested unions are unaffected — those are expanded per-field by FormFieldDispatch, which passes a single-member type literal here.

      Parameters

      • ast: AST
      • values: undefined | AnyProperties

      Returns SchemaProperty[]