Skip to content

Commit

Permalink
Add support for AsyncAPI 2.0.0 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas authored Feb 18, 2020
1 parent f9e0b78 commit da88765
Show file tree
Hide file tree
Showing 5 changed files with 1,362 additions and 1,092 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to the "openapi-lint" extension will be documented in this f

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [2.0.0]
- Add AsyncAPI v2.0.0 support.
- Remove AsyncAPI v1.x.x support.

## [1.1.0]
- Integrate errors/warnings with the 'Problems' (diagnostics) pane
- Accurate line/column positions will be coming in the next minor version
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The default linter rules are documented [here](https://mermade.github.io/oas-kit
* OAS v2 intellisense for files named `*swagger.json`, `*swagger.yaml`, `*swagger.yml`, `*oas2.json`, `*oas2.yaml`, `*oas2.yml`
* Conversion between JSON and YAML
* Snippets (minimal valid openapi/swagger JSON and YAML documents)
* AsyncAPI v1.2.0 intellisense for files named `*asyncapi.json`, `*asyncapi.yaml`, `*asyncapi.yml`
* AsyncAPI v2.0.0 intellisense for files named `*asyncapi.json`, `*asyncapi.yaml`, `*asyncapi.yml`

## Coming soon

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@
"yamlValidation": [
{
"fileMatch": "*asyncapi.yaml",
"url": "./schemas/asyncapi.json"
"url": "./schemas/asyncapi-2.0.0.json"
},
{
"fileMatch": "*asyncapi.yml",
"url": "./schemas/asyncapi.json"
"url": "./schemas/asyncapi-2.0.0.json"
},
{
"fileMatch": "*openapi.yaml",
"url": "./schemas/gnostic-3.0.json"
},
{
"fileMatch": "*openapi.yaml",
Expand Down Expand Up @@ -128,7 +132,7 @@
"jsonValidation": [
{
"fileMatch": "*asyncapi.json",
"url": "./schemas/asyncapi.json"
"url": "./schemas/asyncapi-2.0.0.json"
},
{
"fileMatch": "*openapi.json",
Expand Down
Loading

0 comments on commit da88765

Please sign in to comment.