forked from loafle/openapi-generator-original
38 lines
629 B
Protocol Buffer
38 lines
629 B
Protocol Buffer
/*
|
|
OpenAPI Petstore
|
|
|
|
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
|
|
The version of the OpenAPI document: 1.0.0
|
|
|
|
Generated by OpenAPI Generator: https://openapi-generator.tech
|
|
*/
|
|
|
|
syntax = "proto3";
|
|
|
|
package petstore;
|
|
|
|
import public "models/category.proto";
|
|
import public "models/tag.proto";
|
|
|
|
message Pet {
|
|
|
|
int64 id = 1;
|
|
|
|
Category category = 2;
|
|
|
|
string name = 3;
|
|
|
|
repeated string photoUrls = 4;
|
|
|
|
repeated Tag tags = 5;
|
|
|
|
// pet status in the store
|
|
enum status {
|
|
AVAILABLE = 0;
|
|
PENDING = 1;
|
|
SOLD = 2;
|
|
}
|
|
|
|
}
|