hack-json-schema icon indicating copy to clipboard operation
hack-json-schema copied to clipboard

Fix issue with `anyOf` containing a single value

Open mwildehahn opened this issue 4 years ago • 0 comments

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.

mwildehahn avatar Oct 20 '20 03:10 mwildehahn