Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-api-contract

A lightweight Go library for defining and validating API contracts in tests.

Installation

See documentation

Usage

./run

Features

  • Fluent API for defining HTTP request and response expectations (status, headers, body schema).
  • Assertion methods to compare actual HTTP responses against defined contracts.
  • Support for JSON body schema validation using struct tags or simple data structures.
  • Integration with standard Go testing framework.

About

A lightweight Go library for defining and validating API contracts in tests.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages