Errror when trying to initialize a form with complex input naming (for JSON output). "Cannot read property 'primary.job.title.name' of undefined"

======== TEMPLATE BUG FORM ========

Wappler Version : 3.3.5
Operating System : Mac
NODEJS MySql8 Project.

Expected behavior

I have a form with inputs named as per this document: https://www.w3.org/TR/html-json-forms/ - e.g. query[bool][must][match_phrase][primary.job.title.name][query]

I expect the form to submit.

Actual behavior

What actually happens?

I receive the following error within dev tools. I have tried all variations of declaring the input type in the $_POST Schema, i’ve tried changing from objects, to arrays (where appropriate) - but nothing gets me past this error.

{status: "500", message: "Cannot read property 'primary.job.title.name' of undefined",…}
message: "Cannot read property 'primary.job.title.name' of undefined"
stack: "TypeError: Cannot read property 'primary.job.title.name' of undefined↵    at Object.validateFields (/opt/node_app/lib/validator/index.js:48:31)↵    at Object.validateFields (/opt/node_app/lib/validator/index.js:60:28)↵    at Object.validateFields (/opt/node_app/lib/validator/index.js:60:28)↵    at Object.validateFields (/opt/node_app/lib/validator/index.js:60:28)↵    at Object.validateFields (/opt/node_app/lib/validator/index.js:60:28)↵    at Object.init (/opt/node_app/lib/validator/index.js:11:24)↵    at runMicrotasks (<anonymous>)↵    at processTicksAndRejections (internal/process/task_queues.js:97:5)↵    at async App.define (/opt/node_app/lib/core/app.js:185:13)"
status: "500"
Community Page
Last updated: