mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
The LSP spec requires us to omit keys for nil values rather than using the JSON `null` constant in most places. This change to CustomCodable allows us to do it automatically using CustomCodable, removing one of the limitations of the property wrapper. The idea for the adding overloads of `encode` and `decode` came from https://forums.swift.org/t/pre-pitch-codable-customization-using-propertywrappers/30244/
3.9 KiB
3.9 KiB