(path)
| 21 | const packageJSONPath = join(__dirname, '..', 'package.json'); |
| 22 | |
| 23 | const readFileOrNull = async (path) => { |
| 24 | if (!path) { |
| 25 | return 'null'; |
| 26 | } |
| 27 | |
| 28 | try { |
| 29 | const content = await fs.readFile(path); |
| 30 | return content.toString(); |
| 31 | } catch (e) { |
| 32 | return 'null'; |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | const sortSwaggerRequiredAlpha = (prop, otherProp) => { |
| 37 | if (prop.required === otherProp.required) { |