Canonical enum field value verification

Hi,

I have an enum field defined as such in a canonical type definition:

type MyCanonical mixes Canonical<MyCanonical> {

    MyField: string enum ('First', 'Second')
}

When I import a file via the import API for this canonical, even though some rows have value not included in the enum definition they are processed without error. How does one enforce the fact that MyField should only contains the values defined in the enum?

@quentin.chouleur which version of server is this, is your target type have the same enum. in 7.8 we only did validation after transformation, in 7.9 we do validation before and after transformation.
If it doesn’t we can investigate.

1 Like

Server is indeed in 7.8. The target type was lacking the enum type for the field, I added it now, thanks for your answer.