Skip to content

Commit

Permalink
fix: order of proto
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenSheep402 committed Nov 8, 2023
1 parent ba93d18 commit cb67b18
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 46 deletions.
16 changes: 14 additions & 2 deletions gen/openapi/sync/v1/sync_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,11 @@
"groupBasic": {
"$ref": "#/definitions/v1GroupBasic"
},
"memberId": {
"groupKeychain": {
"type": "array",
"items": {
"type": "string"
"type": "object",
"$ref": "#/definitions/v1GroupKeyChain"
}
}
}
Expand Down Expand Up @@ -300,6 +301,17 @@
}
}
},
"v1GroupKeyChain": {
"type": "object",
"properties": {
"memberId": {
"type": "string"
},
"privateKey": {
"type": "string"
}
}
},
"v1Host": {
"type": "object",
"properties": {
Expand Down
156 changes: 116 additions & 40 deletions gen/proto/sync/v1/group.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion gen/proto/sync/v1/group.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import * as GoogleProtobufTimestamp from "../../google/protobuf/timestamp.pb"
export type Group = {
groupBasic?: GroupBasic
memberId?: string[]
groupKeychain?: GroupKeyChain[]
}

export type GroupBasic = {
Expand All @@ -20,4 +20,9 @@ export type GroupBasic = {
avatar?: string
uid?: string
publicKey?: string
}

export type GroupKeyChain = {
memberId?: string
privateKey?: string
}
6 changes: 3 additions & 3 deletions proto/sync/v1/group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ option go_package = "github.com/juanjiTech/jTerm-proto/gen/proto/sync/v1;syncV1"

message Group {
GroupBasic group_basic = 1;
repeated GroupKeyChain group_keychain = 3;
repeated GroupKeyChain group_keychain = 2;

Check failure on line 10 in proto/sync/v1/group.proto

View workflow job for this annotation

GitHub Actions / breaking

Field "2" with name "group_keychain" on message "Group" changed option "json_name" from "memberId" to "groupKeychain".

Check failure on line 10 in proto/sync/v1/group.proto

View workflow job for this annotation

GitHub Actions / breaking

Field "2" on message "Group" changed type from "string" to "message".

Check failure on line 10 in proto/sync/v1/group.proto

View workflow job for this annotation

GitHub Actions / breaking

Field "2" on message "Group" changed name from "member_id" to "group_keychain".
}

message GroupBasic {
Expand All @@ -23,6 +23,6 @@ message GroupBasic {
}

message GroupKeyChain{
string member_id = 1;
string privateKey = 2;
string member_id = 11;
string privateKey = 12;
}

0 comments on commit cb67b18

Please sign in to comment.