mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-18 02:46:53 +08:00
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.
5 lines
101 B
Text
5 lines
101 B
Text
<template>
|
|
<div class="schema-field__input-description">
|
|
{{@description}}
|
|
</div>
|
|
</template>
|