1
0
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:
EnzoVezzaro 2022-10-20 06:57:35 -04:00
parent c6079f610d
commit 34e5fe4b2b

View File

@ -10,12 +10,6 @@ function getMinMax(valueField: string, field: ShaclSchemaField) {
// TODO: remove once all fields in schema has minLength property
if (!min) {
switch (valueField) {
case 'name':
min = 4
break
case 'description':
min = 10
break
case 'author':
min = 1
break