-
Notifications
You must be signed in to change notification settings - Fork 49
Make the ISO8601 date transcoder configurable #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the ISO8601 date transcoder configurable #94
Conversation
@czechboy0 how to actually use new transcoder in projects? |
You specify the date transcoder when creating your client by providing it as a parameter to the Configuration initializer: https://swiftpackageindex.com/apple/swift-openapi-runtime/1.3.0/documentation/openapiruntime/configuration/init(datetranscoder:multipartboundarygenerator:) The default is |
@simonjbeaumont thank you! |
Motivation
Fixes apple/swift-openapi-generator#389.
Modifications
Add a way to configure the existing
ISO8601DateTranscoder
.Result
Adopters can more easily use e.g. fractional seconds-based transcoder.
Test Plan
Added unit tests.