-
Hey fireproofsocks, I just ran into an issue with DTO when using PHP 7.2 and the `JsonDecoder` class:
`ERROR: Function create_function() is deprecated`
The error stems from this method in `JsonDec…
-
I just decided to use JsonDecoder to transform Json to model. I don't know how to handle the mismatch type. found this extension but don't know how to use.
Expecting response.
-
Is this because Decodable wasn't available before?
I'd like swifter to produce a Data instance which I can use JSONDecoder with. Anyone wanna collaborate on this?
not sure how to decode this JSON …
lk251 updated
3 years ago
-
For better handling of a stream message of an HTTP request/response, we can provide some built-in decoders for well-known formats such as:
- JSON
- Server sent event
- [Avro](https://avro.apache.or…
-
After having executed the following :
`sp = SellPass(
api_key = api_key,
debug = True,
shop_id = None
)`
Resulting in a successfull instanciation and a Resonse 200, i try to…
-
| | |
|------------------|-----------------|
|Previous ID | SR-11780 |
|Radar | rdar://problem/57176800 |
|Original Repo…
-
When running this command `quicktype ESLModels.ts -o CodeGenOutput.swift`, I want the outputted file to contain public access modifiers. The output is technically correct, but if a project uses multip…
-
```
let data = """
{"a": "1"}
""".data(using: .utf8)!
struct A: Decodable {
@DefaultFalse var a: Bool
}
let m = try JSONDecoder.init().decode(A.self, from: data)
print(m.a) …
-
Hi, I want to create generic/dynamic structure and convert AnyCodable to -> Login/Register/X Response Model.
I easily convert Model to AnyCodable like this -> AnyCodable( LoginResponseModel(paramet…
-
Maybe I am misunderstanding something. There are 2 classes in utils.py: `TetraJSONEncoder` and `TetraJSONDecoder`. In theory, the purpose is clear, and I already extended both to handle models:
```…