public String displayDescription(final MarkupDocBuilder markupDocBuilder) { return markupDescription(config.getSwaggerMarkupLanguage(), markupDocBuilder, body.getDescription()); }
this.description = body.getDescription(); this.required = body.getRequired(); this.extensions = body.getExtensions();
codegenParameter.baseName = REQUEST_BODY_NAME; 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.baseName = REQUEST_BODY_NAME; 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);
public ParameterAdapter(Swagger2MarkupConverter.Context context, PathOperation operation, Parameter parameter, DocumentResolver definitionDocumentResolver) { Validate.notNull(parameter, "parameter must not be null"); this.parameter = parameter; if (parameter.get$ref() != null) { Optional.ofNullable(context.getCache() .loadRef(parameter.get$ref(), computeRefFormat(parameter.get$ref()), Object.class)) .filter(o -> o instanceof RequestBody) .map(o -> ((RequestBody) o)) .ifPresent(body -> { parameter.setIn("Body"); parameter.setName("body"); parameter.setDescription(body.getDescription()); }); } type = getType(definitionDocumentResolver); config = context.getConfig(); if (config.isInlineSchemaEnabled()) { if (config.isFlatBodyEnabled()) { if (!(type instanceof ObjectType)) { type = InlineSchemaUtils.createInlineType(type, parameter.getName(), operation.getId() + " " + parameter.getName(), inlineDefinitions); } } else { type = InlineSchemaUtils.createInlineType(type, parameter.getName(), operation.getId() + " " + parameter.getName(), inlineDefinitions); } } }
bodyParam.description = escapeText(requestBody.getDescription()); postProcessParameter(bodyParam);
.getMetadataDiff() .diff( oldRequestBody != null ? oldRequestBody.getDescription() : null, newRequestBody != null ? newRequestBody.getDescription() : null, context) .ifPresent(changedRequestBody::setDescription);
String description = requestBody.getDescription(); if (isNotBlank(description)) { markupDocBuilder.paragraph(
codegenParameter.baseName = "UNKNOWN_BASE_NAME"; codegenParameter.paramName = "UNKNOWN_PARAM_NAME"; codegenParameter.description = escapeText(body.getDescription()); codegenParameter.required = body.getRequired() != null ? body.getRequired() : Boolean.FALSE; codegenParameter.isBodyParam = Boolean.TRUE;