model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	GithubCloudOnly  bool
	EnabledForApps   bool
	Legacy           bool
	Deprecated       bool
	ID               string
	Path             string
	Method           string
	Name             string
	Concern          string
	DocsURL          string
	Summary          string
	HelpText         string
	PathParams       []*Param
	QueryParams      []*Param
	Headers          []*Param
	Previews         []*Preview
	RequestBody      *RequestBody
	Responses        map[int]*Response
	SuccessMediaType string
}

func (*Endpoint) Clone added in v0.8.0

func (e *Endpoint) Clone() *Endpoint

type Param

type Param struct {
	Required bool
	Name     string
	HelpText string
	Schema   *ParamSchema
}

func (*Param) Clone

func (p *Param) Clone() *Param

type ParamSchema

type ParamSchema struct {
	Nullable     bool
	Ref          string
	Type         ParamType
	ItemSchema   *ParamSchema
	ObjectParams []*Param
}

func (*ParamSchema) Clone

func (p *ParamSchema) Clone() *ParamSchema

type ParamType

type ParamType int
const (
	ParamTypeInvalid ParamType = iota
	ParamTypeString
	ParamTypeInt
	ParamTypeBool
	ParamTypeNumber
	ParamTypeInterface
	ParamTypeObject
	ParamTypeArray
	ParamTypeOneOf
)

func (ParamType) String added in v0.5.0

func (pt ParamType) String() string

type Preview

type Preview struct {
	Required bool
	Name     string
	Note     string
}

type RequestBody added in v0.5.0

type RequestBody struct {
	MediaType string
	Schema    *ParamSchema
}

func (*RequestBody) Clone added in v0.8.0

func (b *RequestBody) Clone() *RequestBody

type Response

type Response struct {
	MediaType  string
	Body       *ParamSchema
	HasExample bool
}

func (*Response) Clone added in v0.8.0

func (r *Response) Clone() *Response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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