apib2swagger 1.13.0 → 1.14.0
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 +3 -8
- package/bin/apib2swagger.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# apib2swagger
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
[](https://coveralls.io/github/kminami/apib2swagger?branch=master)
|
|
5
5
|
[](https://badge.fury.io/js/apib2swagger)
|
|
6
6
|
|
|
7
|
-
Convert [API Blueprint]
|
|
7
|
+
Convert [API Blueprint](https://apiblueprint.org/) to [Swagger 2.0](http://swagger.io/) or [OpenAPI 3.0](https://github.com/OAI/OpenAPI-Specification).
|
|
8
8
|
|
|
9
9
|
Supported versions:
|
|
10
10
|
- API Blueprint 1A9
|
|
@@ -91,16 +91,11 @@ cat api.md | npx apib2swagger > swagger.json
|
|
|
91
91
|
You can also run apib2swagger inside a docker container.
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
|
-
$ docker run -it --rm -v $(pwd):/docs kminami/apib2swagger -i /docs/api.md -o /docs/swagger.json
|
|
94
|
+
$ docker run -it --rm -v $(pwd):/docs ghcr.io/kminami/apib2swagger -i /docs/api.md -o /docs/swagger.json
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
You can use container images in GitHub Container Registory like `ghcr.io/kminami/apib2swagger` or `ghcr.io/kminami/apib2swagger:1.12.0` instead of Docker Hub.
|
|
98
|
-
|
|
99
97
|
## License
|
|
100
98
|
|
|
101
99
|
Copyright (c) 2021 Keisuke Minami
|
|
102
100
|
|
|
103
101
|
MIT
|
|
104
|
-
|
|
105
|
-
[API Blueprint]: https://apiblueprint.org/ "API Blueprint"
|
|
106
|
-
[Swagger]: http://swagger.io/ "Swagger"
|
package/bin/apib2swagger.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apib2swagger",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Convert API Blueprint to Swagger.",
|
|
5
5
|
"bin": "./bin/apib2swagger.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"apib-include-directive": "^0.1.0",
|
|
21
21
|
"drafter.js": "^2.6.2",
|
|
22
22
|
"generate-schema": "^2.5.0",
|
|
23
|
-
"js-yaml": "^
|
|
23
|
+
"js-yaml": "^4.1.0",
|
|
24
24
|
"lodash.isequal": "^4.5.0",
|
|
25
25
|
"nopt": "^3.0.6",
|
|
26
26
|
"uritemplate": "^0.3.4"
|