Closed naegelejd closed 7 months ago
This is not great, but it has to do with fact that the YAML parser interprets "null"
and "string"
the same as null
and string
since they are in YAML nodes. The workaround is to write "'null'"
and "'string'"
like we do in the nullableIntFloatUnionString
computed field in unittests.yml.
Got it! I missed that existing example. Happy to close this one and refer to it in the future if necessary.
Using yardl v0.4.0, I expect to be able to use a computed field switch expression to produce a string value:
But yardl complains with: