Vulcan icon indicating copy to clipboard operation
Vulcan copied to clipboard

arrayItem Property doesn't work for subschemas

Open GraemeFulton opened this issue 4 years ago • 2 comments

In the 1.15 update, the arrayItem property is introduced so we can get rid of the foo.$ field. I found this doesn't work for subschemas. I get the following error for a subschema defining an urlCollection arrayItem:

Error: "urlCollection" is Array type but the schema does not include a "urlCollection.$" definition for the array items"

It looks like it doesn't see the arrayItems field. I made the update as outlined in the blog:

Screenshot 2020-08-29 at 12 46 44

It does however work fine for my root schema, but in the nested schemas, I have to continue using the old foo.$ method.

GraemeFulton avatar Aug 29 '20 11:08 GraemeFulton

Thanks for pointing that out. Will add it whenever we have a chance to rework on schema nesting.

eric-burel avatar Aug 31 '20 06:08 eric-burel

Thanks for pointing that out. Will add it whenever we have a chance to rework on schema nesting.

Yeah probably not essential at the moment, since the old way still works

GraemeFulton avatar Aug 31 '20 12:08 GraemeFulton