swagger-cli
swagger-cli copied to clipboard
Swagger 2.0 and OpenAPI 3.0 command-line tool
When you have a yaml model that reference itself, the `validate` function consider it an error, which is not. It is completely supported by tools like swagger-editor and swagger-codegen. I'm...
The CLI can now accept multiple file arguments. These arguments can be file paths or glob-pattern. In case of glob-pattern, all the matched paths are added to validation. For `bundle`...
Although we didn't make any code changes, sometime around November 22nd 2021, we started getting an error when compiling our API documentation: `Token "components" does not exist.` However, the components...
@apidevtools/swagger-parser is broken. The 10.0.4 release, in this [commit](https://github.com/APIDevTools/swagger-parser/commit/9394be8f818f2d3daccea2c14d78c442715f288e#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R83), swagger-parser moved off z-schema over to ajv, since then, it is impossible to `bundle` or `validate` swagger files. **Error** Cannot find...
Hi, we have several api specs that we would like to bundle into one spec. We're trying to follow the example from the [spec](https://swagger.io/docs/specification/using-ref/). In a file `all.yaml`: ```yaml paths:...
I think it is an issue when I'm trying to use a $ref I got an error saying that the yaml file is not found and as you can see...
npm: '8.5.5', node: '16.15.0' When trying to use `swagger-cli bundle` I get the error: Cannot find module 'ajv/dist/core' Require stack: - /data/node_modules/ajv-draft-04/dist/index.js - /data/node_modules/@apidevtools/swagger-parser/lib/validators/schema.js - /data/node_modules/@apidevtools/swagger-parser/lib/index.js - /data/node_modules/@apidevtools/swagger-cli/lib/bundle.js - /data/node_modules/@apidevtools/swagger-cli/lib/index.js...
The 3.1 version of OAS was released, it would be nice to have the compatibility in this tool to validade specifications in this version of the spec. https://github.com/OAI/OpenAPI-Specification/releases/tag/3.1.0
I used a path `foo/bar` instead of `/foo/bar` and CLI returned an error with message: `#/paths must NOT have additional properties`. That seems very confusing. On [Swagger editor](https://editor.swagger.io), the provided...