reviewcombination

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package reviewcombination exposes one deterministic native Huma operation with an optional, independent Nirvana legacy route for human inspection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(mode string) (http.Handler, error)

Handler returns a fresh router for the requested mode.

Types

type EstimateInput

type EstimateInput struct {
	Team     string `path:"team" doc:"Owning team identifier"`
	Currency string `header:"X-Currency" enum:"USD,EUR" doc:"Estimate currency"`
	Discount int    `query:"discount" minimum:"0" maximum:"50" default:"10" doc:"Discount percentage"`
	Body     struct {
		Items []struct {
			Name     string `json:"name" minLength:"1"`
			UnitCost int    `json:"unit_cost" minimum:"1"`
			Quantity int    `json:"quantity" minimum:"1" maximum:"20"`
		} `json:"items" minItems:"1"`
	} `json:"body"`
}

type EstimateOutput

type EstimateOutput struct {
	Status int
	Team   string `header:"X-Team"`
	Body   struct {
		Team      string `json:"team"`
		Currency  string `json:"currency"`
		Subtotal  int    `json:"subtotal"`
		Discount  int    `json:"discount_percent"`
		Total     int    `json:"total"`
		LineCount int    `json:"line_count"`
	} `json:"body"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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