canNull method
A schema
contains this property
A property name
Implementation
bool canNull(String name, SchemaOpenApi schema) {
if (schema.nullable) return true;
if ((required ?? const []).contains(name)) return false;
return true;
}
A schema
contains this property
A property name
bool canNull(String name, SchemaOpenApi schema) {
if (schema.nullable) return true;
if ((required ?? const []).contains(name)) return false;
return true;
}