contract

command
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Command contract generates AuthKit's v1 contract files: from the route catalog (httpapi.Catalog) and the error catalog, api/openapi.json and auth-ui's generated wire types, route table and error codes and messages; from the covered packages, the Go API list api/go.txt. Run it with go generate ./internal/httpapi; TestGeneratedContractIsFresh and TestGoAPISurface fail when a generated file is stale.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL