Skip to content

[DO NOT MERGE] Test new marshalling using custom message#1227

Closed
hectorcast-db wants to merge 1 commit into
mainfrom
hectorcast-db/manual-test
Closed

[DO NOT MERGE] Test new marshalling using custom message#1227
hectorcast-db wants to merge 1 commit into
mainfrom
hectorcast-db/manual-test

Conversation

@hectorcast-db

@hectorcast-db hectorcast-db commented May 23, 2025

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

Test new marshalling using custom class. old.go is generated using using the old templates and new.go using the new ones.


enum TestEnum {
  TEST_ENUM_UNSPECIFIED = 0;
  TEST_ENUM_ONE = 1;
  TEST_ENUM_TWO = 2;
  TEST_ENUM_THREE = 3;
  TEST_ENUM_FOUR = 4;
  TEST_ENUM_FIVE = 5;
}

message TestMap {
  optional string key = 1;
  optional string value = 2;
}

message TestNestedMessage {
  optional string nested_string = 1;
  optional int32 nested_int = 2;
  optional bool nested_bool = 3;
  repeated string nested_repeated_string = 4;
  optional int32 nested_required_int = 5 [(validate_required)=true];
  optional bool nested_required_bool = 6 [(validate_required)=true];
  optional TestEnum nested_enum = 7;
  repeated TestEnum nested_repeated_enum = 8;
  optional TestMap map = 9 [(json_map)=true];
}

message TestMarshallMessage {
  optional string test_optional_string = 1;
  optional string test_required_string = 2 [(validate_required)=true];
  repeated string test_repeated_string = 3;
  optional int32 test_optional_int = 4;
  optional int64 test_optional_int64 = 5;
  optional bool test_optional_bool = 6;
  repeated int32 test_repeated_int = 7;
  repeated bool test_repeated_bool = 8;
  optional TestNestedMessage test_nested_message = 9;
  repeated TestNestedMessage test_repeated_nested_message = 10;
  optional int32 test_required_int = 11 [(validate_required)=true];
  optional int64 test_required_int64 = 12 [(validate_required)=true];
  optional bool test_required_bool = 13 [(validate_required)=true];
  optional TestEnum test_enum = 14;
  repeated TestEnum test_repeated_enum = 15;
  optional TestEnum test_required_enum = 16 [(validate_required)=true];
  optional TestMap map = 17 [(json_map)=true];
}

@github-actions

Copy link
Copy Markdown

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1227
  • Commit SHA: eeda9859c7109a71f56cfa5a9e258e948bde2e0d

Checks will be approved automatically on success.

@github-actions

Copy link
Copy Markdown

Please ensure that the NEXT_CHANGELOG.md file is updated with any relevant changes.
If this is not necessary for your PR, please include the following in your PR description:
NO_CHANGELOG=true
and rerun the job.

@hectorcast-db hectorcast-db changed the title [DO NOT MERGE] Test new marshalling using custom class [DO NOT MERGE] Test new marshalling using custom message May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant