Skip to content

Custom required property is not validated #10811

@danlevison

Description

@danlevison

Can you help me understand why adding a required property to the 'survey' class does not get picked up by the jsonErrors array when it is missing.

See demo - https://codesandbox.io/p/devbox/recursing-danilo-v66p9l?workspaceId=ws_UBrjJL1E93iKDqX3Nj8Spq

I've added a property 'version' to the 'survey' class and set 'isRequired': true. However, when I load json with the 'version' property missing, it does not get picked up by the survey.fromJSON(json, { validatePropertyValues: true });

Originally posted by @danlevison in #10741 (comment)

Metadata

Metadata

Assignees

Labels

buguser issueAn issue or bug reported by users

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions