Skip to content

Commit

Permalink
[swift5] rename unknownDefault to unknownDefaultOpenApi to match the …
Browse files Browse the repository at this point in the history
…enums unknown case (OpenAPITools#19753)
  • Loading branch information
4brunu authored Oct 2, 2024
1 parent f409bf1 commit 90bc100
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
case type{{.}}({{.}})
{{/oneOf}}
{{#oneOfUnknownDefaultCase}}
case unknownDefault
case unknownDefaultOpenApi
{{/oneOfUnknownDefaultCase}}

public func encode(to encoder: Encoder) throws {
Expand All @@ -14,7 +14,7 @@
try container.encode(value)
{{/oneOf}}
{{#oneOfUnknownDefaultCase}}
case unknownDefault(let type):
case unknownDefaultOpenApi(let type):
try container.encodeNil()
{{/oneOfUnknownDefaultCase}}
}
Expand All @@ -33,7 +33,7 @@
{{/oneOf}}
} else {
{{#oneOfUnknownDefaultCase}}
self = .unknownDefault
self = .unknownDefaultOpenApi
{{/oneOfUnknownDefaultCase}}
{{^oneOfUnknownDefaultCase}}
throw DecodingError.typeMismatch(Self.Type.self, .init(codingPath: decoder.codingPath, debugDescription: "Unable to decode instance of {{classname}}"))
Expand Down

0 comments on commit 90bc100

Please sign in to comment.