isRequired property

bool get isRequired

Determines whether this parameter is mandatory.

If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.

Implementation

bool get isRequired =>
    (location == APIParameterLocation.path ? true : (_required ?? false));
set isRequired (bool f)

Implementation

set isRequired(bool f) {
  _required = f;
}