Skip to content

Commit 0d51872

Browse files
fix: Removes extra string added to params table
Co-authored-by: Clay Simmons <[email protected]>
1 parent e7be757 commit 0d51872

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

util/shared/json-schema.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ function getSchemaConstraints(json, module, schemas = {}, options = { delimiter:
220220
typeof json.format === 'string' ? constraints.push(`format: ${json.format}`) : null
221221
typeof json.minLength === 'number' ? constraints.push(`minLength: ${json.minLength}`) : null
222222
typeof json.maxLength === 'number' ? constraints.push(`maxLength: ${json.maxLength}`) : null
223-
typeof json.maxLength === 'number' ? constraints.push(`maxLength: ${json.maxLength}`) : null
224223
typeof json.pattern === 'string' ? constraints.push(`pattern: ${json.pattern}`) : null
225224

226225
return constraints.join(options.delimiter)

0 commit comments

Comments
 (0)