You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @description This is a sample Pet Store Server based on the OpenAPI 3.1 specification.
64
-
You can find out more about
65
-
Swagger at [http://swagger.io](http://swagger.io).
66
-
* @summary Pet Store 3.1
67
-
* @see{@linkhttp://swagger.io Find out more about Swagger}
65
+
* @description This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
66
+
* Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
67
+
* You can now help us improve the API whether it's by making changes to the definition itself or to the code.
68
+
* That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
69
+
*
70
+
* Some useful links:
71
+
* - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
72
+
* - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
* @description This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
109
+
* Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
110
+
* You can now help us improve the API whether it's by making changes to the definition itself or to the code.
111
+
* That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
112
+
*
113
+
* Some useful links:
114
+
* - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
115
+
* - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
77
116
*/
117
+
118
+
// ... 省略 ...
119
+
78
120
exportinterfacePet {
79
121
/**
80
122
* @format int64
81
123
* @example10
82
124
*/
83
125
id?:number;
84
-
/**
85
-
* @description Pet Category
86
-
*/
87
-
category?:Category;
88
126
/**
89
127
* @exampledoggie
90
128
*/
91
129
name:string;
92
-
photoUrls:string;
93
-
tags?:Tag;
130
+
category?:Category;
131
+
photoUrls:Array<string>;
132
+
tags?:Array<Tag>;
94
133
/**
95
134
* @description pet status in the store
96
135
*/
97
-
status?:'available'|'pending'|'sold';
98
-
/**
99
-
* @format int32
100
-
* @example7
101
-
*/
102
-
availableInstances?:number;
103
-
petDetailsId?:unknown;
104
-
petDetails?:unknown;
136
+
status?: ('available'|'pending'|'sold');
105
137
}
106
138
107
139
// ... 省略 ...
108
140
109
-
/**
110
-
* @description Update an existing pet by Id
111
-
* @summary Update an existing pet
112
-
* @seepet Everything about your Pets {@linkhttp://swagger.io Find out more}
113
-
* @paramdata Pet object that needs to be updated in the store
0 commit comments