Add maxLength to 200 for chapeau

This commit is contained in:
2024-03-21 07:05:43 +01:00
parent a0c7381c94
commit c5af97b9a4
2 changed files with 8 additions and 2 deletions
@@ -52,7 +52,9 @@
"type": "string" "type": "string"
}, },
"chapeau": { "chapeau": {
"type": "text" "type": "text",
"maxLength": 200,
"required": true
} }
} }
} }
+5 -1
View File
@@ -388,7 +388,11 @@ export interface ApiArticleArticle extends Schema.CollectionType {
} }
>; >;
date: Attribute.String; date: Attribute.String;
chapeau: Attribute.Text; chapeau: Attribute.Text &
Attribute.Required &
Attribute.SetMinMaxLength<{
maxLength: 200;
}>;
createdAt: Attribute.DateTime; createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime; updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;