Skip to content

Commit

Permalink
Un-deprecate ygot.GoStruct, revert ygot.ValidatedGoStruct to pre-…
Browse files Browse the repository at this point in the history
…v0.18.1 (#664)

* Attempt to make ValidatedGoStruct backwards-compatible

* Un-deprecate `ygot.GoStruct`, revert `ygot.ValidatedGoStruct`

* fix some comments

* Fix staticcheck

* Improve comment
  • Loading branch information
wenovus authored May 9, 2022
1 parent a730317 commit 6f722a0
Show file tree
Hide file tree
Showing 32 changed files with 256,842 additions and 211,943 deletions.
2 changes: 1 addition & 1 deletion demo/device/devicedemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func CreateDemoDeviceInstance() (*oc.Device, error) {
if err != nil {
return nil, err
}
// Since ygot.MergeStructs returns an ygot.ValidatedGoStruct interface, we
// Since ygot.MergeStructs returns an ygot.GoStruct interface, we
// must type assert it back to *oc.Device.
return mergedDev.(*oc.Device), nil
}
Expand Down
109,540 changes: 60,346 additions & 49,194 deletions exampleoc/oc.go

Large diffs are not rendered by default.

Loading

0 comments on commit 6f722a0

Please sign in to comment.