Skip to content

Commit

Permalink
update vary
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Sep 6, 2023
1 parent 89b9363 commit 48ee395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/xeipuuv/gojsonschema v1.2.0
github.com/ysmood/got v0.35.0
github.com/ysmood/vary v0.2.0
github.com/ysmood/vary v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ github.com/ysmood/gop v0.1.0 h1:BkW6hF0j/hZNyZv+FOPU7op1zuDqRa7x7GJyygb5uf4=
github.com/ysmood/gop v0.1.0/go.mod h1:rr5z2z27oGEbyB787hpEcx4ab8cCiPnKxn0SUHt6xzk=
github.com/ysmood/got v0.35.0 h1:AA9QDCcSuueB9H8OexNHj+VKU1iMDekyS9hWFAApwho=
github.com/ysmood/got v0.35.0/go.mod h1:R7naGpP/qR1i9b5xOCkQnfuEAUPq0TROuTffdxbJoIc=
github.com/ysmood/vary v0.2.0 h1:k4WClkNuee8Xd/cXk+tERoIVZThLCLF0dECxbhgM2Fw=
github.com/ysmood/vary v0.2.0/go.mod h1:X9WYOJwS8Hyeh7Qs08haaeelNru/UIOPUggUnRwxHmM=
github.com/ysmood/vary v0.3.0 h1:Lm0xFvy5Y2pFZqzx4pQI0lttfMRp3Ru2gGiwPVVdfHk=
github.com/ysmood/vary v0.3.0/go.mod h1:X9WYOJwS8Hyeh7Qs08haaeelNru/UIOPUggUnRwxHmM=
2 changes: 1 addition & 1 deletion schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (s Schemas) DefineT(t reflect.Type) *Schema { //nolint: cyclop,gocyclo
return &Schema{Ref: &r}
}

if iter := s.interfaces[vary.NewID(t)]; iter != nil {
if iter := s.interfaces[vary.ID(t)]; iter != nil {
return s.defineInstances(iter)
}

Expand Down

0 comments on commit 48ee395

Please sign in to comment.