public boolean getRequired() { return Optional.ofNullable(body.getRequired()).orElse(false); }
if (TRUE.equals(apiRequestBodyDefinition.getRequired())) { return ValidationReport.singleton( messages.get("validation.request.body.missing")
this.required = body.getRequired(); this.extensions = body.getExtensions(); this.ref = body.get$ref();
codegenParameter.paramName = REQUEST_BODY_NAME; codegenParameter.description = body.getDescription(); codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE; codegenParameter.getVendorExtensions().put(CodegenConstants.IS_BODY_PARAM_EXT_NAME, Boolean.TRUE);
codegenParameter.paramName = REQUEST_BODY_NAME; codegenParameter.description = body.getDescription(); codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE; codegenParameter.getVendorExtensions().put(CodegenConstants.IS_BODY_PARAM_EXT_NAME, Boolean.TRUE);
codegenParameter.paramName = "UNKNOWN_PARAM_NAME"; codegenParameter.description = escapeText(body.getDescription()); codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE; codegenParameter.isBodyParam = Boolean.TRUE;
oldRequestBody != null && Boolean.TRUE.equals(oldRequestBody.getRequired()); boolean rightRequired = newRequestBody != null && Boolean.TRUE.equals(newRequestBody.getRequired());