Skip to content

ArraySchemas cannot be set from within a constructor #157

Open
@Billnotic

Description

@Billnotic

ArraySchemas cannot be set to other ArraySchema objects from within a constructor.

Eg.

var arraySchemaToSet = new ArraySchema<test>();
//code adding stuff to arraySchemaToSet
sampleTestSchema = new testSchema({
    sampleArraySchema: arraySchemaToSet
});

sampleTestSchema.sampleArraySchema would be empty, instead of being equal to arraySchemaToSet.
This appears to be a bug, setting the ArraySchema outside a constructor appears to work fine.

Eg.

var arraySchemaToSet = new ArraySchema<test>();
//code adding stuff to arraySchemaToSet
sampleTestSchema = new testSchema({
});
sampleTestSchema.sampleArraySchema = arraySchemaToSet;

sampleTestSchema.sampleArraySchema is correctly set to arraySchemaToSet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions