Tomáš Čermák f1ad3a89e6
[Protobuf-Schema] Add enum prefix (#11548)
* [Protobuf-Schema] Add enum prefix

* [Protobuf-Schema] Documentation updated

* [Protobuf-Schema] Samples updated
2022-02-18 00:32:34 +08:00

40 lines
726 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 = 3355;
Category category = 50511102;
string name = 3373707;
repeated string photoUrls = 311086539;
repeated Tag tags = 3552281;
// pet status in the store
enum StatusEnum {
StatusEnum_AVAILABLE = 0;
StatusEnum_PENDING = 1;
StatusEnum_SOLD = 2;
}
StatusEnum status = 355610639;
}