Skip to content

Releases: grove-platform/OASprey

v1.0.2

Choose a tag to compare

@dacharyc dacharyc released this 23 Jan 16:07
5ad2d17

OASprey v1.0.2

Security updates to resolve vulnerability issues, and other dependency version updates.

Security

  • Updated transitive dependency qs from 6.14.0 to 6.14.1 to address security vulnerability

Changed:

  • Updated axios from 1.12.2 to 1.13.2
  • Updated @typescript-eslint/eslint-plugin from 8.40.0 to 8.53.1
  • Updated @typescript-eslint/parser from 8.40.0 to 8.53.1
  • Updated @types/express from 5.0.3 to 5.0.6
  • Updated eslint from 9.33.0 to 9.39.2
  • Updated eslint-plugin-jest from 29.0.1 to 29.12.1
  • Updated express from 5.1.0 to 5.2.1
  • Updated prettier from 3.6.2 to 3.8.1
  • Updated ts-jest from 29.4.1 to 29.4.6
  • Updated typescript from 5.9.2 to 5.9.3
  • Updated fs-extra from 11.3.1 to 11.3.3
  • Updated jest-matcher-utils from 30.0.5 to 30.2.0
  • Updated path-to-regexp from 8.2.0 to 8.3.0

v1.0.1

Choose a tag to compare

@dacharyc dacharyc released this 12 Dec 18:43

OASprey v1.0.1

Security updates to resolve vulnerability issues, and related version updates.

Security

  • Updated js-yaml from 4.1.0 to 4.1.1 to address security vulnerability
  • Updated husky from 4.3.0 to 9.1.7 to resolve security vulnerabilities
  • Updated jest to 30.2.0
  • Updated rimraf to 6.1.2
  • Updated glob:
    • Use selective override to keep glob@7.2.3 for test-exclude
    • Force glob@>=11.1.0 for all other dependencies

v1.0.0

Choose a tag to compare

@dacharyc dacharyc released this 12 Dec 17:06

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 responses
  • toSatisfySchemaInApiSpec() 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 oasprey

Quick 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();
});