Skip to content

Commit 0e2081b

Browse files
authored
Merge pull request #235 from netlify/plugin-run-dedupe-deploy-id
Remove deploy_id from PluginRun create body
2 parents 13c0c58 + 9133e98 commit 0e2081b

File tree

6 files changed

+165
-25
lines changed

6 files changed

+165
-25
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ test: ## Test the go code.
2020
gobin -m -run github.com/kyoh86/richgo test -v $(CHECK_FILES)
2121

2222
validate: deps ## Check that the swagger spec is valid.
23-
gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger@c49ea4ca2112a67af0faa06ffdc994b036860a0c validate $(SWAGGER_SPEC)
23+
gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger@v0.23.0 validate $(SWAGGER_SPEC)

go/models/plugin_run.go

Lines changed: 48 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/models/plugin_run_all_of1.go

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/models/plugin_run_data.go

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/plumbing/operations/create_plugin_run_parameters.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swagger.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ paths:
915915
- name: plugin_run
916916
in: body
917917
schema:
918-
$ref: '#/definitions/pluginRun'
918+
$ref: '#/definitions/pluginRunData'
919919
responses:
920920
'201':
921921
description: CREATED
@@ -2280,11 +2280,9 @@ definitions:
22802280
type: string
22812281
error:
22822282
type: boolean
2283-
pluginRun:
2283+
pluginRunData:
22842284
type: object
22852285
properties:
2286-
deploy_id:
2287-
type: string
22882286
package:
22892287
type: string
22902288
version:
@@ -2299,6 +2297,13 @@ definitions:
22992297
type: string
23002298
text:
23012299
type: string
2300+
pluginRun:
2301+
allOf:
2302+
- $ref: '#/definitions/pluginRunData'
2303+
- type: object
2304+
properties:
2305+
deploy_id:
2306+
type: string
23022307
metadata:
23032308
type: object
23042309
dnsZoneSetup:

0 commit comments

Comments
 (0)