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.
Click to show internal directories.
Click to hide internal directories.