-
-
Notifications
You must be signed in to change notification settings - Fork 613
Open
Labels
enhancementNew feature or requestNew feature or requestopenapi-fetchRelevant to the openapi-fetch libraryRelevant to the openapi-fetch library
Description
Description
Hello there, I am using the Temporal API quite a bit and would like to be able to parse dates from my API straight to those types in JS/TS.
I have implemented a transform so the date types from my API gets the correct Temporal types, but the actual string values cannot be parsed straight from JSON, they have to go through a reviver like in this example Temporal.Instant - JSON serialization and parsing.
I would like to be able to provide such a reviver for the openapi-fetch Client, or perhaps on a per path basis.
Proposal
main...danbluhmhansen:openapi-typescript:main
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestopenapi-fetchRelevant to the openapi-fetch libraryRelevant to the openapi-fetch library