From 77fa7caf58d9e88ac7bbe71a53a7f13e272a446c Mon Sep 17 00:00:00 2001 From: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> Date: Fri, 28 Aug 2026 09:10:24 +0800 Subject: [PATCH 1/2] feat: add BOSH Ops File (#6242) Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> --- .gitignore | 2 ++ cli.js | 7 +++- src/api/json/catalog.json | 5 +++ .../bosh-ops-file/missing-type.yaml | 3 ++ .../bosh-ops-file/remove-missing-path.yaml | 2 ++ .../bosh-ops-file/replace-missing-path.yaml | 3 ++ .../bosh-ops-file/replace-missing-value.yaml | 3 ++ src/schemas/json/bosh-ops-file.json | 36 +++++++++++++++++++ src/test/bosh-ops-file/acceptance.yaml | 7 ++++ 9 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 src/negative_test/bosh-ops-file/missing-type.yaml create mode 100644 src/negative_test/bosh-ops-file/remove-missing-path.yaml create mode 100644 src/negative_test/bosh-ops-file/replace-missing-path.yaml create mode 100644 src/negative_test/bosh-ops-file/replace-missing-value.yaml create mode 100644 src/schemas/json/bosh-ops-file.json create mode 100644 src/test/bosh-ops-file/acceptance.yaml diff --git a/.gitignore b/.gitignore index efb4d407dd9..f088fb74cd3 100644 --- a/.gitignore +++ b/.gitignore @@ -123,6 +123,8 @@ ClientBin/ [Ss]tyle[Cc]op.* ~$* *~ +\#* +.#* *.dbmdl *.[Pp]ublish.xml *.pfx diff --git a/cli.js b/cli.js index 7190c499e95..df5e22956a5 100644 --- a/cli.js +++ b/cli.js @@ -194,7 +194,12 @@ async function readJsonFile(/** @type {string} */ filename) { } function isIgnoredFile(/** @type {string} */ file) { - return file === '.DS_Store' + return ( + file === '.DS_Store' || + file.startsWith('#') || + file.startsWith('.#') || + file.endsWith('~') + ) } async function forEachCatalogUrl( diff --git a/src/api/json/catalog.json b/src/api/json/catalog.json index a66f5336354..2a08c2b22d8 100644 --- a/src/api/json/catalog.json +++ b/src/api/json/catalog.json @@ -1360,6 +1360,11 @@ "fileMatch": ["**/packages/*/spec"], "url": "https://www.schemastore.org/bosh-package-spec.json" }, + { + "name": "BOSH Ops File", + "description": "Ops File for BOSH CLI", + "url": "https://www.schemastore.org/bosh-ops-file.json" + }, { "name": "Boyka Framework", "description": "Boyka Framework config file", diff --git a/src/negative_test/bosh-ops-file/missing-type.yaml b/src/negative_test/bosh-ops-file/missing-type.yaml new file mode 100644 index 00000000000..525ab0c6b6a --- /dev/null +++ b/src/negative_test/bosh-ops-file/missing-type.yaml @@ -0,0 +1,3 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-ops-file.json +- path: /name + value: other-cf diff --git a/src/negative_test/bosh-ops-file/remove-missing-path.yaml b/src/negative_test/bosh-ops-file/remove-missing-path.yaml new file mode 100644 index 00000000000..fa06c4d02bc --- /dev/null +++ b/src/negative_test/bosh-ops-file/remove-missing-path.yaml @@ -0,0 +1,2 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-ops-file.json +- type: remove diff --git a/src/negative_test/bosh-ops-file/replace-missing-path.yaml b/src/negative_test/bosh-ops-file/replace-missing-path.yaml new file mode 100644 index 00000000000..07eef92657e --- /dev/null +++ b/src/negative_test/bosh-ops-file/replace-missing-path.yaml @@ -0,0 +1,3 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-ops-file.json +- type: replace + value: other-cf diff --git a/src/negative_test/bosh-ops-file/replace-missing-value.yaml b/src/negative_test/bosh-ops-file/replace-missing-value.yaml new file mode 100644 index 00000000000..c6fecde52b1 --- /dev/null +++ b/src/negative_test/bosh-ops-file/replace-missing-value.yaml @@ -0,0 +1,3 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-ops-file.json +- type: replace + path: /name diff --git a/src/schemas/json/bosh-ops-file.json b/src/schemas/json/bosh-ops-file.json new file mode 100644 index 00000000000..dbd51c51220 --- /dev/null +++ b/src/schemas/json/bosh-ops-file.json @@ -0,0 +1,36 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://www.schemastore.org/bosh-ops-file.json", + "$comment": "Schema built from https://bosh.io/docs/cli-ops-files/.", + "$ref": "#/definitions/Operations", + "title": "BOSH Ops File", + "description": "A collection of operations for interpolating a YAML file.\n\nDocs: https://bosh.io/docs/cli-ops-files/", + "definitions": { + "Operations": { + "type": "array", + "items": { + "anyOf": [ + { "$ref": "#/definitions/Replace" }, + { "$ref": "#/definitions/Remove" } + ] + } + }, + "Replace": { + "type": "object", + "required": ["type", "path", "value"], + "properties": { + "type": { "const": "replace" }, + "path": { "type": "string" }, + "value": {} + } + }, + "Remove": { + "type": "object", + "required": ["type", "path"], + "properties": { + "type": { "const": "remove" }, + "path": { "type": "string" } + } + } + } +} diff --git a/src/test/bosh-ops-file/acceptance.yaml b/src/test/bosh-ops-file/acceptance.yaml new file mode 100644 index 00000000000..cfd13dd1a1f --- /dev/null +++ b/src/test/bosh-ops-file/acceptance.yaml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../schemas/json/bosh-ops-file.json +- type: replace + path: /name + value: other-cf + +- type: remove + path: /key From dda9e8b9629fe5697f7f68853047b7bb7f8e5994 Mon Sep 17 00:00:00 2001 From: Akkal Dhami Date: Fri, 28 Aug 2026 06:56:29 +0545 Subject: [PATCH 2/2] Added servercn configuration schema for backend component registry (#6247) --- src/api/json/catalog.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/json/catalog.json b/src/api/json/catalog.json index 2a08c2b22d8..fbc68e61ce1 100644 --- a/src/api/json/catalog.json +++ b/src/api/json/catalog.json @@ -11121,6 +11121,12 @@ "description": "Workflow definition for the yaml-workflow engine — params, tasks, steps, imports, and flows", "fileMatch": ["**/*.yaml-workflow.yaml", "**/*.yaml-workflow.yml"], "url": "https://raw.githubusercontent.com/orieg/yaml-workflow/main/schema/workflow-schema.json" + }, + { + "name": "servercn", + "description": "Servercn is the backend component registry for node.js inspired by shadcn/ui", + "fileMatch": ["servercn.config.json", "servercn.json"], + "url": "https://www.akkaldhami.com.np/schema/servercn.config.json" } ] }