@writedocs/generator 0.13.2 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/writedocs.js +356 -325
- package/package.json +2 -2
- package/src/cli/convert.js +124 -124
- package/src/cli/exit-when-flushed.js +42 -38
- package/src/lib/config-schema.js +414 -75
- package/src/lib/config-schema.ts +713 -108
- package/src/lib/config.ts +3 -1
package/src/lib/config.ts
CHANGED
|
@@ -449,7 +449,9 @@ function readDocsConfig(contentDir: string): DocsConfig {
|
|
|
449
449
|
const result = validateDocsConfig(fs.readFileSync(configPath, 'utf-8'));
|
|
450
450
|
if (!result.ok) {
|
|
451
451
|
if (result.parseError) throw result.parseError;
|
|
452
|
-
throw new Error(
|
|
452
|
+
throw new Error(
|
|
453
|
+
`[writedocs] writedocs.json failed validation:\n${formatValidationIssues(result.issues, { total: result.issuesTotal, truncated: result.issuesTruncated })}`
|
|
454
|
+
);
|
|
453
455
|
}
|
|
454
456
|
// A no-op pass over ordinary navigation trees (no openapi groups) -
|
|
455
457
|
// always run, rather than gated behind a global manifest check, since
|