Issue with app settings schema

Hi everyone!I’m encountering an issue with the appsettings schema (described here).In my configuration, I’ve declared a text variable and set minLength to 0 to allow the field to be null, empty, or equal to “”. I also add nullable: true without success.


However, when testing, the error message indicates that the minLength is still enforced as 1, which seems to be an inherited or default constraint :

Is this a known issue, or am I missing something in the configuration? Any help would be appreciated!

Hello @jegron

PFA for review:

Hoping it helps.

Regards,

Peter

Hi @Peter_Youssef !

We already check the documentation and our issue is not documented :disappointed_face:

Hi jegron,

you should try to set “nullable” to “false” (and provide “default” value in this case). Then “minLength” of “0” should be considered by the framework. The thing is that for “nullable” fields minimum “minLength” is always “1”, meaning in your case where it’s true it will create an error.

Let me know if that helps.

Thanks @haris ! :dynaspin: