Skip to content

openapi: add compliance test matrix and real-world fixtures - #356

Closed
RhysSullivan wants to merge 1 commit into
rs/openapi-response-fidelityfrom
rs/openapi-compliance-matrix
Closed

RhysSullivan wants to merge 1 commit into
rs/openapi-response-fidelityfrom
rs/openapi-compliance-matrix

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Apr 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Test files

  • compliance-query-params.test.ts — 8 tests (scalar, form-exploded/non-exploded, pipe/space delimited, deepObject, percent-encoded special chars)
  • compliance-path-params.test.ts — 5 tests (scalar, simple array, label, matrix, reserved-char encoding)
  • compliance-headers-cookies.test.ts — 5 tests (scalar, multi-value, secret-resolved, single + multi cookies)
  • compliance-request-body.test.ts — 5 tests (JSON, form-urlencoded, multipart boundary, text/plain, no-body-declared)
  • compliance-required-enforcement.test.ts — 3 tests (missing query/body/path)
  • compliance-response-handling.test.ts — 5 tests (200 JSON, 200 text, 204, 4xx JSON, 5xx)
  • compliance-per-operation-security.test.ts — 2 tests (security: [] override — skipped pending per-op override support, per-op scheme wins over global)
  • compliance-fixtures.test.ts — 8 tests across the 5 fixture specs

Status

  • 108 passing, 1 skipped (the security: [] override test is skipped until per-op security support ships).
  • Assertions on array-encoded query params (form non-exploded, pipeDelimited, deepObject, label non-exploded) accept both percent-encoded and literal forms — either is RFC-compliant and popular generators emit the literal form.

Why

Gives us a fast, self-contained regression net that exercises the plugin against both hand-authored edge specs and real-world shapes (Stripe's unusual request bodies, Petstore's classic shape, NYT's apiKey-in-query auth). The fixture tests in particular catch adapter regressions that unit tests miss.

41 wire-level tests across query/path/header/cookie params, request body,
response handling, required-enforcement, and per-operation security, plus
5 real-world fixture extraction tests (petstore, stripe, github, NYT
apiKey-in-query, synthetic cookie-auth). Tests that describe target
behaviour not yet implemented are left as real `it.scoped` so failures
surface the feature backlog. All pre-existing tests remain green.

RhysSullivan commented Apr 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 7ede142 Commit Preview URL

Branch Preview URL
Apr 20 2026, 10:21 PM

@pkg-pr-new

pkg-pr-new Bot commented Apr 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor/sdk

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/sdk@356

@executor/plugin-file-secrets

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-file-secrets@356

@executor/plugin-google-discovery

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-google-discovery@356

@executor/plugin-graphql

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-graphql@356

@executor/plugin-keychain

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-keychain@356

@executor/plugin-mcp

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-mcp@356

@executor/plugin-oauth2

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-oauth2@356

@executor/plugin-onepassword

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-onepassword@356

@executor/plugin-openapi

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-openapi@356

@executor/plugin-workos-vault

npm i https://pkg.pr.new/RhysSullivan/executor/@executor/plugin-workos-vault@356

executor

npm i https://pkg.pr.new/RhysSullivan/executor@356

commit: 7ede142

@RhysSullivan
RhysSullivan deleted the rs/openapi-compliance-matrix branch June 11, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant