diff --git a/src/api/article/content-types/article/schema.json b/src/api/article/content-types/article/schema.json index d8fd4e2..b32fc44 100644 --- a/src/api/article/content-types/article/schema.json +++ b/src/api/article/content-types/article/schema.json @@ -52,7 +52,9 @@ "type": "string" }, "chapeau": { - "type": "text" + "type": "text", + "maxLength": 200, + "required": true } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 2bcb495..fb83323 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -388,7 +388,11 @@ export interface ApiArticleArticle extends Schema.CollectionType { } >; date: Attribute.String; - chapeau: Attribute.Text; + chapeau: Attribute.Text & + Attribute.Required & + Attribute.SetMinMaxLength<{ + maxLength: 200; + }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;