In situations where an enum is "open" (such as here), would it be possible to update the generator to output the union of the enum and the value type it is based on?
I'm assuming (but have not checked! 😅) that this will prevent the converter we get from lsprotocol from rejecting values it does not recognise, but are permitted by the spec.
Additional context: openlawlibrary/pygls#438