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

    Function getFormProperties

    • Get the property types of an AST and filter out properties that are not form inputs.

      The FormInputAnnotation is read from the raw property signature's AST (before encodedBoundAST is applied by SchemaEx.getProperties), because encodedBoundAST strips annotations from non-keyword inner types (e.g., Schema.Struct, Schema.Array). Without this, fields like Routine.input (a JsonSchema struct) annotated FormInputAnnotation.set(false) would still render in the form.

      For optional fields, prop.type is the union T | undefined, and the annotation may live on the inner T (Schema.String.pipe(FormInputAnnotation.set(false), Schema.optional)) or on that union (Schema.optional(Schema.String).pipe(FormInputAnnotation.set(false))); either hides the field.

      Container properties (nested structs, unions, arrays) keep their raw AST rather than the encodedBoundAST produced by SchemaEx.getProperties. encodedBoundAST strips annotations from non-keyword inner types, so a FormInputAnnotation nested beneath an encoded container (e.g. RouteLeg.geometry, reached via Segment → details → routes → Route → legs) would otherwise be lost by the time recursion reaches it. Leaf/transformation fields stay encoded (e.g. a DateTime still renders as its encoded string input).

      Parameters

      • ast: AST

      Returns SchemaProperty[]