Skip to content

Remove OpenAPI assertions to its own package

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Dec 05:38

Instead you must use the @japa/openapi-assertions package for OpenAPI assertions. You can configure and use it as follows.

npm i -D @japa/openapi-assertions
import { openapi } from '@japa/openapi-assertions'

configure({
  plugins: [
    openapi({
      schemas: [new URL('../api-spec.json', import.meta.url)],
    }),
  ],
})
  • refactor!: remove api-contract-validator for OpenAPI testing (#5) (e9ad2ed), closes #5

Bug Fixes

  • type issues and test script (81c7a9b)

BREAKING CHANGES

  • API assertions have been moved to its own package

Full Changelog: v3.0.0...v4.0.0