hack-json-schema
hack-json-schema copied to clipboard
Handle `null` being provided to `type` when we do an optimized `anyOf` check
We try and optimize anyOf
checks for types that all have a specific string field that acts like an enum. This optimized check isn't handling if that provided value is given as null
here: https://github.com/slackhq/hack-json-schema/blob/04b77eaf4740d7e51f672ff70820e1e27fec1307/src/Codegen/Constraints/UntypedBuilder.php#L433.