Releases: openconfig/ygot
Releases · openconfig/ygot
v0.20.1
v0.20.0
TLDR
ytypes.UnmarshalFunc
andytypes.MergeStructs
now take inygot.GoStruct
instead ofygot.ValidatedGoStruct
. This may break existing code.- All backwards-incompatible changes (except a minor change #658) made since v0.17.0 are now reverted or made compatible once again.
What's Changed
- Un-deprecate
ygot.GoStruct
(pre-v0.17.0) and revert the definition ofygot.ValidatedGoStruct
to pre-v0.18.0 by @wenovus in #664
NOTE: This change is backwards-incompatible because of the following:
- it reverts the definition of
ygot.ValidatedGoStruct
that was changed in v0.18.0. It further reverts the remaining backwards-incompatible changes made in v0.18.1 and v0.17.0. ytypes.UnmarshalFunc
andytypes.MergeStructs
now take inygot.GoStruct
instead ofygot.ValidatedGoStruct
.
Full Changelog: v0.19.0...v0.20.0
v0.19.0
What's Changed
- Update IR to Support Go Generation by @wenovus in #650
- Convert
GenerateGoCode
to use IR for Code Generation. by @wenovus in #651 - workaround for map declaration limit (ΛEnumTypes) by @steiler in #641
- Add new Fields to IR to support path API generation by @wenovus in #655
- Rename
ResolvedPath
toLeafrefTargetPath
by @wenovus in #658 - Improve ΛBelongingModule() comment by @wenovus in #659
- Add a new JSON unmarshal option that prefers the shadow path values. by @wenovus in #661
- Allow JSON input for
ytypes.SetNode
by @wenovus in #662
Full Changelog: v0.18.1...v0.19.0
v0.18.1
Breaking Changes
- If you currently use the
Validate()
in theygot.ValidatedGoStruct
interface, you must change these calls toΛValidate()
.
What's Changed
- Add code to generate IR (not used). by @wenovus in #644
- Rename goGenState to GoLangMapper. by @wenovus in #646
- rename
Validate
toΛValidate
by @steiler in #643
New Contributors
Full Changelog: v0.18.0...v0.18.1
v0.18.0
What's Changed
- Presence Containers (JSON marshalling/unmarshalling support) by @hansthienpondt in #645
- Remove log that is always generated for annotation fields. by @robshakir in #652
- Create FindShadowSchemaPath by @DanG100 in #654
- Revert behaviour to not prepend non-root top-level fields in JSON rendering by @wenovus in #653
NOTE: This release reverts the default JSON rendering behaviour to v0.16.3 due to unclear RFC specification in discussion at #648.
Full Changelog: v0.17.0...v0.18.0
v0.17.0
What's Changed
- Don't prepend module name for in-namespace fields of a non-root-level GoStruct #638.
- Deprecate the
GoStruct
interface. It is now replaced by theValidatedGoStruct
interface. In spite of its name, this interface is intended to encompass all methods of all Go structs that are always generated regardless of what generation flag is used (ref).
Full Changelog: v0.16.3...v0.17.0
v0.16.3
v0.16.2
What's Changed
- Update
uexampleoc
'supdate.sh
generation flags by @wenovus in #633 - Add option for
RFC7951JSONConfig
to prepend module names only for identityrefs by @wenovus in #631- NOTE: This is a non-standard behaviour and should not be used for any implementation aiming to utilize standard RFC7951 behaviour.
- [cosmetic]: Change relevant instances of append -> prepend by @wenovus in #632
Full Changelog: v0.16.1...v0.16.2
v0.16.1
What's Changed
- Sanitise defVal for enumDefaultValue() by @hansthienpondt in #630
- Add Go Reference badge by @wenovus in #629
New Contributors
- @hansthienpondt made their first contribution in #630
Full Changelog: v0.16.0...v0.16.1
v0.16.0
What's Changed
- Specify latest release of staticcheck rather than HEAD. by @robshakir in #624
- Fix leaf-list validation when it is a relative path leafref by @wenovus and @hansthienpondt in #626
Note: There is a backwards-incompatible change in util.ForEachField
if you use NodeInfo.PathFromParent
, where compressed list (map/slice) elements no longer have a trimmed path.
Full Changelog: v0.15.1...v0.16.0