|
12 | 12 | </a> |
13 | 13 | </p> |
14 | 14 |
|
15 | | -This will generate an [OpenAPI V3](https://spec.openapis.org/oas/v3.0.0.html) (up to v3.0.4) specification file for you from your serverless file. It can optionally generate a [Postman Collection V2](https://github.com/postmanlabs/openapi-to-postman) from the OpenAPI file for you too. This currently works for `http` and `httpApi` configurations. |
| 15 | +This will generate an OpenAPI V3 (up to v3.0.4) Document file for you from your serverless file. It can optionally generate a [Postman Collection V2](https://github.com/postmanlabs/openapi-to-postman) or (as of 0.0.120) [Bruno Collection](https://docs.usebruno.com/) from the OpenAPI file. This currently works for `http` and `httpApi` configurations. |
16 | 16 |
|
17 | | -If you are using the beta of 0.0.115, it will now try and create [OpenAPI V3.1 (3.1.x)](https://spec.openapis.org/oas/v3.1.0.html) specification file for you, should you run the command `serverless openapi generate -o openapi.json -f json -a 3.1.1 -p postman.json`. Please see this [guide on migrating to V3.1](https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0). Whilst I perosnally use this plugin all the time, please do open and report bugs, and I will do my best to fix them. |
| 17 | +If you are using the beta of 0.0.115, it will now try and create [OpenAPI V3.1 (3.1.x)](https://spec.openapis.org/oas/v3.1.0.html) Document for you, should you run the command `serverless openapi generate -o openapi.json -f json -a 3.1.1 -p postman.json`. Please see this [guide on migrating to V3.1](https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0). Whilst I perosnally use this plugin all the time, please do open and report bugs, and I will do my best to fix them. |
18 | 18 |
|
19 | 19 | Originally based off of: https://github.com/temando/serverless-openapi-documentation |
20 | 20 |
|
@@ -51,6 +51,7 @@ Options: |
51 | 51 | --indent -i File indentation in spaces. Default: 2 |
52 | 52 | --openApiVersion -a OpenAPI version to generate for. Default: 3.0.0 |
53 | 53 | --postmanCollection -p Will generate a postman collection (from the generated OpenAPI Description), in json only, if passed in. Default: postman.json |
| 54 | +--brunoCollection -b Will generate a Bruno collection (from the generated OpenAPI Description), in json only, if passed in. Default: bruno.json |
54 | 55 | --validationWarn -w Warn about validation errors only. Will write the OpenAPI file if generation is successful. Default: false |
55 | 56 | ``` |
56 | 57 |
|
@@ -1110,7 +1111,7 @@ module.exports = { |
1110 | 1111 | dereference: { |
1111 | 1112 | circular: false, // Don't allow circular $refs |
1112 | 1113 | excludedPathMatcher: ( |
1113 | | - path // Skip dereferencing content under any 'example' key |
| 1114 | + path, // Skip dereferencing content under any 'example' key |
1114 | 1115 | ) => path.includes("/example/"), |
1115 | 1116 | }, |
1116 | 1117 | }; |
|
0 commit comments