summaryrefslogtreecommitdiff
path: root/vendor/github.com/google/yamlfmt/schema.json
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-15 16:37:08 -0600
committermo khan <mo@mokhan.ca>2025-07-17 16:30:22 -0600
commit45df4d0d9b577fecee798d672695fe24ff57fb1b (patch)
tree1b99bf645035b58e0d6db08c7a83521f41f7a75b /vendor/github.com/google/yamlfmt/schema.json
parentf94f79608393d4ab127db63cc41668445ef6b243 (diff)
feat: migrate from Cedar to SpiceDB authorization system
This is a major architectural change that replaces the Cedar policy-based authorization system with SpiceDB's relation-based authorization. Key changes: - Migrate from Rust to Go implementation - Replace Cedar policies with SpiceDB schema and relationships - Switch from envoy `ext_authz` with Cedar to SpiceDB permission checks - Update build system and dependencies for Go ecosystem - Maintain Envoy integration for external authorization This change enables more flexible permission modeling through SpiceDB's Google Zanzibar inspired relation-based system, supporting complex hierarchical permissions that were difficult to express in Cedar. Breaking change: Existing Cedar policies and Rust-based configuration will no longer work and need to be migrated to SpiceDB schema.
Diffstat (limited to 'vendor/github.com/google/yamlfmt/schema.json')
-rw-r--r--vendor/github.com/google/yamlfmt/schema.json93
1 files changed, 93 insertions, 0 deletions
diff --git a/vendor/github.com/google/yamlfmt/schema.json b/vendor/github.com/google/yamlfmt/schema.json
new file mode 100644
index 00000000..65f5038f
--- /dev/null
+++ b/vendor/github.com/google/yamlfmt/schema.json
@@ -0,0 +1,93 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://raw.githubusercontent.com/google/yamlfmt/main/schema.json",
+ "title": "yamlfmt config file",
+ "description": "The yamlfmt config file. For details, see https://github.com/google/yamlfmt/blob/main/docs/config-file.md.",
+ "type": "object",
+ "properties": {
+ "line_ending": {
+ "type": "string",
+ "enum": [
+ "lf",
+ "crlf"
+ ],
+ "default": "lf",
+ "description": "Parse and write the file with 'lf' or 'crlf' line endings. This global setting will override any formatter line_ending options."
+ },
+ "doublestar": {
+ "type": "boolean",
+ "default": false,
+ "description": "Use doublestar for include and exclude paths. (This was the default before 0.7.0)"
+ },
+ "continue_on_error": {
+ "type": "boolean",
+ "default": false,
+ "description": "Continue formatting and don't exit with code 1 when there is an invalid yaml file found."
+ },
+ "include": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "The paths for the command to include for formatting. See Specifying Paths for more details."
+ },
+ "exclude": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "The paths for the command to exclude from formatting. See Specifying Paths for more details."
+ },
+ "gitignore_excludes": {
+ "type": "boolean",
+ "default": false,
+ "description": "Use gitignore files for exclude paths. This is in addition to the patterns from the exclude option."
+ },
+ "gitignore_path": {
+ "type": "string",
+ "default": ".gitignore",
+ "description": "The path to the gitignore file to use."
+ },
+ "regex_exclude": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "Regex patterns to match file contents for, if the file content matches the regex the file will be excluded. Use Go regexes."
+ },
+ "extensions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "The extensions to use for standard mode path collection. See Specifying Paths for more details."
+ },
+ "formatter": {
+ "type": "object",
+ "default": {
+ "type": "basic"
+ },
+ "description": "Formatter settings. See Formatter for more details.",
+ "properties": {
+ "type": {
+ "type": "string",
+ "default": "basic"
+ }
+ }
+ },
+ "output_format": {
+ "type": "string",
+ "enum": [
+ "default",
+ "line"
+ ],
+ "default": "default",
+ "description": "The output format to use. See Output docs for more details."
+ }
+ },
+ "additionalProperties": false
+}