Skip to content

Commit

Permalink
fix: remove schema.ISO.Deprecated field
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jan 9, 2024
1 parent 8aba76a commit 7bad12d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 36 deletions.
13 changes: 5 additions & 8 deletions hcloud/schema/iso.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package schema

import "time"

// ISO defines the schema of an ISO image.
type ISO struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Architecture *string `json:"architecture"`
Deprecated *time.Time `json:"deprecated"`
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Architecture *string `json:"architecture"`
DeprecatableResource
}

Expand Down
6 changes: 0 additions & 6 deletions hcloud/schema_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ type converter interface {

SchemaFromISO(*ISO) schema.ISO

// We cannot use goverter settings when mapping a struct to a struct pointer
// See [converter.SchemaFromISO]
// See https://github.com/jmattheis/goverter/issues/114
// goverter:map DeprecatableResource.Deprecation.UnavailableAfter Deprecated
intSchemaFromISO(ISO) schema.ISO

LocationFromSchema(schema.Location) *Location

SchemaFromLocation(*Location) schema.Location
Expand Down
47 changes: 25 additions & 22 deletions hcloud/zz_schema.go

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

0 comments on commit 7bad12d

Please sign in to comment.