Skip to content

Releases: openconfig/ygot

v0.24.1

25 Jul 18:22
f9326f6

Choose a tag to compare

What's Changed

Full Changelog: v0.24.0...v0.24.1

v0.24.0

20 Jul 23:28
f50653f

Choose a tag to compare

Backwards-Incompatible Changes (util)

  • Rename util.SchemaTreeRoot -> util.TopLevelModule by @wenovus in #709

Other Changes

  • Update gnmi repo and support unmarshalling double_val by @wenovus in #714

Full Changelog: v0.23.1...v0.24.0

v0.23.1

16 Jun 20:52
ef62b64

Choose a tag to compare

What's Changed

  • Add ability split path structs into multiple files when splitting by modules by @DanG100 in #707

Full Changelog: v0.23.0...v0.23.1

v0.23.0

09 Jun 17:59
0793c34

Choose a tag to compare

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's UnionTypeInfo into UnionTypes. by @wenovus in #684
  • Split Go generation into gogen package. by @wenovus in #695
  • Split Proto generation into protogen package. #696
  • Delete StoreRawSchema from GeneratorConfig since 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 BuildEmptyTree by @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.IdentityBaseName exported. by @wenovus in #688

Full Changelog: v0.22.1...v0.23.0

  • For a full list of changes, see PRs #688 - #706 inclusive.

v0.22.1

27 May 19:02
9743b45

Choose a tag to compare

Backwards-Incompatible Changes

  • trim_path_package_oc_prefix is changed to trim_path_package_prefix for 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_prefix to -trim_path_package_prefix by @wenovus in #687

Full Changelog: v0.21.0...v0.22.1

v0.21.0

25 May 23:43
2b68a64

Choose a tag to compare

Backwards-Incompatible Changes

  • Delete enum flags for proto_generator by @wenovus in #667
    • -typedef_enum_with_defmod and -consistent_union_enum_names have been deleted and are now true by default.

What's Changed

  • Add MergeOpt MergeEmptyMaps to allow an empty map to be merged. by @wenovus in #685
  • GenerateProto3 uses 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 protoGenState to ProtoLangMapper by @wenovus in #668
    • Change IR.Enums map's key to be a unique key instead of the enum's name. by @wenovus in #669
    • Add MappedType.UnionTypeInfos by @wenovus in #670
    • Full ProtoLangMapper Support for GenerateIR and add proto IR tests in genir_test.go by @wenovus in #671

Full Changelog: v0.20.2...v0.21.0

v0.20.2

23 May 21:53
de28b19

Choose a tag to compare

What's Changed

  • Add ConfigFalse field to IR's ParsedDirectories. by @wenovus in #681
  • Add ShadowSchemaPath field to IR's YANGDetails. by @wenovus in #683

Full Changelog: v0.20.1...v0.20.2

v0.20.1

20 May 17:48
178606e

Choose a tag to compare

What's Changed

Full Changelog: v0.20.0...v0.20.1

v0.20.0

09 May 21:29
6f722a0

Choose a tag to compare

TLDR

  • ytypes.UnmarshalFunc and ytypes.MergeStructs now take in ygot.GoStruct instead of ygot.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

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 and ytypes.MergeStructs now take in ygot.GoStruct instead of ygot.ValidatedGoStruct.

Full Changelog: v0.19.0...v0.20.0

v0.19.0

05 May 22:53
a730317

Choose a tag to compare

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 to LeafrefTargetPath 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