From a8e59b673f48e23cf5af1d1eb9492d57ec0ed659 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 4 Dec 2023 16:27:27 +0000 Subject: [PATCH] All enums conform to CodingKeyRepresentable --- Sources/SotoCodeGeneratorLib/Templates/enum.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SotoCodeGeneratorLib/Templates/enum.swift b/Sources/SotoCodeGeneratorLib/Templates/enum.swift index ba8231d..c4906cc 100644 --- a/Sources/SotoCodeGeneratorLib/Templates/enum.swift +++ b/Sources/SotoCodeGeneratorLib/Templates/enum.swift @@ -16,7 +16,7 @@ extension Templates { static let enumTemplate = """ {{%CONTENT_TYPE:TEXT}} {{#isExtensible}} - {{scope}} struct {{name}}: RawRepresentable, Equatable, Codable, Sendable { + {{scope}} struct {{name}}: RawRepresentable, Equatable, Codable, Sendable, CodingKeyRepresentable { {{scope}} var rawValue: String {{scope}} init(rawValue: String) { @@ -32,7 +32,7 @@ extension Templates { } {{/isExtensible}} {{^isExtensible}} - {{scope}} enum {{name}}: String, CustomStringConvertible, Codable, Sendable { + {{scope}} enum {{name}}: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable { {{#values}} {{#documentation}} {{>comment}}