File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/swift6
samples/client/petstore/swift6
alamofireLibrary/Sources/PetstoreClient/Infrastructure
apiNonStaticMethod/Sources/PetstoreClient/Infrastructure
asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure
combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
combineLibrary/Sources/CombineLibrary/Infrastructure
default/Sources/PetstoreClient/Infrastructure
objcCompatible/Sources/PetstoreClient/Infrastructure
oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure
promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
urlsessionLibrary/Sources/PetstoreClient/Infrastructure
validation/PetstoreClient/Classes/OpenAPIs/Infrastructure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ import Foundation
3030
3131 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var dateFormatter: DateFormatter {
3232 get { _state.withValue { $0.customDateFormatter ?? $0.defaultDateFormatter } }
33- set { _state.withValue { $0.customDateFormatter = newValue } }
33+ set {
34+ _state.withValue { state in
35+ state.customDateFormatter = newValue
36+ state.defaultJSONDecoder = nil
37+ state.defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var jsonDecoder: JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ open class CodableHelper: @unchecked Sendable {
3030
3131 public var dateFormatter : DateFormatter {
3232 get { _state. withValue { $0. customDateFormatter ?? $0. defaultDateFormatter } }
33- set { _state. withValue { $0. customDateFormatter = newValue } }
33+ set {
34+ _state. withValue { state in
35+ state. customDateFormatter = newValue
36+ state. defaultJSONDecoder = nil
37+ state. defaultJSONEncoder = nil
38+ }
39+ }
3440 }
3541
3642 public var jsonDecoder : JSONDecoder {
You can’t perform that action at this time.
0 commit comments