warehouse

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package warehouse provides test fixture types whose names deliberately collide with types in sibling fixture packages, so OpenAPI component-name collision handling can be exercised from the router tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gadget

type Gadget struct {
	SerialNumber string `json:"serial_number"`
	Slots        int    `json:"slots"`
}

Gadget is a type whose inferred component name is contested by names the user pins explicitly -- a `schema:"Gadget"` struct tag, or an EnumNamer returning "Gadget" -- rather than by another inferred name.

type Invoice

type Invoice struct {
	BinLocation string `json:"bin_location"`
	Pallets     int    `json:"pallets"`
}

Invoice is the warehouse flavour of a colliding type name.

type Receipt

type Receipt struct {
	ReceiptID string `json:"receipt_id"`
}

Receipt is a type whose name does not collide with anything else.

Jump to

Keyboard shortcuts

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