# Y a-t-il un moyen de spécifier un min et un max pour settings.yml pour un plugin ?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-specify-a-min-and-max-for-settings-yml-for-a-plugin/259676>\
**Category:** Development\
**Created:** [Mars 28, 2023, 10:35 UTC](https://meta.discourse.org/t/is-there-a-way-to-specify-a-min-and-max-for-settings-yml-for-a-plugin/259676 "2023-03-28T10:35:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![bstgmr02](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bstgmr02](https://meta.discourse.org/u/bstgmr02)\
**Post date:** [Mars 30, 2023, 10:31 UTC](https://meta.discourse.org/t/is-there-a-way-to-specify-a-min-and-max-for-settings-yml-for-a-plugin/259676/8 "2023-03-30T10:31:04Z")

</div>

Après d’autres tests, il semble que cela ne fonctionne pas pour `type: float`, mais uniquement pour `type: integer`. Cependant, un utilisateur peut saisir librement n’importe quoi d’autre qu’un entier - ce qui nécessite un actualisation complète et entraîne la réinitialisation de la valeur à 0.

Cela semble être un bug/une erreur du côté de Discourse ? Cela affecte également le plugin Chat.

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-specify-a-min-and-max-for-settings-yml-for-a-plugin/259676)._
