* Format all AJV errors into a list of human-readable messages. * Returns an array of formatted error strings.
(errors: ErrorObject[])
| 172 | * Returns an array of formatted error strings. |
| 173 | */ |
| 174 | function formatAjvErrors(errors: ErrorObject[]): string[] { |
| 175 | return errors.map(formatAjvError); |
| 176 | } |
| 177 | |
| 178 | export const parseConfig = async (configPath: string): Promise<Config> => { |
| 179 | try { |