Skip to content

Commit 82ba8fe

Browse files
Merge branch 'main' into add-missing-fields-to-network-types
2 parents cbcd497 + c63d62d commit 82ba8fe

File tree

15 files changed

+3617
-3124
lines changed

15 files changed

+3617
-3124
lines changed

.changelog/v0.5.0.toml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
[[breaking]]
2-
title = ""
3-
description = ""
2+
title = "Update to Go 1.24"
3+
description = "Updated the SDK's Go version to Go 1.24. Consumers of this SDK will need to update to Go 1.24 as well. [#291](https://github.com/oxidecomputer/oxide.go/pull/291)"
4+
5+
[[breaking]]
6+
title = "Set `omitzero` on specific types"
7+
description = "Set `omitzero` on specific types so that clients can pass an empty slice and have it serialized as `[]`. Requires Go 1.24 or later. [#289](https://github.com/oxidecomputer/oxide.go/pull/289)"
48

59
[[features]]
6-
title = ""
7-
description = ""
10+
title = "SiloAuthSettings"
11+
description = "Methods to view and update authentication settings. Namely, set token expiration. [#294](https://github.com/oxidecomputer/oxide.go/pull/294)"
12+
13+
[[features]]
14+
title = "CurrentUserAccessToken"
15+
description = "Methods to view and delete a current user's auth tokens. [#294](https://github.com/oxidecomputer/oxide.go/pull/294)"
816

917
[[bugs]]
1018
title = "Type fields"
1119
description = "All arrays that are nullable in the API no longer have `omitempty` to avoid panics if unset. [#283](https://github.com/oxidecomputer/oxide.go/pull/283)"
1220

1321
[[enhancements]]
1422
title = ""
15-
description = ""
23+
description = ""

.changelog/v0.6.0.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[breaking]]
2+
title = ""
3+
description = ""
4+
5+
[[features]]
6+
title = ""
7+
description = ""
8+
9+
[[bugs]]
10+
title = ""
11+
description = ""
12+
13+
[[enhancements]]
14+
title = ""
15+
description = ""

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-go@v5
1313
with:
14-
go-version: "1.x"
14+
go-version-file: "go.mod"
1515
- name: build
1616
shell: bash
1717
run: |

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
ref: ${{ github.event.pull_request.head.ref }}
2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: "1.x"
26+
go-version-file: "go.mod"
2727
- name: Run generate
2828
shell: bash
2929
run: |

