-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
no-file-descriptor
setting for outputSchema option (#1047)
- Loading branch information
1 parent
58deee2
commit c54f06c
Showing
8 changed files
with
313 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Binary file not shown.
This file contains 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,13 @@ | ||
syntax = "proto3"; | ||
|
||
message DividerData { | ||
enum DividerType { | ||
DOUBLE = 0; | ||
SINGLE = 1; | ||
DASHED = 2; | ||
DOTTED = 3; | ||
} | ||
|
||
DividerType type = 1; | ||
map<string, DividerType> typeMap = 2; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 @@ | ||
outputSchema=no-file-descriptor |
8 changes: 8 additions & 0 deletions
8
integration/schema-no-file-descriptor/schema-no-file-descriptor-test.ts
This file contains 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,8 @@ | ||
import { protoMetadata } from "./const-enum"; | ||
|
||
describe("schema-no-file-descriptor", () => { | ||
test("the property doesn't exist", () => { | ||
expect(protoMetadata).not.toHaveProperty("fileDescriptor"); | ||
expect(protoMetadata).toHaveProperty("references"); | ||
}); | ||
}); |
This file contains 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 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