bodyref

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package bodyref reproduces go-swagger issue #1109 using casualjim's recommended "200: body:order" form, which references a model as the response body. Scanned with -m, codescan emits a 200 response with "schema: $ref #/definitions/order" and the order definition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateOrder

func UpdateOrder()

UpdateOrder swagger:route PUT /orders/{id} orders updateOrder

Updates an order.

Responses:

200: body:order

Types

type Order

type Order struct {
	// required: true
	ID int64 `json:"id"`
}

An Order for one or more pets by a user. swagger:model order

Jump to

Keyboard shortcuts

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