From 558c104a8be0fa00e881ab8f93265237ddd6d8a1 Mon Sep 17 00:00:00 2001 From: Vukasin Paunovic Date: Tue, 17 Sep 2024 12:38:15 +0200 Subject: [PATCH] enabled comment to be maxlength of 2500 characters --- backend/public/api-docs/api.yaml | 10 +++++----- .../src/api/comment/content-types/comment/schema.json | 2 +- backend/types/generated/contentTypes.d.ts | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/public/api-docs/api.yaml b/backend/public/api-docs/api.yaml index 666b365..273bb23 100644 --- a/backend/public/api-docs/api.yaml +++ b/backend/public/api-docs/api.yaml @@ -172,7 +172,7 @@ components: type: string comment_text: type: string - maximum: 256 + maximum: 2500 CommentListResponseDataItem: type: object properties: @@ -666,19 +666,19 @@ components: type: string prop_name: type: string - maximum: 60 + maximum: 80 prop_rev_active: type: boolean default: false prop_abstract: type: string - maximum: 256 + maximum: 2500 prop_motivation: type: string - maximum: 256 + maximum: 12000 prop_rationale: type: string - maximum: 256 + maximum: 12000 prop_receiving_address: type: string maximum: 200 diff --git a/backend/src/api/comment/content-types/comment/schema.json b/backend/src/api/comment/content-types/comment/schema.json index a35be21..74e627a 100644 --- a/backend/src/api/comment/content-types/comment/schema.json +++ b/backend/src/api/comment/content-types/comment/schema.json @@ -23,7 +23,7 @@ }, "comment_text": { "type": "text", - "maxLength": 256 + "maxLength": 2500 } } } diff --git a/backend/types/generated/contentTypes.d.ts b/backend/types/generated/contentTypes.d.ts index c785bc4..c778698 100644 --- a/backend/types/generated/contentTypes.d.ts +++ b/backend/types/generated/contentTypes.d.ts @@ -847,7 +847,7 @@ export interface ApiCommentComment extends Schema.CollectionType { user_id: Attribute.String; comment_text: Attribute.Text & Attribute.SetMinMaxLength<{ - maxLength: 256; + maxLength: 2500; }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; @@ -1009,21 +1009,21 @@ export interface ApiProposalContentProposalContent prop_rev_active: Attribute.Boolean & Attribute.DefaultTo; prop_abstract: Attribute.Text & Attribute.SetMinMaxLength<{ - maxLength: 256; + maxLength: 2500; }>; prop_motivation: Attribute.Text & Attribute.SetMinMaxLength<{ - maxLength: 256; + maxLength: 12000; }>; prop_rationale: Attribute.Text & Attribute.SetMinMaxLength<{ - maxLength: 256; + maxLength: 12000; }>; gov_action_type_id: Attribute.String; prop_name: Attribute.String & Attribute.Required & Attribute.SetMinMaxLength<{ - maxLength: 60; + maxLength: 80; }>; prop_receiving_address: Attribute.String & Attribute.SetMinMaxLength<{