setAllowPatterns

public final void setAllowPatterns(boolean value)

Enable regex pattern constraints on string fields. Off by default: pattern support differs widely between structured-output modes (several reject common shorthand classes such as \d), so patterns are only generated when explicitly enabled.

Parameters

value

The value to set for the AllowPatterns property.