Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various buf updates #4052

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/schemas/json/buf.gen.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@
"else": {
"$comment": "v2 properties",
"properties": {
"clean": {
"$comment": "https://buf.build/docs/configuration/v2/buf-gen-yaml#clean",
"description": "Optional. When set to true, buf generate deletes all directories, zip files, and/or jar files specified by the out field for each plugin before running code generation.",
"type": "boolean",
"default": false
},
"managed": {
"$comment": "https://buf.build/docs/configuration/v2/buf-gen-yaml#managed",
"description": "The managed key is used to enable managed mode, an advanced feature that allows you to specify Protobuf file and field options without defining them in the Protobuf files. See Managed mode for details about default behavior and accepted values for each available option key.",
Expand Down Expand Up @@ -517,9 +523,8 @@
},
"inputs": {
"$comment": "https://buf.build/docs/configuration/v2/buf-gen-yaml#inputs",
"description": "Required. A list of inputs to generate code for.",
"description": "Optional. A list of inputs to generate code for.",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
Expand Down
18 changes: 16 additions & 2 deletions src/schemas/json/buf.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/buf.json",
"$comment": "https://buf.build/docs/configuration/v1/buf-yaml",
"$comment": "https://buf.build/docs/configuration/v2/buf-yaml",
"$defs": {
"lint-rule": {
"type": "string",
"description": "https://buf.build/docs/lint/rules",
"enum": [
"STANDARD",
"DEFAULT",
"BASIC",
"MINIMAL",
Expand Down Expand Up @@ -142,6 +143,12 @@
"type": "object",
"additionalProperties": false,
"properties": {
"STANDARD": {
"type": "array",
"items": {
"type": "string"
}
},
"DEFAULT": {
"type": "array",
"items": {
Expand Down Expand Up @@ -886,7 +893,7 @@
"properties": {
"use": {
"$comment": "https://buf.build/docs/configuration/v2/buf-yaml#use",
"description": "Optional. Lists the categories and/or specific rules to use. The DEFAULT category is used if lint is unset.",
"description": "Optional. Lists the categories and/or specific rules to use. The STANDARD category is used if lint is unset.",
"type": "array",
"items": {
"$ref": "#/$defs/lint-rule"
Expand Down Expand Up @@ -1024,6 +1031,13 @@
"description": "The build key is optional, and is used to control how buf builds modules.",
"type": "object",
"properties": {
"includes": {
"description": "Optional. Lists directories within this directory to include in Protobuf file discovery. Only directories added to this list are included in Buf operations.",
"type": "array",
"items": {
"type": "string"
}
},
"excludes": {
"description": "The excludes key is optional, and lists directories to ignore from .proto file discovery. Any directories added to this list are completely skipped and excluded in the module. We do not recommend using this option in general, however in some situations it is unavoidable.",
"type": "array",
Expand Down
Loading