OpenApiV31BooleanSchema class final

A schema that accepts every instance or none.

Inheritance

Constructors

OpenApiV31BooleanSchema({required bool value, String dialect = OpenApiV31Schema.oasDialect})
Uses value as the validation result for every instance.
const

Properties

dialect → String
Effective dialect URI for this schema.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → bool
True accepts every instance. False rejects every instance.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → bool
Returns the schema as a JSON boolean or object.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited