📖 2 min read (~ 300 words).

go-openapi conformance suites

Conformance test suites for JSON and YAML parsers.

This library generates test suites.

Each document is generated, and its verdict comes from the grammar published by its specification.

Status

Fork me

Early days: the API is still in flux. Documentation and code are still being honed…

Getting started

Each suite is published as a gzipped JSON Lines file.

You can read it from any language with a JSON reader and a base64 decoder.

You don’t need Go or this library to work with the suite. See Read a corpus.

Go

To use the oracles, the generators, or the embedded corpus from Go:

go get github.com/go-openapi/conformance-suites

Then see Score a parser.

Licensing

SPDX-FileCopyrightText: Copyright 2025-2026 go-swagger maintainers

This library ships under the Apache-2.0 license. The vendored YAML Test Suite and JSONTestSuite fixtures ship under the MIT License.

Contributing

Issues and pull requests welcome.

See the shared go-openapi contributing guidelines and the per-repo notes in project/.


  • Two routes into a corpus: read the file from any language, or use the Go API.
  • How a corpus is built and labelled: the oracle, tags and stances, coverage, meanings.
  • One suite per grammar: JSON today, YAML next.
  • The corpus file format and the tag vocabulary, field by field.
  • Repo-level information for github.com/go-openapi/conformance-suites.

    Contributing guidelines and maintainer documentation are shared across the go-openapi organization.