example_int

package
v0.36.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package example_int carries a parameter with an `example:` value that does not parse as the declared int type, exercising setExample.Parse's error branch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoBad

func DoBad()

DoBad swagger:route GET /bad-example bad badExampleInt

Responses:

200: description: OK

Types

type BadParams

type BadParams struct {
	// in: query
	// example: notanumber
	Value int `json:"value"`
}

BadParams has an int query parameter with a non-numeric example.

swagger:parameters badExampleInt

Jump to

Keyboard shortcuts

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