# Issue with app settings schema

**URL:** <https://community.dynatrace.com/t/issue-with-app-settings-schema/48948>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app, platform-services\
**Created:** [November 19, 2024, 8:47am UTC](https://community.dynatrace.com/t/issue-with-app-settings-schema/48948 "2024-11-19T08:47:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [November 19, 2024, 8:47am UTC](https://community.dynatrace.com/t/issue-with-app-settings-schema/48948/1 "2024-11-19T08:47:05Z")

</div>

Hi everyone!I’m encountering an issue with the appsettings schema (described [here](https://developer.dynatrace.com/develop/data/store-app-settings/)).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](https://global.discourse-cdn.com/dynatrace/original/2X/b/ba801cd11ed87772ffede002e422c0c8ce5cf4c1.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](https://global.discourse-cdn.com/dynatrace/original/3X/7/4/741606aa95bfc260392a75560e98d67676eed454.png)  
Is this a known issue, or am I missing something in the configuration? Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 19, 2024, 1:45pm UTC](https://community.dynatrace.com/t/issue-with-app-settings-schema/48948/2 "2024-11-19T13:45:31Z")

</div>

Hello&nbsp;[@jegron](https://community.dynatrace.com/user/47129)

PFA for review:

- [Store app settings | Dynatrace Developer](https://developer.dynatrace.com/develop/data/store-app-settings/)

Hoping it helps.

Regards,

Peter

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [November 20, 2024, 10:40am UTC](https://community.dynatrace.com/t/issue-with-app-settings-schema/48948/3 "2024-11-20T10:40:35Z")

</div>

Hi&nbsp;[@Peter\_Youssef](https://community.dynatrace.com/user/51369)&nbsp;!

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

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [November 21, 2024, 3:58pm UTC](https://community.dynatrace.com/t/issue-with-app-settings-schema/48948/4 "2024-11-21T15:58:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [November 23, 2024, 7:08pm UTC](https://community.dynatrace.com/t/issue-with-app-settings-schema/48948/5 "2024-11-23T19:08:18Z")

</div>

Thanks&nbsp;[@haris](https://community.dynatrace.com/user/57428)&nbsp;!&nbsp;:dynaspin:
