-
json_codable currently check if there is a constructor with fromJson, no check is made for a static method.
# use case
In order to support override of a serialization method used for enums. This…
-
TODO
Look for all differences with codable and list them.
## Codable
- 1 parsing fails all fails
- Fine grained error handling
- Need 1 custom parsing need to write all encodable method
- De…
s4cha updated
2 months ago
-
Hi,
Native swift types like `Array` only conform to `Codable` when their elements are `Codable`.
It looks like `Graph` doesn't have any special need for being `Codable`.
Would it be possible to …
-
`DefinitionBuilder.typeDeclarationOf` returns different results when running in test mode for enums
# Repro
https://github.com/cedvdb/sdk/tree/enum_macro_diagnostic
In this repo I modified th…
-
Currently json_codable assumes that a Map is passed to the fromJson constructor when that constructor is defined by the user.
This is not supported:
```dart
@JsonCodable()
class A {
fina…
-
# 使用 Property Wrapper 为 Codable 解码设定默认值 | OneV's Den
本文介绍了一个使用 Swift Codable 解码时难以设置默认值问题,并利用 Property Wrapper 给出了一种相对优雅的解决方式,来在 key 不存在时或者解码失败时,为某个属性设置默认值。这为编解码系统提供了更好的稳定性和可扩展性。最后,对 enum 类型在某些情况下是否
…
-
Why members of CategoryMealItem, MealModel are nullable?
It seems that api send not nullable
Why var?
It's better to use immutable structures with members as "let" constants.
-
### Mapbox Navigation SDK version
3+
### Steps to reproduce
In navigation map SDK 2+ it was possible to [show](https://docs.mapbox.com/ios/navigation/api/2.18.0/Classes/NavigationMapView.html…
-
发生这个错误是为啥啊?之前好好的,升级Xcode16.0之后也好好的,后来clean了一下项目,还执行了pod install,然后就无法编译通过了,报错:External macro implementation type 'CodableWrapperMacros.Codable' could not be found for macro 'Codable(wiseInit:)'; No su…
-
I have many structs and enums that need to be `Codable`, among others. Right now, what I do is I have mirror types named `FFI*` and funcs for conversion:
```swift
// shared.swift
// Note that w…