Skip to main content

Exactness

No overview available.

Attributes

AttributeTypeDescription
Lax[Exactness](exactness.md?sid=validators_validation_state_exactness)Specifies a loose matching strategy that allows for minor variations or approximations.
Strict[Exactness](exactness.md?sid=validators_validation_state_exactness)Enforces a rigorous matching policy that requires adherence to defined constraints without being identical.
Exact[Exactness](exactness.md?sid=validators_validation_state_exactness)Requires an absolute, literal match where the values must be identical in every respect.

Methods


Lax()

def Lax() - > [Exactness](exactness.md?sid=validators_validation_state_exactness)

Represents a loose matching strategy that allows for minor variations or partial matches during comparison.

Returns

TypeDescription
[Exactness](exactness.md?sid=validators_validation_state_exactness)An instance of the Exactness enum set to Lax mode.

Strict()

def Strict() - > [Exactness](exactness.md?sid=validators_validation_state_exactness)

Represents a rigorous matching strategy that requires high similarity while potentially allowing for non-functional differences.

Returns

TypeDescription
[Exactness](exactness.md?sid=validators_validation_state_exactness)An instance of the Exactness enum set to Strict mode.

Exact()

def Exact() - > [Exactness](exactness.md?sid=validators_validation_state_exactness)

Represents the most stringent matching strategy requiring an absolute, bit-for-bit or character-for-character identity between values.

Returns

TypeDescription
[Exactness](exactness.md?sid=validators_validation_state_exactness)An instance of the Exactness enum set to Exact mode.