Skip to content

toJSON() with validatePropertyValues: true treats choices whose value is an object as invalid #10773

@andrewtelnov

Description

@andrewtelnov

toJSON function doesn't process correctly property values that has choices attribute where value is object. It added an error where there is no errors.
Here is the example:

Serializer.addProperty("survey", { 
name: "prop1", choices: [ 
   { value: { point: 1, color: "red"} }, 
   { value: { point: 1, color: "blue"} }, 
   { value: { point: 2, color: "green"} }, 
]});

Metadata

Metadata

Assignees

Labels

buguser issueAn issue or bug reported by users

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions