Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
swagger additions
Browse files Browse the repository at this point in the history
  • Loading branch information
sokomishalov committed Mar 3, 2020
1 parent af29391 commit b0cd241
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
package ru.sokomishalov.commons.spring.swagger

import com.fasterxml.classmate.TypeResolver
import org.springframework.boot.info.BuildProperties
import org.springframework.http.ResponseEntity
import org.springframework.http.codec.multipart.FilePart
import org.springframework.http.server.reactive.ServerHttpRequest
import org.springframework.web.multipart.MultipartFile
import reactor.core.publisher.Flux
import reactor.core.publisher.Mono
import ru.sokomishalov.commons.core.consts.EMPTY
import springfox.documentation.builders.ApiInfoBuilder
import springfox.documentation.schema.AlternateTypeRules.newRule
import springfox.documentation.service.Contact
Expand All @@ -48,10 +48,11 @@ fun Docket.customize(
ignoredParameterTypes: List<Class<out Any>> = listOf(ServerHttpRequest::class.java, Continuation::class.java),
genericModelSubstitutes: List<Class<out Any>> = listOf(ResponseEntity::class.java),
useDefaultResponseMessages: Boolean = false,
title: String = EMPTY,
description: String = EMPTY,
contact: Contact = DEFAULT_AUTHOR,
version: String = "1.0.0"
buildProperties: BuildProperties? = null,
title: String = buildProperties?.name.orEmpty(),
description: String = buildProperties?.artifact.orEmpty(),
version: String = buildProperties?.version.orEmpty(),
contact: Contact = DEFAULT_AUTHOR
): Docket {
return this
.useDefaultResponseMessages(useDefaultResponseMessages)
Expand Down

0 comments on commit b0cd241

Please sign in to comment.