Releases: openconfig/ygot
Releases · openconfig/ygot
v0.24.1
What's Changed
- Use [email protected]. by @wenovus in #718
- Add Go generation flag
ignore_unsupportedby @wenovus in #712
Full Changelog: v0.24.0...v0.24.1
v0.24.0
v0.23.1
v0.23.0
This release contains a major refactoring of existing code generation functions and types that has many backwards-incompatible changes for the ygen package in anticipation of a v1 release later this year. Generated code is not affected since the previous release apart from a bug fix to proto generation.
Backwards-Incompatible Changes (ygen)
- Merge
MappedType'sUnionTypeInfointoUnionTypes. by @wenovus in #684 - Split Go generation into
gogenpackage. by @wenovus in #695 - Split Proto generation into
protogenpackage. #696 - Delete
StoreRawSchemafromGeneratorConfigsince it's not being used #705 - Reorganize Code Generation flags and Delete
ygen.GeneratorConfig#706 - Delete
YANGCodeGenerator.GetDirectoriesAndLeafTypes#694 - Several changes to the IR definition.
What's Changed
- Remove expectation that nil maps and slices (YANG lists) are initialized by
BuildEmptyTreeby @wenovus in #702 - Codify that nil map marshals to null in JSON by @wenovus in #701
- Update generated (u)?exampleoc and dependent tests. by @robshakir in #704
- Make
EnumeratedYANGType.IdentityBaseNameexported. by @wenovus in #688
Full Changelog: v0.22.1...v0.23.0
v0.22.1
Backwards-Incompatible Changes
trim_path_package_oc_prefixis changed totrim_path_package_prefixfor PathStruct generation
What's Changed
- allow an arbitrary prefix to be trimmed from package names by @greg-dennis in #682
- Fix MergeEmptyMap for MergeStructs and add schema_test by @wenovus in #686
- Change
-trim_package_prefixto-trim_path_package_prefixby @wenovus in #687
Full Changelog: v0.21.0...v0.22.1
v0.21.0
Backwards-Incompatible Changes
- Delete enum flags for
proto_generatorby @wenovus in #667-typedef_enum_with_defmodand-consistent_union_enum_nameshave been deleted and are now true by default.
What's Changed
- Add MergeOpt
MergeEmptyMapsto allow an empty map to be merged. by @wenovus in #685 GenerateProto3uses IR for Code Generation.- NOTE: Some of the new ygen types (e.g.
ProtoLangMapper) will be moved to a new package in the near future. - Rename
protoGenStatetoProtoLangMapperby @wenovus in #668 - Change
IR.Enumsmap's key to be a unique key instead of the enum's name. by @wenovus in #669 - Add
MappedType.UnionTypeInfosby @wenovus in #670 - Full
ProtoLangMapperSupport forGenerateIRand add proto IR tests ingenir_test.goby @wenovus in #671
- NOTE: Some of the new ygen types (e.g.
Full Changelog: v0.20.2...v0.21.0
v0.20.2
v0.20.1
v0.20.0
TLDR
ytypes.UnmarshalFuncandytypes.MergeStructsnow take inygot.GoStructinstead 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.ValidatedGoStructto pre-v0.18.0 by @wenovus in #664
NOTE: This change is backwards-incompatible because of the following:
- it reverts the definition of
ygot.ValidatedGoStructthat was changed in v0.18.0. It further reverts the remaining backwards-incompatible changes made in v0.18.1 and v0.17.0. ytypes.UnmarshalFuncandytypes.MergeStructsnow take inygot.GoStructinstead 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
GenerateGoCodeto 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
ResolvedPathtoLeafrefTargetPathby @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.SetNodeby @wenovus in #662
Full Changelog: v0.18.1...v0.19.0