Response property casting
See original GitHub issueHey, I updated from version 3.16.11 to the latest version 4.2.0. Before the update, the values in the response json were automatically casted to the defined property type.
// origin object
{
createdAt: '1602582518'
}
//object after response.json()
{
createdAt: 1602582518
}
In the openapi spec:
properties:
createdAt:
type: number
format: int64
nullable: true
This behavior is lost in the latest version. Is there an option to enable this property casting?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Typescript casting object's property - Stack Overflow
So my question is: Is there an easier way to cast the target property to <IDBOpenDBRequest> other then the a , b method...
Read more >How to safely cast by using pattern matching and the is and as ...
Learn to use pattern matching techniques to safely cast variables to a different type. You can use pattern matching as well as the...
Read more >Eloquent: Mutators & Casting - Laravel - The PHP Framework ...
Accessors, mutators, and attribute casting allow you to transform Eloquent attribute values when you retrieve or set them on model instances.
Read more >Optimization studies of stir casting parameters and ... - Nature
Three stir casting parameters of stirring temperature, speed, and time were varied and optimized using the central composite design technique ...
Read more >Type checks and casts - Kotlin
Smart casts val local variables - always, with the exception of local delegated properties. val properties - if the property is private or ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@MadMango sure thing. There is already precedence so it makes sense. please go ahead and get started on the feature. I’ll review once it’s ready. Thanks!
@cdimascio Oh hey, this works as expected. Many thanks. I want to work on the fileUploader thing in the next few days.