Documentation
¶
Overview ¶
Package petstoretest provides an in-memory HTTP server that implements the subset of the Swagger Petstore API tcli's example pipelines exercise. Intended for CI integration tests replaces the external petstore.swagger.io dependency with a fast, deterministic local server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pet ¶
type Pet struct {
ID int64 `json:"id"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls"`
Status string `json:"status,omitempty"`
Tags []any `json:"tags"`
Category any `json:"category,omitempty"`
}
Pet mirrors the minimal shape addPet accepts and getPetById returns. Fields not used by tcli pipelines are not included.
Click to show internal directories.
Click to hide internal directories.