serverless-openapi-documenter 0.0.123 → 0.0.124-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/openapi.json +1222 -0
- package/package.json +2 -2
- package/src/schemaHandler.js +30 -15
- package/test.js +204 -0
- package/test2.js +146 -0
- package/test3.js +29 -0
package/README.md
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
</a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
-
This will generate an OpenAPI V3 (up to v3.0.4) 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.
|
|
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
|
+
|
|
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.
|
|
16
18
|
|
|
17
19
|
Originally based off of: https://github.com/temando/serverless-openapi-documentation
|
|
18
20
|
|
|
@@ -1109,7 +1111,7 @@ module.exports = {
|
|
|
1109
1111
|
dereference: {
|
|
1110
1112
|
circular: false, // Don't allow circular $refs
|
|
1111
1113
|
excludedPathMatcher: (
|
|
1112
|
-
path // Skip dereferencing content under any 'example' key
|
|
1114
|
+
path, // Skip dereferencing content under any 'example' key
|
|
1113
1115
|
) => path.includes("/example/"),
|
|
1114
1116
|
},
|
|
1115
1117
|
};
|