Skip to content

Can you add features? Can you add comments when parsing a file? #2

@Aaron009

Description

@Aaron009
// SearchRequest note
message SearchRequest {
  string query = 1;         // note1
  int32 page_number = 2;    // note2
  int32 result_per_page = 3;  // note3
  repeated string snippets = 4; // note4
  Corpus corpus = 5;
}

// Parsing return time
// example
{
	"type": "field",
	"typename": "map",
	"key": "int32",
	"value": "string",
	"name": "bla",
    "note": "note 4"    // this add
	"fieldNo": 1,
	"opts": {}
}

To give a suggestion, it is best to put an example.proto file in the library, so that it is easy to understand.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions