diff --git a/scripts/build.js b/scripts/build.js index 7aec2a081..5a79f80db 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -29,8 +29,7 @@ schemaFiles.forEach(file => { ...parsed, }; }); - -let spec = await dereferenceDocument({ +const doc = { openrpc: "1.2.4", info: { title: "Ethereum JSON-RPC Specification", @@ -45,7 +44,11 @@ let spec = await dereferenceDocument({ components: { schemas: schemas } -}) +} +let spec = await dereferenceDocument(doc); + +fs.writeFileSync('refs-openrpc.json', JSON.stringify(doc, null, '\t')); + spec.components = {}; function recursiveMerge(schema) {