Skip to content

Conversation

@ahmdmhd
Copy link
Collaborator

@ahmdmhd ahmdmhd commented Oct 24, 2025

This PR implements support for exporting .proto files.

s2dm export protobuf --schema /path/to/schema --output output.proto --selection-query /path/to/selection/query [--package-name package.name] [--flatten-naming]

Based on #146.

@ahmdmhd ahmdmhd changed the title feat: export protobuf [WIP] feat: export protobuf Oct 24, 2025
@jdacoello jdacoello deleted the branch COVESA:main October 27, 2025 09:36
@jdacoello jdacoello closed this Oct 27, 2025
@jdacoello jdacoello reopened this Oct 27, 2025
@jdacoello
Copy link
Collaborator

There is a mismatch in the develop commit history. The develop branch will be deleted.
@ahmdmhd , please rebase your branch and direct the PR against the main branch directly.

@ahmdmhd ahmdmhd force-pushed the feat/export-protobuf branch from 2a99ade to f4b2f1a Compare October 27, 2025 15:00
@ahmdmhd ahmdmhd changed the base branch from develop to main October 27, 2025 15:01
@ahmdmhd ahmdmhd force-pushed the feat/export-protobuf branch from 36edab9 to c8f265f Compare October 30, 2025 13:55
@ahmdmhd ahmdmhd changed the title [WIP] feat: export protobuf feat: export protobuf Oct 30, 2025
@ahmdmhd ahmdmhd marked this pull request as ready for review October 30, 2025 13:55
Signed-off-by: Ahmed Mohamed <[email protected]>
@ahmdmhd ahmdmhd force-pushed the feat/export-protobuf branch from 1efd74b to f8da8b8 Compare November 5, 2025 15:09
@ahmdmhd
Copy link
Collaborator Author

ahmdmhd commented Nov 5, 2025

@jdacoello the PR is now ready to be reviewed.

The following has been changed:

  • The --selection-query​ flag is now mandatory.
  • Name flattening now works for types present in the selection query.
  • Nullable fields are mapped to optional and non-null fields include validation.
  • A bug that prevented referenced types from being included in the proto file is now fixed.
  • The documentation includes a comment on field numbering in proto files.

@ahmdmhd ahmdmhd force-pushed the feat/export-protobuf branch from 15952b8 to b258fd4 Compare November 27, 2025 13:17
@jdacoello jdacoello self-requested a review December 3, 2025 10:12
@jdacoello jdacoello merged commit 4996df8 into COVESA:main Dec 3, 2025
1 check passed
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.

2 participants