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).
Get the property types of an AST and filter out properties that are not form inputs.
The
FormInputAnnotationis read from the raw property signature's AST (beforeencodedBoundASTis applied bySchemaEx.getProperties), becauseencodedBoundASTstrips annotations from non-keyword inner types (e.g.,Schema.Struct,Schema.Array). Without this, fields likeRoutine.input(a JsonSchema struct) annotatedFormInputAnnotation.set(false)would still render in the form.For optional fields,
prop.typeis the unionT | undefined, and the annotation may live on the innerT(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
encodedBoundASTproduced bySchemaEx.getProperties.encodedBoundASTstrips annotations from non-keyword inner types, so aFormInputAnnotationnested beneath an encoded container (e.g.RouteLeg.geometry, reached viaSegment → details → routes → Route → legs) would otherwise be lost by the time recursion reaches it. Leaf/transformation fields stay encoded (e.g. aDateTimestill renders as its encoded string input).