setAllowNullable

public final void setAllowNullable(boolean value)

Enable nullable fields in the generated schema. Nullability is expressed as a type union with null (for example, "type": ["string", "null"]) — the only form accepted across the major structured-output modes. When false, every field is non-nullable. Default is true.

Parameters

value

The value to set for the AllowNullable property.