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
@ -71,13 +71,18 @@ var queryParameterStatePullRequest = openapi3.ParameterOrRef{
|
|||||||
Required: ptr.Bool(false),
|
Required: ptr.Bool(false),
|
||||||
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{
|
||||||
Enum: []interface{}{
|
Schema: &openapi3.Schema{
|
||||||
ptr.String(string(enum.PullReqStateOpen)),
|
Type: ptrSchemaType(openapi3.SchemaTypeString),
|
||||||
ptr.String(string(enum.PullReqStateClosed)),
|
Default: ptrptr(string(enum.PullReqStateOpen)),
|
||||||
ptr.String(string(enum.PullReqStateMerged)),
|
Enum: []interface{}{
|
||||||
ptr.String(string(enum.PullReqStateRejected)),
|
ptr.String(string(enum.PullReqStateOpen)),
|
||||||
|
ptr.String(string(enum.PullReqStateClosed)),
|
||||||
|
ptr.String(string(enum.PullReqStateMerged)),
|
||||||
|
ptr.String(string(enum.PullReqStateRejected)),
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user