Skip to content

Any chance for transferring proto comments directly above a field to "$comment" keyword inside the json type? #10

@iguberman

Description

@iguberman

i.e. PROTO:

message TIMESTAMP {
        // Represents seconds of UTC time since Unix epoch
        required int64 seconds = 1;   

        // Non-negative fractions of a second at millisecond resolution
        required int32 millis = 2;        
}

JSON SCHEMA:

"TIMESTAMP": {
      "title": "TIMESTAMP",
      "type": "object",
      "properties": {
        "seconds": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "$comment" : "Represents seconds of UTC time since Unix epoch"
        },
        "millis": {
          "type": "integer",
          "minimum": -2147483648,
          "maximum": 2147483647,
          "$comment" : "Non-negative fractions of a second at millisecond resolution",
        }
      },
      "required": [
        "seconds",
        "millis"
      ]
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions