Releases: grove-platform/OASprey
Releases · grove-platform/OASprey
Release list
v1.0.2
OASprey v1.0.2
Security updates to resolve vulnerability issues, and other dependency version updates.
Security
- Updated transitive dependency
qsfrom 6.14.0 to 6.14.1 to address security vulnerability
Changed:
- Updated
axiosfrom 1.12.2 to 1.13.2 - Updated
@typescript-eslint/eslint-pluginfrom 8.40.0 to 8.53.1 - Updated
@typescript-eslint/parserfrom 8.40.0 to 8.53.1 - Updated
@types/expressfrom 5.0.3 to 5.0.6 - Updated
eslintfrom 9.33.0 to 9.39.2 - Updated
eslint-plugin-jestfrom 29.0.1 to 29.12.1 - Updated
expressfrom 5.1.0 to 5.2.1 - Updated
prettierfrom 3.6.2 to 3.8.1 - Updated
ts-jestfrom 29.4.1 to 29.4.6 - Updated
typescriptfrom 5.9.2 to 5.9.3 - Updated
fs-extrafrom 11.3.1 to 11.3.3 - Updated
jest-matcher-utilsfrom 30.0.5 to 30.2.0 - Updated
path-to-regexpfrom 8.2.0 to 8.3.0
v1.0.1
OASprey v1.0.1
Security updates to resolve vulnerability issues, and related version updates.
Security
- Updated
js-yamlfrom 4.1.0 to 4.1.1 to address security vulnerability - Updated
huskyfrom 4.3.0 to 9.1.7 to resolve security vulnerabilities - Updated
jestto 30.2.0 - Updated
rimrafto 6.1.2 - Updated
glob:- Use selective override to keep
glob@7.2.3fortest-exclude - Force
glob@>=11.1.0for all other dependencies
- Use selective override to keep
v1.0.0
OASprey v1.0.0
Initial release of OASprey - Jest matchers for testing OpenAPI specifications.
This is a hard fork of OpenAPIValidators, modernized with updated dependencies and focused solely on Jest support.
Features
- Jest matchers for validating API responses against OpenAPI specifications
toSatisfyApiSpec()matcher for validating HTTP responsestoSatisfySchemaInApiSpec()matcher for validating objects against schemas- Support for OpenAPI 3.0 specifications
- Support for loading specs from files, objects, or web endpoints
- Full TypeScript support
Installation
npm install --save-dev oaspreyQuick Start
import { loadSpec } from 'oasprey';
loadSpec('path/to/openapi.yml');
test('API response matches spec', async () => {
const res = await axios.get('/api/endpoint');
expect(res).toSatisfyApiSpec();
});