fix(swagger): swagger-ui hangs on some calls

closes #566
This commit is contained in:
Gauthier Roebroeck 2021-07-02 09:16:28 +08:00
parent d3ef49a818
commit 76caa4de39
2 changed files with 2 additions and 4 deletions

View file

@ -4,14 +4,13 @@ import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.Parameters
import io.swagger.v3.oas.annotations.enums.ParameterIn
import io.swagger.v3.oas.annotations.media.ArraySchema
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
@Parameters(
Parameter(
description = "Author criteria in the format: name,role. Multiple author criteria are supported.",
`in` = ParameterIn.QUERY, name = "author", content = [Content(array = ArraySchema(schema = Schema(type = "string")))]
`in` = ParameterIn.QUERY, name = "author", array = ArraySchema(schema = Schema(type = "string"))
)
)
annotation class AuthorsAsQueryParam

View file

@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.Parameters
import io.swagger.v3.oas.annotations.enums.ParameterIn
import io.swagger.v3.oas.annotations.media.ArraySchema
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
@ -40,7 +39,7 @@ annotation class PageableWithoutSortAsQueryParam
),
Parameter(
description = "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.",
`in` = ParameterIn.QUERY, name = "sort", content = [Content(array = ArraySchema(schema = Schema(type = "string")))]
`in` = ParameterIn.QUERY, name = "sort", array = ArraySchema(schema = Schema(type = "string"))
)
)
annotation class PageableAsQueryParam