Skip to content

Commit

Permalink
feat: omit empty descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
izumin5210 authored Jan 4, 2021
1 parent f788121 commit 0cef2b3
Show file tree
Hide file tree
Showing 14 changed files with 107 additions and 911 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,81 +9,48 @@ type Query {
ok: Boolean!
}
\\"\\"\\"\\"\\"\\"
enum TestPrefixPrefixedEnum {
\\"\\"\\"\\"\\"\\"
PREFIXED_BAR
\\"\\"\\"\\"\\"\\"
PREFIXED_FOO
}
\\"\\"\\"\\"\\"\\"
type TestPrefixPrefixedMessage {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"Output only.\\"\\"\\"
id: String!
\\"\\"\\"\\"\\"\\"
prefixedEnum: TestPrefixPrefixedEnum
\\"\\"\\"\\"\\"\\"
squashedMessage: TestPrefixPrefixedMessageSquashedMessage
\\"\\"\\"\\"\\"\\"
thisFieldWasRenamed: String!
}
\\"\\"\\"\\"\\"\\"
type TestPrefixPrefixedMessageInnerMessage {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
type TestPrefixPrefixedMessageInnerMessage2 {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageInnerMessage2Input {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageInnerMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"\\"\\"\\"
prefixedEnum: TestPrefixPrefixedEnum
\\"\\"\\"\\"\\"\\"
squashedMessage: TestPrefixPrefixedMessageSquashedMessageInput
\\"\\"\\"\\"\\"\\"
thisFieldWasRenamed: String!
}
\\"\\"\\"\\"\\"\\"
union TestPrefixPrefixedMessageSquashedMessage = TestPrefixPrefixedMessageInnerMessage | TestPrefixPrefixedMessageInnerMessage2
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageSquashedMessageInput {
\\"\\"\\"\\"\\"\\"
oneofIgnoredField: TestPrefixPrefixedMessageInnerMessageInput
\\"\\"\\"\\"\\"\\"
oneofIgnoredField2: TestPrefixPrefixedMessageInnerMessage2Input
}
"
Expand All @@ -110,81 +77,48 @@ type Query {
ok: Boolean!
}
\\"\\"\\"\\"\\"\\"
enum TestPrefixPrefixedEnum {
\\"\\"\\"\\"\\"\\"
PREFIXED_BAR
\\"\\"\\"\\"\\"\\"
PREFIXED_FOO
}
\\"\\"\\"\\"\\"\\"
type TestPrefixPrefixedMessage {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"Output only.\\"\\"\\"
id: String!
\\"\\"\\"\\"\\"\\"
prefixedEnum: TestPrefixPrefixedEnum
\\"\\"\\"\\"\\"\\"
squashedMessage: TestPrefixPrefixedMessageSquashedMessage
\\"\\"\\"\\"\\"\\"
thisFieldWasRenamed: String!
}
\\"\\"\\"\\"\\"\\"
type TestPrefixPrefixedMessageInnerMessage {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
type TestPrefixPrefixedMessageInnerMessage2 {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageInnerMessage2Input {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageInnerMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"\\"\\"\\"
prefixedEnum: TestPrefixPrefixedEnum
\\"\\"\\"\\"\\"\\"
squashedMessage: TestPrefixPrefixedMessageSquashedMessageInput
\\"\\"\\"\\"\\"\\"
thisFieldWasRenamed: String!
}
\\"\\"\\"\\"\\"\\"
union TestPrefixPrefixedMessageSquashedMessage = TestPrefixPrefixedMessageInnerMessage | TestPrefixPrefixedMessageInnerMessage2
\\"\\"\\"\\"\\"\\"
input TestPrefixPrefixedMessageSquashedMessageInput {
\\"\\"\\"\\"\\"\\"
oneofIgnoredField: TestPrefixPrefixedMessageInnerMessageInput
\\"\\"\\"\\"\\"\\"
oneofIgnoredField2: TestPrefixPrefixedMessageInnerMessage2Input
}
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,157 +5,91 @@ exports[`schema generation with protobufjs can make GraphQL schema from generate
### Do not make changes to this file directly
\\"\\"\\"\\"\\"\\"
enum DeprecatedEnum {
\\"\\"\\"\\"\\"\\"
DEPRECATED_BAZ @deprecated(reason: \\"testapis.deprecation.DeprecatedEnum is mark as deprecated in a *.proto file.\\")
\\"\\"\\"\\"\\"\\"
DEPRECATED_QUX @deprecated(reason: \\"testapis.deprecation.DeprecatedEnum is mark as deprecated in a *.proto file.\\")
}
\\"\\"\\"\\"\\"\\"
enum DeprecatedFileEnum {
\\"\\"\\"\\"\\"\\"
DEPRECATED_FILE_BAR @deprecated(reason: \\"testapis/deprecation/file_deprecation.proto is mark as deprecated.\\")
\\"\\"\\"\\"\\"\\"
DEPRECATED_FILE_FOO @deprecated(reason: \\"testapis/deprecation/file_deprecation.proto is mark as deprecated.\\")
}
\\"\\"\\"\\"\\"\\"
type DeprecatedFileMessage {
\\"\\"\\"\\"\\"\\"
body: String! @deprecated(reason: \\"testapis/deprecation/file_deprecation.proto is mark as deprecated.\\")
\\"\\"\\"\\"\\"\\"
enum: DeprecatedFileEnum @deprecated(reason: \\"testapis/deprecation/file_deprecation.proto is mark as deprecated.\\")
}
\\"\\"\\"\\"\\"\\"
type DeprecatedFileMessageInnerMessage {
\\"\\"\\"\\"\\"\\"
body: String! @deprecated(reason: \\"testapis/deprecation/file_deprecation.proto is mark as deprecated.\\")
}
\\"\\"\\"\\"\\"\\"
input DeprecatedFileMessageInnerMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input DeprecatedFileMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"\\"\\"\\"
enum: DeprecatedFileEnum
}
\\"\\"\\"\\"\\"\\"
type DeprecatedMessage {
\\"\\"\\"\\"\\"\\"
body: String! @deprecated(reason: \\"testapis.deprecation.DeprecatedMessage is mark as deprecated in a *.proto file.\\")
\\"\\"\\"\\"\\"\\"
enum: NotDeprecatedEnum @deprecated(reason: \\"testapis.deprecation.DeprecatedMessage is mark as deprecated in a *.proto file.\\")
}
\\"\\"\\"\\"\\"\\"
type DeprecatedMessageInnerMessage {
\\"\\"\\"\\"\\"\\"
body: String! @deprecated(reason: \\"testapis.deprecation.DeprecatedMessage is mark as deprecated in a *.proto file.\\")
}
\\"\\"\\"\\"\\"\\"
input DeprecatedMessageInnerMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input DeprecatedMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"\\"\\"\\"
enum: NotDeprecatedEnum
}
\\"\\"\\"\\"\\"\\"
enum NotDeprecatedEnum {
\\"\\"\\"\\"\\"\\"
DEPRECATED_BAR @deprecated(reason: \\"testapis.deprecation.NotDeprecatedEnum.DEPRECATED_BAR is mark as deprecated in a *.proto file.\\")
\\"\\"\\"\\"\\"\\"
NOT_DEPRECATED_FOO
}
\\"\\"\\"\\"\\"\\"
type NotDeprecatedMessage {
\\"\\"\\"\\"\\"\\"
body: String! @deprecated(reason: \\"testapis.deprecation.NotDeprecatedMessage.body is mark as deprecated in a *.proto file.\\")
\\"\\"\\"\\"\\"\\"
deprecated_oneof: NotDeprecatedMessageDeprecatedOneof @deprecated(reason: \\"testapis.deprecation.NotDeprecatedMessage.deprecated_oneof is mark as deprecated in a *.proto file.\\")
\\"\\"\\"\\"\\"\\"
enum: DeprecatedEnum @deprecated(reason: \\"testapis.deprecation.DeprecatedEnum is mark as deprecated in a *.proto file.\\")
\\"\\"\\"\\"\\"\\"
not_deprecated_oneof: NotDeprecatedMessageNotDeprecatedOneof
}
\\"\\"\\"\\"\\"\\"
union NotDeprecatedMessageDeprecatedOneof = NotDeprecatedMessageInnerMessage1 | NotDeprecatedMessageInnerMessage2
\\"\\"\\"\\"\\"\\"
type NotDeprecatedMessageInnerMessage1 {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input NotDeprecatedMessageInnerMessage1Input {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
type NotDeprecatedMessageInnerMessage2 {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input NotDeprecatedMessageInnerMessage2Input {
\\"\\"\\"\\"\\"\\"
body: String!
}
\\"\\"\\"\\"\\"\\"
input NotDeprecatedMessageInput {
\\"\\"\\"\\"\\"\\"
body: String!
\\"\\"\\"\\"\\"\\"
enum: DeprecatedEnum
\\"\\"\\"\\"\\"\\"
msg1: NotDeprecatedMessageInnerMessage1Input
\\"\\"\\"\\"\\"\\"
msg2: NotDeprecatedMessageInnerMessage2Input
\\"\\"\\"\\"\\"\\"
msg3: NotDeprecatedMessageInnerMessage1Input
\\"\\"\\"\\"\\"\\"
msg4: NotDeprecatedMessageInnerMessage2Input
}
\\"\\"\\"\\"\\"\\"
union NotDeprecatedMessageNotDeprecatedOneof = NotDeprecatedMessageInnerMessage1 | NotDeprecatedMessageInnerMessage2
type Query {
Expand Down
Loading

0 comments on commit 0cef2b3

Please sign in to comment.