Skip to content

Commit

Permalink
Remove Doc type and update PluginInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Oct 23, 2024
1 parent 0b398d7 commit 0480a44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 45 deletions.
34 changes: 0 additions & 34 deletions buf/plugin/info/v1/doc.proto

This file was deleted.

2 changes: 1 addition & 1 deletion buf/plugin/info/v1/license.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ message License {

// The raw text of the license.
string text = 2;
// The url that contains the license
// The url that contains the license.
string url = 3 [
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
(buf.validate.field).string.uri = true
Expand Down
13 changes: 3 additions & 10 deletions buf/plugin/info/v1/plugin_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,16 @@ syntax = "proto3";

package buf.plugin.info.v1;

import "buf/plugin/info/v1/doc.proto";
import "buf/plugin/info/v1/license.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go/buf/plugin/info/v1";

// Information about a plugin.
message PluginInfo {
// The url for the plugin.
// A long string providing more details on using the plugin.
//
// This typically is the source control repository that contains the plugin's implementation.
string url = 1 [
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
(buf.validate.field).string.uri = true
];
// This is equivalent to a README.md in effect.
string documentation = 1;

Check failure on line 28 in buf/plugin/info/v1/plugin_info.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "documentation" on message "PluginInfo" changed option "json_name" from "url" to "documentation".

Check failure on line 28 in buf/plugin/info/v1/plugin_info.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" on message "PluginInfo" changed name from "url" to "documentation".
// The license of the plugin.
License license = 2;
// Documentation for a plugin.
Doc doc = 3;
}

Check failure on line 31 in buf/plugin/info/v1/plugin_info.proto

View workflow job for this annotation

GitHub Actions / buf

Previously present field "3" with name "doc" on message "PluginInfo" was deleted without reserving the name "doc".

Check failure on line 31 in buf/plugin/info/v1/plugin_info.proto

View workflow job for this annotation

GitHub Actions / buf

Previously present field "3" with name "doc" on message "PluginInfo" was deleted without reserving the number "3".

0 comments on commit 0480a44

Please sign in to comment.