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 CHANGED
@@ -1,10 +1,10 @@
1
1
  # apib2swagger
2
2
 
3
- [![Build Status](https://travis-ci.org/kminami/apib2swagger.svg?branch=master)](https://travis-ci.org/kminami/apib2swagger)
3
+ ![Build Status](https://github.com/kminami/apib2swagger/actions/workflows/nodejs.yml/badge.svg)
4
4
  [![Coverage Status](https://coveralls.io/repos/github/kminami/apib2swagger/badge.svg?branch=master)](https://coveralls.io/github/kminami/apib2swagger?branch=master)
5
5
  [![npm version](https://badge.fury.io/js/apib2swagger.svg)](https://badge.fury.io/js/apib2swagger)
6
6
 
7
- Convert [API Blueprint][] to [Swagger][].
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"
@@ -126,7 +126,7 @@ function processBlueprint(blueprint, opts) {
126
126
  return runServer(swagger);
127
127
  }
128
128
  if (opts.yaml) {
129
- var data = yaml.safeDump(swagger);
129
+ var data = yaml.dump(swagger);
130
130
  if (output !== '-') {
131
131
  fs.writeFileSync(output, data);
132
132
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apib2swagger",
3
- "version": "1.13.0",
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": "^3.13.1",
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"