mirror of
				https://github.com/OpenAPITools/openapi-generator.git
				synced 2025-11-04 02:33:54 +00:00 
			
		
		
		
	* Address map under composed schema Add explanation to code block * add comment to explain the code block
		
			
				
	
	
		
			42 lines
		
	
	
		
			729 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			729 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_map.proto";
 | 
						|
 | 
						|
message Pet {
 | 
						|
 | 
						|
  int64 id = 1;
 | 
						|
 | 
						|
  Category category = 2;
 | 
						|
 | 
						|
  string name = 3;
 | 
						|
 | 
						|
  repeated string photo_urls = 4 [json_name="photoUrls"];
 | 
						|
 | 
						|
  repeated TagMap tags = 5;
 | 
						|
 | 
						|
  // pet status in the store
 | 
						|
  enum Status {
 | 
						|
    STATUS_UNSPECIFIED = 0;
 | 
						|
    STATUS_AVAILABLE = 1;
 | 
						|
    STATUS_PENDING = 2;
 | 
						|
    STATUS_SOLD = 3;
 | 
						|
  }
 | 
						|
 | 
						|
  Status status = 6;
 | 
						|
 | 
						|
}
 | 
						|
 |