Skip to content

Releases: alimadhoun/AutoCodingKeys

Version 0.1

08 Nov 19:50
dd4ec16
Compare
Choose a tag to compare

Release: AutoCodingKeysMacro v1.0.0

Overview
The AutoCodingKeysMacro is a Swift package that simplifies CodingKeys enum generation for Codable structs. With this macro, you can automatically convert property names from camelCase to snake_case or other specified formats, and even set custom JSON keys for specific properties as needed. This makes JSON serialization/deserialization cleaner and more efficient for Swift developers.

Features

  • Automatic CodingKeys Generation: Automatically generates a CodingKeys enum for any Codable struct, mapping each property name to a specified case style.
  • Customizable Key Format: Supports key format customization, allowing you to specify whether JSON keys should be in snake_case or camelCase.
  • Custom Key Mappings: Provides a convenient way to specify custom JSON keys for individual properties, ideal for handling cases where JSON keys do not match Swift property names (e.g., reserved keywords).

For more information on installation and usage, see the README file

Full Changelog: https://github.com/alimadhoun/AutoCodingKeys/commits/v0.1