Skip to content

1.5.1

Choose a tag to compare

@1amageek 1amageek released this 19 Feb 02:28
· 27 commits to main since this release

What's Changed

Bug Fix

  • @generable macro now generates CodingKeys to exclude the internal _rawGeneratedContent property from Codable encoding/decoding
  • @generable macro now generates a memberwise initializer to replace the compiler-synthesized one suppressed by the macro-generated init(_ generatedContent:)
  • Default values and optional properties are correctly reflected in the generated memberwise init

Tests

  • Added GenerableCodableTests covering round-trip encoding/decoding, nested types, optionals, arrays, custom CodingKeys, and default values