mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 20:57:06 +00:00
* Address map under composed schema Add explanation to code block * add comment to explain the code block
35 lines
569 B
Protocol Buffer
35 lines
569 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/pet.proto";
|
|
|
|
message Dog {
|
|
|
|
bool bark = 1;
|
|
|
|
enum Breed {
|
|
BREED_UNSPECIFIED = 0;
|
|
BREED_DINGO = 1;
|
|
BREED_HUSKY = 2;
|
|
BREED_RETRIEVER = 3;
|
|
BREED_SHEPHERD = 4;
|
|
}
|
|
|
|
Breed breed = 2;
|
|
|
|
map<string, Pet> pet = 3;
|
|
|
|
}
|
|
|