Skip to content

Commit e9af130

Browse files
committed
chore: test on node 12, 14, 16
1 parent 47c50a3 commit e9af130

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ name: Release npm package
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@master
14-
- uses: actions/setup-node@v1
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
1515
with:
1616
node-version: "12.x"
1717
- run: npm ci

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
node-version: [8.x, 10.x, 12.x]
10+
node-version:
11+
- 12
12+
- 14
13+
- 16
1114
steps:
12-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v3
1316
- name: Use Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v3
1518
with:
1619
node-version: ${{ matrix.node-version }}
1720
- name: npm install, build, and test

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A little NodeJS package to convert OpenAPI Schema Object or Parameter Object to JSON Schema.
44

5-
Currently converts from [OpenAPI 3.0](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md) to [JSON Schema Draft 4](http://json-schema.org/specification-links.html#draft-4).
5+
Currently converts from [OpenAPI 3.0](https://spec.openapis.org/oas/v3.0.3.html) to [JSON Schema Draft 4](http://json-schema.org/specification-links.html#draft-4).
66

77
[![Treeware](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=Treeware&query=%24.total&url=https%3A%2F%2Fpublic.offset.earth%2Fusers%2Ftreeware%2Ftrees)](https://treeware.earth)
88

@@ -22,10 +22,10 @@ If you need to do the conversion in reverse, checkout [json-schema-to-openapi-sc
2222
* converts OpenAPI v3.0 Parameter Object to JSON Schema Draft 4
2323
* deletes `nullable` and adds `"null"` to `type` array if `nullable` is `true`
2424
* supports deep structures with nested `allOf`s etc.
25-
* removes [OpenAPI specific properties](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#fixed-fields-20) such as `discriminator`, `deprecated` etc. unless specified otherwise
25+
* removes [OpenAPI specific properties](https://spec.openapis.org/oas/v3.0.3.html#fixed-fields-20) such as `discriminator`, `deprecated` etc. unless specified otherwise
2626
* optionally supports `patternProperties` with `x-patternProperties` in the Schema Object
2727

28-
**NOTE**: `$ref`s are not handled in any way, so please use a resolver such as [json-ref-resolver](https://github.com/stoplightio/json-ref-resolver) prior to using this package.
28+
**NOTE**: `$ref`s are not handled in any way, so please use a resolver such as [json-schema-ref-parser](https://github.com/APIDevTools/json-schema-ref-parser) or [swagger-cli bundle](https://www.npmjs.com/package/swagger-cli) prior to using this package.
2929

3030
## Installation
3131

@@ -206,4 +206,4 @@ This package is [Treeware](https://treeware.earth). If you use it in production,
206206

207207
## Copyright
208208

209-
Copyright 2021 the [OpenAPI Contrib organization](https://github.com/openapi-contrib). Code released under the [MIT License](https://github.com/openapi-contrib/openapi-schema-to-json-schema/blob/master/LICENSE).
209+
Copyright 2021 the [OpenAPI Contrib organization](https://github.com/openapi-contrib). Code released under the [MIT License](https://github.com/openapi-contrib/openapi-schema-to-json-schema/blob/main/LICENSE).

0 commit comments

Comments
 (0)