diff --git a/src/schemas/json/buf.gen.json b/src/schemas/json/buf.gen.json index 4b836b09022..48e373e4067 100644 --- a/src/schemas/json/buf.gen.json +++ b/src/schemas/json/buf.gen.json @@ -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.", @@ -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, diff --git a/src/schemas/json/buf.json b/src/schemas/json/buf.json index 34c042b597c..be140c61dca 100644 --- a/src/schemas/json/buf.json +++ b/src/schemas/json/buf.json @@ -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", @@ -142,6 +143,12 @@ "type": "object", "additionalProperties": false, "properties": { + "STANDARD": { + "type": "array", + "items": { + "type": "string" + } + }, "DEFAULT": { "type": "array", "items": { @@ -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" @@ -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",