多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
725 B

const { writeFileSync, readFileSync } = require('fs');
// import {mergeSwaggerSchema} from "../../src";
const swaggerEE = JSON.parse(readFileSync('../nocodb/src/ee/schema/swagger.json', 'utf8'));
const swaggerCE = JSON.parse(readFileSync('../nocodb/src/schema/swagger.json', 'utf8'));
const swagger = {
...swaggerCE,
...swaggerEE,
paths: {
...swaggerCE.paths,
...swaggerEE.paths,
},
components: {
...swaggerCE.components,
...swaggerEE.components,
schemas: {
...swaggerCE.components.schemas,
...swaggerEE.components.schemas,
},
responses: {
...swaggerCE.components.responses,
...swaggerEE.components.responses,
},
},
};
writeFileSync('nc_swagger.json', JSON.stringify(swagger));