Skip to content

Commit

Permalink
enabled comment to be maxlength of 2500 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaunovic committed Sep 17, 2024
1 parent 9609f6c commit 558c104
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions backend/public/api-docs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ components:
type: string
comment_text:
type: string
maximum: 256
maximum: 2500
CommentListResponseDataItem:
type: object
properties:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/src/api/comment/content-types/comment/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"comment_text": {
"type": "text",
"maxLength": 256
"maxLength": 2500
}
}
}
10 changes: 5 additions & 5 deletions backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1009,21 +1009,21 @@ export interface ApiProposalContentProposalContent
prop_rev_active: Attribute.Boolean & Attribute.DefaultTo<false>;
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<{
Expand Down

0 comments on commit 558c104

Please sign in to comment.