Skip to content

Commit

Permalink
All enums conform to CodingKeyRepresentable
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 4, 2023
1 parent b2574a0 commit a8e59b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SotoCodeGeneratorLib/Templates/enum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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}}
Expand Down

0 comments on commit a8e59b6

Please sign in to comment.