Ethan Pippin

Results 219 comments of Ethan Pippin
trafficstars

This is not a proper use case of `StateObject` or, frankly, dependency injection and not a Stinsen issue. https://www.avanderlee.com/swiftui/stateobject-observedobject-differences/

Can you give examples of expected output given a sample schema?

I would recommend adding a simple example to your description to know what the problem is. This will most likely require a test case in `GenerateOptionsTest` with the sanitisation enabled...

This does not seem like a proper use case of Stinsen.

There is only the naming template, which is only additive. This seems like a good feature request. https://github.com/CreateAPI/CreateAPI/blob/main/Docs/ConfigOptions.md#entitiesnametemplate

~~Could the issue be that the fields aren't marked as `nullable` in the schema?~~ Apologies, I misunderstood the error at first.

It does look like `AnyJSON` does not support `nil/null` decoding, just by looking at the `AnyJSON` implementation and by a basic test: ```swift let encoder = JSONEncoder() let json: [String:...

It _is_ a basic fix to account for `null` in the encoding/decoding, however I don't really like it and would recommend the `GenericJSON` switch. New AnyJSON ```swift public enum AnyJSON:...

Changing the font would not fix that issue, as found in https://github.com/jellyfin/Swiftfin/issues/497 and https://code.videolan.org/videolan/VLCKit/-/issues/635.