Skip to content

Commit

Permalink
chore(deps): updating Spectral packages so that Arazzo and AsyncAPI (#…
Browse files Browse the repository at this point in the history
…240)

* chore(deps): update spectral to get Arazzo and AsyncAPI

* chore(deps): rollback on local script change

* chore(repo): bump node versions in actions

* chore(repo): fix on node versions for stability

* chore(repo): use node 18 LTS for OS variants

* chore(repo): bump release action to use 18.x LTS

* chore(repo): bump checkout and setup-node actions

* chore(repo): update README with Arazzo support
  • Loading branch information
frankkilcommins authored Oct 16, 2024
1 parent 889b038 commit 95a6943
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 63 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
env:
VSCE_TOKEN: ${{secrets.VSCE_TOKEN}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v3.5.1
- uses: actions/setup-node@v4
with:
node-version: ^12.13
node-version: 18.x

- name: Yarn install
run: yarn install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [^12.13]
node-version: [18.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v3.5.1
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
17 changes: 5 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
{
"eslint.enable": true,
"eslint.workingDirectories": [
"./client",
"./server"
],
"eslint.workingDirectories": ["./client", "./server"],
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"typescript.tsc.autoDetect": "off",
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.tsserver.log": "off",
"typescript.tsserver.trace": "off",
"eslint.probe": [
"typescript"
],
"eslint.validate": [
"typescript"
],
"eslint.probe": ["typescript"],
"eslint.validate": ["typescript"],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"source.fixAll.eslint": "explicit"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The Spectral VS Code Extension brings the power of [Spectral](https://stoplight.io/open-source/spectral?utm_source=github.com&utm_medium=referral&utm_campaign=github_repo_vs_code_spectral) to your favorite editor.

Spectral is a flexible object linter with out of the box support for [OpenAPI](https://openapis.org/) v2 and v3, JSON Schema, and AsyncAPI.
Spectral is a flexible object linter with out of the box support for [OpenAPI](https://openapis.org/) v2 and v3, [Arazzo](https://www.openapis.org/arazzo), [JSON Schema](https://json-schema.org/), and [AsyncAPI](https://www.asyncapi.com/).

## Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Array [
},
Object {
"code": "oas3-schema",
"message": "Object must have required property \\"paths\\".",
"message": "must have required property \\"paths\\".",
"range": Array [
Object {
"character": 0,
Expand Down Expand Up @@ -68,7 +68,7 @@ Array [
},
Object {
"code": "oas3-schema",
"message": "\\"info\\" property type must be object.",
"message": "\\"info\\" property must be object.",
"range": Array [
Object {
"character": 10,
Expand Down Expand Up @@ -105,7 +105,7 @@ Array [
},
Object {
"code": "oas3-schema",
"message": "Object must have required property \\"paths\\".",
"message": "must have required property \\"paths\\".",
"range": Array [
Object {
"character": 0,
Expand Down Expand Up @@ -153,7 +153,7 @@ Array [
},
Object {
"code": "oas3-schema",
"message": "\\"info\\" property type must be object.",
"message": "\\"info\\" property must be object.",
"range": Array [
Object {
"character": 6,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@
"style guide",
"API description",
"API specification",
"API workflow",
"Arazzo",
"OAS",
"OAS2",
"OAS3",
Expand Down
8 changes: 4 additions & 4 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"author": "Stoplight <[email protected]>",
"dependencies": {
"@stoplight/path": "^1.3.2",
"@stoplight/spectral-core": "^1.16.0",
"@stoplight/spectral-ruleset-bundler": "^1.5.0",
"@stoplight/spectral-ruleset-migrator": "^1.9.1",
"@stoplight/spectral-rulesets": "^1.14.1",
"@stoplight/spectral-core": "^1.19.1",
"@stoplight/spectral-ruleset-bundler": "^1.6.0",
"@stoplight/spectral-ruleset-migrator": "^1.10.0",
"@stoplight/spectral-rulesets": "^1.20.2",
"minimatch": "^3.0.4",
"rollup": "~2.79.0",
"vscode-languageserver": "^6.1.1",
Expand Down
Loading

0 comments on commit 95a6943

Please sign in to comment.