mirror of
https://github.com/harness/drone.git
synced 2025-05-08 12:11:55 +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),
|
||||
Schema: &openapi3.SchemaOrRef{
|
||||
Schema: &openapi3.Schema{
|
||||
Type: ptrSchemaType(openapi3.SchemaTypeArray),
|
||||
Default: ptrptr(enum.PullReqStateOpen),
|
||||
Enum: []interface{}{
|
||||
ptr.String(string(enum.PullReqStateOpen)),
|
||||
ptr.String(string(enum.PullReqStateClosed)),
|
||||
ptr.String(string(enum.PullReqStateMerged)),
|
||||
ptr.String(string(enum.PullReqStateRejected)),
|
||||
Type: ptrSchemaType(openapi3.SchemaTypeArray),
|
||||
Items: &openapi3.SchemaOrRef{
|
||||
Schema: &openapi3.Schema{
|
||||
Type: ptrSchemaType(openapi3.SchemaTypeString),
|
||||
Default: ptrptr(string(enum.PullReqStateOpen)),
|
||||
Enum: []interface{}{
|
||||
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