responseref

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 responseref reproduces go-swagger issue #1109 using the OP's exact "200: order" form, where "order" names a model (not a named response object). Historically this produced an invalid spec with a dangling "$ref: #/responses/order". Today, scanned with -m (ScanModels), codescan's definition-fallback promotes the model name to a body ref ("$ref: #/definitions/order"); without -m the unresolved ref is dropped with a warning rather than emitting an invalid reference.

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: 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