(description, prefix, errors)
| 70 | } |
| 71 | |
| 72 | function validateDescription(description, prefix, errors) { |
| 73 | if (!isNonEmptyString(description)) { |
| 74 | errors.push(`${prefix}: "description" is required and must be a non-empty string`); |
| 75 | return; |
| 76 | } |
| 77 | |
| 78 | if (description.length > 500) { |
| 79 | errors.push(`${prefix}: "description" must be 500 characters or fewer`); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | function validateVersion(version, prefix, errors) { |
| 84 | if (!isNonEmptyString(version)) { |
no test coverage detected