Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema check crashland #39

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Schema check crashland #39

merged 4 commits into from
Sep 10, 2024

Conversation

gsmecher
Copy link
Owner

This adds jsonschema tests to all test cases, without bringing these checks into the normal server or client code at runtime. It works by creating a MITM proxy server that inspects all JSON and CBOR traffic on the way past, validating against either a request or response schema.

The schema check needs a little more work:

  • Requests/response inspection is only skin deep - it does not check, for example, metadata descriptions

  • Error returns when schema checks fail are piped through the proxy's HTTP response to the server - which is fairly cheeseball

Graeme Smecher and others added 4 commits September 10, 2024 13:22
This adds jsonschema tests to all test cases, without bringing these
checks into the normal server or client code at runtime. It works by
creating a MITM proxy server that inspects all JSON and CBOR traffic on
the way past, validating against either a request or response schema.

The schema check needs a little more work:

* Requests/response inspection is only skin deep - it does not check,
  for example, metadata descriptions

* Error returns when schema checks fail are piped through the proxy's
  HTTP response to the server - which is fairly cheeseball
@gsmecher gsmecher merged commit f034d63 into master Sep 10, 2024
8 checks passed
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