lucy66hw c96d3088c5
[protobuf-schema] Use snake_case for protobuf fields, UPPER_SNAKE_CASE for enums. (#20696)
* protobuf enum prefix use upper underscore

Add json name parameters and change parameter field name to snake case

* rerun generate-samples.sh

* Add CI test

* rebase master

---------

Co-authored-by: xil <xil@uber.com>
2025-03-04 17:18:07 +08:00

36 lines
603 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;
message User {
int64 id = 1;
string username = 2;
string first_name = 3 [json_name="firstName"];
string last_name = 4 [json_name="lastName"];
string email = 5;
string password = 6;
string phone = 7;
// User Status
int32 user_status = 8 [json_name="userStatus"];
}