discourse/app/assets/javascripts/admin/addon/components/schema-theme-setting/field-input-description.gjs
Alan Guo Xiang Tan 8de869630f
DEV: Add validation message to string fields in theme object editor (#26257)
Why this change?

In our schema, we support the `min_length` and `max_length` validation
rules like so:

```
some_objects_setting
  type: objects
  schema:
    name: some_object
    properties:
      title:
        type: string
        validations:
          min_length: 1
          max_length: 10
```

While the validations used to validate the objects on the server side,
we should also add client side validation for better UX.
2024-03-21 12:39:25 +08:00

6 lines
101 B
Plaintext

<template>
<div class="schema-field__input-description">
{{@description}}
</div>
</template>