diff --git a/swagger.go b/swagger.go index 95b15a2..3268746 100644 --- a/swagger.go +++ b/swagger.go @@ -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, 提供一种简单的方法来表示参数中的嵌套对象值.` )