-
Notifications
You must be signed in to change notification settings - Fork 233
feat(cli,protographic): improvements to operation validation and proto generation #2436
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8f738a7
fix - need to ensure that operations are pascal case
asoorm 4e0e769
refactor and addressing PR review comments
asoorm fc601d6
docs: clarify proto generation constraints and improve ConnectRPC log…
asoorm f931efd
feat(protographic): support GraphQL variable name field options
asoorm 272c25d
fix(protographic): track nested messages independently in lock file
asoorm ffbed71
fix: as field option extension is embedded, we cannot provide fully q…
asoorm 38c946d
fix: correctly looking up graphql_name from extension options
asoorm c5dc3fb
refactor: allow all-uppercase operation names
asoorm 7ebd229
fix(protographic): propagate messagePath through fragment processing
asoorm afe5d94
fix(cli): preserve acronyms in service names for operations-based gen…
asoorm 90ffd0d
Revert "fix(cli): preserve acronyms in service names for operations-b…
asoorm 03fa914
fix: correct proto file reference in proto-field-options.ts comment
asoorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /** | ||
|
Noroth marked this conversation as resolved.
|
||
| * Protocol Buffer field option constants for ConnectRPC integration. | ||
| * | ||
| * These options are defined using `extend google.protobuf.FieldOptions` in generated proto files. | ||
| */ | ||
|
|
||
| export interface ProtoFieldOption { | ||
| readonly fieldNumber: number; | ||
| readonly optionName: string; | ||
| } | ||
|
|
||
| /** | ||
| * Maps protobuf fields to GraphQL variable names when they don't match the expected format. | ||
| * Field number 50001 is in the user-defined extension range. | ||
| */ | ||
| export const GRAPHQL_VARIABLE_NAME: ProtoFieldOption = { | ||
| fieldNumber: 50001, | ||
| optionName: '(graphql_variable_name)', | ||
| } as const; | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.