Skip to content

Commit

Permalink
Update proto comment of related_locations
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Jun 14, 2024
1 parent 1763917 commit 34a54e5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
9 changes: 6 additions & 3 deletions proto/rdf/jsonschema/Diagnostic.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"items": {
"$ref": "#/definitions/reviewdog.rdf.RelatedLocation"
},
"type": "array"
"type": "array",
"description": "Related locations for this diagnostic. Optional."
}
},
"additionalProperties": true,
Expand Down Expand Up @@ -134,11 +135,13 @@
"reviewdog.rdf.RelatedLocation": {
"properties": {
"message": {
"type": "string"
"type": "string",
"description": "Explanation of this related location. Optional."
},
"location": {
"$ref": "#/definitions/reviewdog.rdf.Location",
"additionalProperties": true
"additionalProperties": true,
"description": "Required."
}
},
"additionalProperties": true,
Expand Down
9 changes: 6 additions & 3 deletions proto/rdf/jsonschema/DiagnosticResult.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
"items": {
"$ref": "#/definitions/reviewdog.rdf.RelatedLocation"
},
"type": "array"
"type": "array",
"description": "Related locations for this diagnostic. Optional."
}
},
"additionalProperties": true,
Expand Down Expand Up @@ -174,11 +175,13 @@
"reviewdog.rdf.RelatedLocation": {
"properties": {
"message": {
"type": "string"
"type": "string",
"description": "Explanation of this related location. Optional."
},
"location": {
"$ref": "#/definitions/reviewdog.rdf.Location",
"additionalProperties": true
"additionalProperties": true,
"description": "Required."
}
},
"additionalProperties": true,
Expand Down
6 changes: 4 additions & 2 deletions proto/rdf/jsonschema/RelatedLocation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"RelatedLocation": {
"properties": {
"message": {
"type": "string"
"type": "string",
"description": "Explanation of this related location. Optional."
},
"location": {
"$ref": "#/definitions/reviewdog.rdf.Location",
"additionalProperties": true
"additionalProperties": true,
"description": "Required."
}
},
"additionalProperties": true,
Expand Down
9 changes: 7 additions & 2 deletions proto/rdf/reviewdog.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions proto/rdf/reviewdog.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ message Diagnostic {
// Optional.
string original_output = 7;

// Related locations for this diagnostic.
// Optional.
repeated RelatedLocation related_locations = 8;
}

Expand All @@ -85,8 +87,11 @@ message Location {
}

message RelatedLocation {
// Explanation of this related location.
// Optional.
string message = 1;

// Required.
Location location = 2;
}

Expand Down

0 comments on commit 34a54e5

Please sign in to comment.