buf.plugin.yaml
A buf.plugin.yaml file captures metadata about the plugin. It includes mandatory and optional fields that are displayed on the individual plugin page and the BSR plugin. Documentation: https://buf.build/plugins
| Type | object |
|---|---|
| File match |
buf.plugin.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/buf-plugin-yaml/latest.json |
| Source | https://www.schemastore.org/buf.plugin.json |
Validate with Lintel
npx @lintel/lintel check
A buf.plugin.yaml file captures metadata about the plugin. It includes mandatory and optional fields that are displayed on the individual plugin page and the BSR plugin homepage at https://buf.build/plugins.
Properties
The YAML configuration version, must be v1.
The plugin identity with format {remote}/{organization_name}/{plugin_name}.
The plugin version with formatv{semver}, the v prefix is required and the version must be valid semantic versioning.
URL to the source code of the Protobuf plugin.
Description of the plugin.
The output language types generated by the plugin. See the PluginLanguage enum for existing languages. Open a GitHub issue in the Buf CLI (https://github.com/bufbuild/buf) if the output language isn't found for a plugin.
The license id for the plugin from https://spdx.org/licenses.
The URL to the integration guide for the plugin.
A list of dependencies on other plugins used by Generated SDKs.
Configuration to enable a plugin for use with Generated SDKs.
9 nested properties
Options supplied to the plugin when generating code for the SDK.
Generated SDK configuration for a Go plugin.
2 nested properties
The minimum Go version required by the plugin (e.g. 1.19), used as the go directive in the go.mod file. See https://go.dev/ref/mod#go-mod-file-go.
A list of Go module requirements. Each requirement corresponds to a require directive in the go.mod file. See https://go.dev/ref/mod#go-mod-file-require.
Generated SDK configuration for a JavaScript/TypeScript plugin.
3 nested properties
One of either module or commonjs.
The suffix used in the generated files and their imported dependencies (supported by @bufbuild/protoplugin (https://www.npmjs.com/package/@bufbuild/protoplugin) plugins).
NPM package dependencies for the Generated SDK.
Generated SDK configuration for a Java/Kotlin plugin.
3 nested properties
2 nested properties
Java compiler settings.
Kotlin compiler settings.
Runtime dependencies of the generated Java/Kotlin code (in GAV format).
Configures additional supported runtimes.
Generated SDK configuration for a Python plugin.
3 nested properties
One of runtime or stub-only.
Runtime dependencies of the generated code.
Specifies the Requires-Python of the generated package.
Generated SDK configuration for a Swift plugin.
1 nested properties
Dependencies of the generated code.
Generated SDK configuration for a Rust plugin.
2 nested properties
The rust-version set for the generated crate.
Crates.io dependencies for the Generated SDK.
Generated SDK configuration for a C# plugin.
2 nested properties
The target frameworks the generated package supports.
nuget.org dependencies for the Generated SDK.
Generated SDK configuration for a CMake plugin.