hack-json-schema
hack-json-schema copied to clipboard
Fix issue with `anyOf` containing a single value
If anyOf
references a single schema, there is an error when using unique references here: https://github.com/slackhq/hack-json-schema/blob/7d946d35e9a782bf1af8bf450b35efdece6ab514/src/Codegen/Constraints/UntypedBuilder.php#L358. We require the schema to be built before accessing the type.