Files
openapi-generator-original/samples/config/petstore/protobuf-schema-config-complex/models/dog.proto
lucy66hw b4378a6277 [Protobuf Schema] Map Field Handling in Composed Schemas (#21002)
* Address map under composed schema

Add explanation to code block

* add comment to explain the code block
2025-04-16 16:33:22 +08:00

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;
}