mirror of
https://github.com/harness/drone.git
synced 2025-05-12 23:20:10 +08:00
fix list pullreq API openapi spec (#110)
This commit is contained in:
parent
4c8323584b
commit
a50e9a9951
@ -72,7 +72,10 @@ var queryParameterStatePullRequest = openapi3.ParameterOrRef{
|
|||||||
Schema: &openapi3.SchemaOrRef{
|
Schema: &openapi3.SchemaOrRef{
|
||||||
Schema: &openapi3.Schema{
|
Schema: &openapi3.Schema{
|
||||||
Type: ptrSchemaType(openapi3.SchemaTypeArray),
|
Type: ptrSchemaType(openapi3.SchemaTypeArray),
|
||||||
Default: ptrptr(enum.PullReqStateOpen),
|
Items: &openapi3.SchemaOrRef{
|
||||||
|
Schema: &openapi3.Schema{
|
||||||
|
Type: ptrSchemaType(openapi3.SchemaTypeString),
|
||||||
|
Default: ptrptr(string(enum.PullReqStateOpen)),
|
||||||
Enum: []interface{}{
|
Enum: []interface{}{
|
||||||
ptr.String(string(enum.PullReqStateOpen)),
|
ptr.String(string(enum.PullReqStateOpen)),
|
||||||
ptr.String(string(enum.PullReqStateClosed)),
|
ptr.String(string(enum.PullReqStateClosed)),
|
||||||
@ -82,6 +85,8 @@ var queryParameterStatePullRequest = openapi3.ParameterOrRef{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var queryParameterSortPullRequest = openapi3.ParameterOrRef{
|
var queryParameterSortPullRequest = openapi3.ParameterOrRef{
|
||||||
|
Loading…
Reference in New Issue
Block a user