bug1913

package
v0.36.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelS

type ModelS struct {
	// swagger:allOf
	TeslaCar
	// The edition of this Model S
	Edition string `json:"edition"`
}

ModelS version of the tesla car.

swagger:model modelS

type ModelX

type ModelX struct {
	// swagger:allOf
	TeslaCar
	// Number of doors
	Doors int `json:"doors"`
}

ModelX version of the tesla car.

swagger:model modelX

type TeslaCar

type TeslaCar interface {
	// The model of tesla car
	//
	// discriminator: true
	// swagger:name model
	Model() string

	// AutoPilot returns true when it supports autopilot
	// swagger:name autoPilot
	AutoPilot() bool
}

TeslaCar is a discriminated (polymorphic) type (go-swagger#1913).

swagger:model

Jump to

Keyboard shortcuts

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