Validation for enum and regex fields

Hi guys,
I’ve noticed that the string fields with regex and enum fields aren’t properly validated when filled from an API request. For example, a enum field X has the options: [‘A’, ‘B’, ‘C’]. In an API request I can create an entry setting ‘D’ or anything else in the field X, when it’s supposed to accept only the [‘A’, ‘B’, ‘C’] values. The same happens in string fields with regex. Is it the expected behavior? In my project I’m using a layer to ensure the inputs validation using Joi