Skip to main content

Strict

A field metadata class to indicate that a field should be validated in strict mode. Use this class as an annotation via Annotated, as seen below.

Attributes

AttributeTypeDescription
strictbool = TrueWhether to validate the field in strict mode.

Constructor

Signature

def Strict(
strict: bool = True
) - > None

Parameters

NameTypeDescription
strictbool = TrueWhether to validate the field in strict mode.