增加swagger parameter style定义
This commit is contained in:
parent
d39136c71c
commit
afb5d1d933
@ -50,6 +50,11 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
SwaggerParameterStyleForm = "form" // query 对应 form; cookie 对应 form
|
||||
SwaggerParameterStyleSimple = "simple" // path 对应 simple; header 对应 simple;
|
||||
SwaggerParameterStyleForm = "form" // in = query / cookie , type = primitive, array, object
|
||||
SwaggerParameterStyleSimple = "simple" // in = path / header , type = array , Simple 样式的参数,参见 RFC6570. 此选项替换定义于OpenAPI 2.0 中 collectionFormat等于csv的情况。
|
||||
SwaggerParameterStyleMatrix = "matrix" // in = path , type = primitive, array, object
|
||||
SwaggerParameterStyleLabel = "label" // in = path , type = primitive, array, object
|
||||
SwaggerParameterStyleSpaceDelimited = "spaceDelimited" // in = query , type = array, 空格分隔的数组值。此选项替换定义于OpenAPI 2.0 中 collectionFormat equal to ssv的情况。
|
||||
SwaggerParameterStylePipeDelimited = "pipeDelimited" // in = query , type = array, 管道符`
|
||||
SwaggerParameterStyleDeepObject = "deepObject" // in = query , type = object, 提供一种简单的方法来表示参数中的嵌套对象值.`
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user