* @param {object} obj * @param {string} ext
(swaggerObject, ext)
| 71 | * @param {string} ext |
| 72 | */ |
| 73 | function format(swaggerObject, ext) { |
| 74 | if (ext === '.yml' || ext === '.yaml') { |
| 75 | return YAML.stringify(swaggerObject); |
| 76 | } |
| 77 | return swaggerObject; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * OpenAPI specification validator does not accept empty values for a few properties. |