Skip to content

Limits

valerify says what it checks and what it does not. A passing check covers the structure of an exchange, not the meaning of its values.

Checked in version 1

  • Endpoints, matched by method and path; a concrete path beats a template
  • Path and query parameters
  • JSON request and response bodies, including nesting and recursion
  • Status codes, with catch-alls per group such as 4XX
  • Presence, nullability and type of every field
  • Deprecated elements, reported with the consumers that still use them

Not checked, and said so

  • Headers and cookies
  • Bodies that are not JSON (reported as an info)
  • Value domains: an enum is compared as a string, and an info says so, so a value that one side adds or removes goes unnoticed
  • Types that depend on their value, such as untagged enums; an extractor marks them undeterminable
  • What a service does at runtime

What "fits" means

The result fits says that the structure of every exchange that was compared is compatible: the fields a consumer relies on are there, with a type it can read, and a field it sends is one the provider accepts. It does not say that the provider returns the right values, that a value is in the range the consumer expects, or that the services behave well together.

It is only as good as the sheets

The comparison trusts the spec sheets. A sheet that is wrong gives a wrong answer, which is why extractors verify what they claim against the serializer, and why an aspect an extractor cannot determine is marked undeterminable, with the reason, instead of guessed. A finding about such an aspect names the extractor that produced the sheet.

Scope

The format is not tied to HTTP, but the first interface type is REST with JSON bodies, and the first extractor is for Rust and serde. Other languages and other kinds of interface need their own extractors; see what is considered.