mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
add minlength for name, description
This commit is contained in:
parent
c6079f610d
commit
34e5fe4b2b
@ -10,12 +10,6 @@ function getMinMax(valueField: string, field: ShaclSchemaField) {
|
|||||||
// TODO: remove once all fields in schema has minLength property
|
// TODO: remove once all fields in schema has minLength property
|
||||||
if (!min) {
|
if (!min) {
|
||||||
switch (valueField) {
|
switch (valueField) {
|
||||||
case 'name':
|
|
||||||
min = 4
|
|
||||||
break
|
|
||||||
case 'description':
|
|
||||||
min = 10
|
|
||||||
break
|
|
||||||
case 'author':
|
case 'author':
|
||||||
min = 1
|
min = 1
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user