.github/workflows/make-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-go@v5
1313
with:
14-
go-version: "1.x"
14+
go-version-file: "go.mod"
1515
- name: Run make generate
1616
run: |
1717
make generate

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# v0.5.0 (2025/Jun/11)
2+
3+
Generated from Oxide API version [20250604.0.0](https://github.com/oxidecomputer/omicron/blob/rel/v15/rc1/openapi/nexus.json)
4+
5+
### Breaking changes
6+
7+
- **Go version update:** Updated the SDK's Go version to Go 1.24. Consumers of this SDK will need to update to Go 1.24 as well. [#291](https://github.com/oxidecomputer/oxide.go/pull/291)
8+
- **Set `omitzero` on specific types:** Clients can pass an empty slice and have it serialized as `[]`. Requires Go 1.24 or later. [#289](https://github.com/oxidecomputer/oxide.go/pull/289)
9+
10+
### New features
11+
12+
- **SiloAuthSettings:** Methods to view and update authentication settings. Namely, set token expiration. [#294](https://github.com/oxidecomputer/oxide.go/pull/294)
13+
- **CurrentUserAccessToken:** Methods to view and delete a current user's auth tokens. [#294](https://github.com/oxidecomputer/oxide.go/pull/294)
14+
15+
### Bug fixes
16+
17+
- **Type fields:** All arrays that are nullable in the API no longer have `omitempty` to avoid panics if unset. [#283](https://github.com/oxidecomputer/oxide.go/pull/283)
18+
19+
### List of commits
20+
21+
- [a3144ae](https://github.com/oxidecomputer/oxide.go/commit/a3144ae) Update omicron to rc15 (#295)
22+
- [c075870](https://github.com/oxidecomputer/oxide.go/commit/c075870) Update to omicron 760d1b0 (#294)
23+
- [ecfa72d](https://github.com/oxidecomputer/oxide.go/commit/ecfa72d) generate: set omitzero on specific types (#289)
24+
- [855352f](https://github.com/oxidecomputer/oxide.go/commit/855352f) go: update to 1.24 (#291)
25+
- [2e4943b](https://github.com/oxidecomputer/oxide.go/commit/2e4943b) Bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0 (#286)
26+
- [65b1d0f](https://github.com/oxidecomputer/oxide.go/commit/65b1d0f) Update to omicron 5cfd735 (#284)
27+
- [719d3ae](https://github.com/oxidecomputer/oxide.go/commit/719d3ae) Handle nullable arrays (#283)
28+
- [a79eb2c](https://github.com/oxidecomputer/oxide.go/commit/a79eb2c) Bump version to v0.5.0 (#281)
29+
130
# v0.4.0 (2025/Apr/15)
231

332
Generated from Oxide API version [20250409.0.0](https://github.com/oxidecomputer/omicron/blob/rel/v14/rc1/openapi/nexus.json)

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ help:
8484
# This way linting tools don't need to be downloaded/installed every time you
8585
# want to run the linters or generate the SDK.
8686
VERSION_DIR:=$(GOBIN)/versions
87-
VERSION_GOIMPORTS:=v0.26.0
88-
VERSION_GOLANGCILINT:=v1.61.0
89-
VERSION_STATICCHECK:=2024.1.1
90-
VERSION_WHATSIT:=1f5eb3ea
87+
VERSION_GOIMPORTS:=v0.33.0
88+
VERSION_GOLANGCILINT:=v1.64.8
89+
VERSION_STATICCHECK:=2025.1.1
90+
VERSION_WHATSIT:=053446d
9191

9292
tools: $(GOBIN)/golangci-lint $(GOBIN)/goimports $(GOBIN)/staticcheck
9393

@@ -104,23 +104,23 @@ $(VERSION_DIR)/.version-golangci-lint-$(VERSION_GOLANGCILINT): | $(VERSION_DIR)
104104
@ echo $(VERSION_GOLANGCILINT) > $(VERSION_DIR)/.version-golangci-lint-$(VERSION_GOLANGCILINT)
105105

106106
$(GOBIN)/golangci-lint: $(VERSION_DIR)/.version-golangci-lint-$(VERSION_GOLANGCILINT) | $(GOBIN)
107-
@ echo "-> Installing golangci-lint..."
107+
@ echo "-> Installing golangci-lint $(VERSION_GOLANGCILINT)..."
108108
@ curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(GOBIN) $(VERSION_GOLANGCILINT)
109109

110110
$(VERSION_DIR)/.version-goimports-$(VERSION_GOIMPORTS): | $(VERSION_DIR)
111111
@ rm -f $(VERSION_DIR)/.version-goimports-*
112112
@ echo $(VERSION_GOIMPORTS) > $(VERSION_DIR)/.version-goimports-$(VERSION_GOIMPORTS)
113113

114114
$(GOBIN)/goimports: $(VERSION_DIR)/.version-goimports-$(VERSION_GOIMPORTS) | $(GOBIN)
115-
@ echo "-> Installing goimports..."
115+
@ echo "-> Installing goimports $(VERSION_GOIMPORTS)..."
116116
@ go install golang.org/x/tools/cmd/goimports@$(VERSION_GOIMPORTS)
117117

118118
$(VERSION_DIR)/.version-staticcheck-$(VERSION_STATICCHECK): | $(VERSION_DIR)
119119
@ rm -f $(VERSION_DIR)/.version-staticcheck-*
120120
@ echo $(VERSION_STATICCHECK) > $(VERSION_DIR)/.version-staticcheck-$(VERSION_STATICCHECK)
121121

122122
$(GOBIN)/staticcheck: $(VERSION_DIR)/.version-staticcheck-$(VERSION_STATICCHECK) | $(GOBIN)
123-
@ echo "-> Installing staticcheck..."
123+
@ echo "-> Installing staticcheck $(VERSION_STATICCHECK)..."
124124
@ go install honnef.co/go/tools/cmd/staticcheck@$(VERSION_STATICCHECK)
125125

126126
$(VERSION_DIR)/.version-whatsit-$(VERSION_WHATSIT): | $(VERSION_DIR)
@@ -129,5 +129,5 @@ $(VERSION_DIR)/.version-whatsit-$(VERSION_WHATSIT): | $(VERSION_DIR)
129129

130130
# TODO: actually release a version of whatsit to use the tag flag
131131
$(GOBIN)/whatsit: $(VERSION_DIR)/.version-whatsit-$(VERSION_WHATSIT) | $(GOBIN)
132-
@ echo "-> Installing whatsit..."
132+
@ echo "-> Installing whatsit $(VERSION_WHATSIT)..."
133133
@ cargo install --git ssh://git@github.com/oxidecomputer/whatsit.git --rev $(VERSION_WHATSIT) --branch main --root ./

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.5.0
1+
v0.6.0

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/oxidecomputer/oxide.go
22

3-
go 1.22.5
3+
go 1.24.3
44

55
require (
6-
github.com/getkin/kin-openapi v0.131.0
6+
github.com/getkin/kin-openapi v0.132.0
77
github.com/iancoleman/strcase v0.3.0
88
github.com/pelletier/go-toml v1.9.5
99
github.com/stretchr/testify v1.10.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/getkin/kin-openapi v0.131.0 h1:NO2UeHnFKRYhZ8wg6Nyh5Cq7dHk4suQQr72a4pMrDxE=
4-
github.com/getkin/kin-openapi v0.131.0/go.mod h1:3OlG51PCYNsPByuiMB0t4fjnNlIDnaEDsjiKUV8nL58=
3+
github.com/getkin/kin-openapi v0.132.0 h1:3ISeLMsQzcb5v26yeJrBcdTCEQTag36ZjaGk7MIRUwk=
4+
github.com/getkin/kin-openapi v0.132.0/go.mod h1:3OlG51PCYNsPByuiMB0t4fjnNlIDnaEDsjiKUV8nL58=
55
github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ=
66
github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY=
77
github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE=

0 commit comments

Comments
 (0)