forked from oapi-codegen/oapi-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
petstore-types.gen.go
49 lines (38 loc) · 1.14 KB
/
petstore-types.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Package api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/debugger84/oapi-codegen version (devel) DO NOT EDIT.
package api
// Error defines model for Error.
type Error struct {
// Error code
Code int32 `json:"code"`
// Error message
Message string `json:"message"`
}
// NewPet defines model for NewPet.
type NewPet struct {
// Name of the pet
Name string `json:"name"`
// Type of the pet
Tag *string `json:"tag,omitempty"`
}
// Pet defines model for Pet.
type Pet struct {
// Unique id of the pet
Id int64 `json:"id"`
// Name of the pet
Name string `json:"name"`
// Type of the pet
Tag *string `json:"tag,omitempty"`
}
// FindPetsParams defines parameters for FindPets.
type FindPetsParams struct {
// tags to filter by
Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"`
// maximum number of results to return
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}
// AddPetJSONBody defines parameters for AddPet.
type AddPetJSONBody = NewPet
// AddPetJSONRequestBody defines body for AddPet for application/json ContentType.
type AddPetJSONRequestBody = AddPetJSONBody