cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with app settings schema

jegron
DynaMight Champion
DynaMight Champion
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.
jegron_0-1732005676706.png

 

 

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

 

 
Is this a known issue, or am I missing something in the configuration? Any help would be appreciated!
Observability Engineer at Phenisys - Dynatrace Professional
4 REPLIES 4

Peter_Youssef
Champion

Hello @jegron 

PFA for review:

Hoping it helps.

Regards,

Peter

jegron
DynaMight Champion
DynaMight Champion

Hi @Peter_Youssef !

We already check the documentation and our issue is not documented 😞

Observability Engineer at Phenisys - Dynatrace Professional

haris
Dynatrace Helper
Dynatrace Helper

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.

jegron
DynaMight Champion
DynaMight Champion

Thanks @haris ! :dynaspin:

Observability Engineer at Phenisys - Dynatrace Professional

Featured Posts