ava-openapi
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "ava-openapi", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"publishConfig": { | ||
@@ -17,3 +17,5 @@ "access": "public" | ||
"ava", | ||
"openapi" | ||
"openapi", | ||
"swagger", | ||
"response validation" | ||
], | ||
@@ -20,0 +22,0 @@ "contributors": [ |
@@ -12,3 +12,31 @@ [![npm](https://img.shields.io/npm/v/ava-openapi.svg)](https://www.npmjs.com/package/ava-openapi) | ||
[![Coverage Status](https://coveralls.io/repos/arlac77/ava-openapi/badge.svg)](https://coveralls.io/github/arlac77/ava-openapi) | ||
# ava-openapi | ||
ava openapi testing support | ||
```js | ||
import test from "ava"; | ||
import { loadOpenAPI, openapiPathTest } from "ava-openapi"; | ||
test.before(async t => { | ||
await loadOpenAPI( | ||
t, | ||
"https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.2022-11-28.json" | ||
); | ||
}); | ||
test(openapiPathTest, "/", {}); | ||
``` | ||
# install | ||
With [npm](http://npmjs.org) do: | ||
```shell | ||
npm install ava-openapi | ||
``` | ||
# license | ||
BSD-2-Clause |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11245
149
42
2