OasSchema.nullable

A true value adds "null" to the allowed type specified by the type keyword, only if type is explicitly defined within the same OasSchema object. Other OasSchema object constraints retain their defined behavior, and therefore may disallow the use of null as a value. A false value leaves the specified or default type unmodified. The default value is false.

class OasSchema
@jsonOptional
bool nullable;

Meta