Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't fail on Function message names #1119

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions integration/test-1110/parameters.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
useExactTypes=false
8 changes: 8 additions & 0 deletions integration/test-1110/test-1110-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { UserRule } from "./test-1110";

describe("test-1110", () => {
it("Able to create a partial user rule with reserved word messages", () => {
const simple: UserRule = UserRule.fromPartial({ UUID: "foo" });
expect(simple).toBeTruthy();
});
});
29 changes: 29 additions & 0 deletions integration/test-1110/test-1110.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
syntax = "proto3";

message UserRule {
// just some fake rule for testing
string UUID = 1 [json_name = "uuid"];
}

message Object {
string namespace = 1;
string name = 2;
}

message Boolean {
string namespace = 1;
string name = 2;
}

message Symbol {
string namespace = 1;
string name = 2;
}

message Function {
string namespace = 1;
string name = 2;
}

service APIService {
}
Loading
Loading