Skip to content

Commit dbb64e4

Browse files
authored
Fixed, I should look into end to end tests (#45)
1 parent d47ca97 commit dbb64e4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

resources/js/Helpers/validation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ export const resourceMandatoryFields = object({
1515
});
1616

1717
export const resourceMandatoryTags = object({
18-
topic_tags: array()
18+
topics_tags: array()
1919
.of(string().max(50))
2020
.min(2, "At least two topics are required")
2121
.required("Topics are required"),
2222
});
2323

2424
export const optionalFields = object({
25-
programming_languages: array().of(string().max(50)),
25+
programming_languages_tags: array().of(string().max(50)),
2626
general_tags: array().of(string().max(50)),
2727
});
2828

@@ -106,10 +106,10 @@ export const nullableResourceFields = object({
106106
description: string().max(10000),
107107
difficulties: array().of(string()),
108108
pricing: string(),
109-
topic_tags: array()
109+
topics_tags: array()
110110
.of(string().max(50))
111111
.min(2, "At least two topics are required"),
112-
programming_language_tags: array().of(string().max(50)),
112+
programming_languages_tags: array().of(string().max(50)),
113113
general_tags: array().of(string().max(50)),
114114
});
115115

0 commit comments

Comments
 (0)