Skip to content

Commit

Permalink
Support minimum-client-version
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Dec 1, 2023
1 parent 8ad7914 commit 50f7ebd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mocks:
--user $$(id -u):$$(id -g) \
-w /work \
-v ${PWD}:/work \
vektra/mockery:v2.33.2 -r --keeptree --inpackage --dir api/client --output test/mocks --all
vektra/mockery:v2.38.0 -r --keeptree --inpackage --dir api/client --output test/mocks --all
go run ./test/client/generate/generate_mock_client.go

.PHONY: gofmt
Expand Down
17 changes: 17 additions & 0 deletions api/models/rest_version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions metal-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
"gitsha1": {
"type": "string"
},
"min_client_version": {
"type": "string"
},
"name": {
"type": "string"
},
Expand All @@ -408,6 +411,7 @@
"required": [
"builddate",
"gitsha1",
"min_client_version",
"name",
"revision",
"version"
Expand Down

0 comments on commit 50f7ebd

Please sign in to comment.