Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

adding keep new lines as parameter #179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ protoc \
|`json_fieldnames`| Use JSON field names only |
|`prefix_schema_files_with_package`| Prefix the output filename with package |
|`proto_and_json_fieldnames`| Use proto and JSON field names |
|`keep_new_lines_in_description`| Keep new lines in the description |
|`type_names_with_no_package`| When generating type names and refs, do not include the full package in the type name |


Expand Down
2 changes: 2 additions & 0 deletions internal/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ func (c *Converter) parseGeneratorParameters(parameters string) {
c.Flags.PrefixSchemaFilesWithPackage = true
case "proto_and_json_fieldnames":
c.Flags.UseProtoAndJSONFieldNames = true
case "keep_new_lines_in_description":
c.Flags.KeepNewLinesInDescription = true
case "type_names_with_no_package":
c.Flags.TypeNamesWithNoPackage = true
}
Expand Down