This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(constants): introduce quote limits
- Loading branch information
1 parent
4b9768a
commit 9cfda4c
Showing
2 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,55 @@ | ||
/** | ||
* The name of the API | ||
*/ | ||
export const NAME = "Quote-It" as const | ||
|
||
/** | ||
* The description of the API | ||
*/ | ||
export const DESCRIPTION = "Your go-to API for inspiring, and thought-provoking quotes." as const | ||
|
||
/** | ||
* The version of the API | ||
*/ | ||
export const VERSION = "1.0.0" as const | ||
|
||
/** | ||
* The limits of the quote | ||
*/ | ||
export const QUOTE_LIMITS = { | ||
/** | ||
* The minimum length of the author | ||
*/ | ||
MinimumAuthorLength: 1, | ||
/** | ||
* The maximum length of the author | ||
*/ | ||
MaximumAuthorLength: 30, | ||
|
||
/** | ||
* The minimum length of the category | ||
*/ | ||
MinimumCategoryLength: 1, | ||
/** | ||
* The maximum length of the category | ||
*/ | ||
MaximumCategoryLength: 20, | ||
|
||
/** | ||
* The minimum length of the submitter | ||
*/ | ||
MinimumSubmitterLength: 1, | ||
/** | ||
* The maximum length of the submitter | ||
*/ | ||
MaximumSubmitterLength: 30, | ||
|
||
/** | ||
* The minimum length of the text | ||
*/ | ||
MinimumTextLength: 1, | ||
/** | ||
* The maximum length of the text | ||
*/ | ||
MaximumTextLength: 200, | ||
} as const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters