Skip to content

Commit a02221d

Browse files
authored
Merge pull request #67 from doc-detective/copilot/fix-66
Rewrite schema reference builder to support v3 schemas
2 parents a721b72 + e40757a commit a02221d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2829
-670
lines changed

.scripts/buildSchemaReferences.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
const fs = require("fs");
2-
const path = require("path");
3-
const parser = require("@apidevtools/json-schema-ref-parser");
4-
const { schemas } = require("doc-detective-common");
5-
const { exit } = require("process");
1+
/*
2+
This is a legacy version of the schema reference builder.
3+
Please use the buildSchemaReferencesV4.js script instead, which has better support for v3 schemas
4+
and generates individual files for each object schema.
5+
*/
66

7-
main();
8-
9-
// TODO: Add `minimum` values
10-
// TODO: Add `maximum` values
7+
// Forward to V4 implementation
8+
require('./buildSchemaReferencesV4.js');
119

1210
async function main() {
1311
const schemasToGenerate = [

0 commit comments

Comments
 (0)