@rogatio/cli 6.20.4 → 6.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23899,13 +23899,16 @@ function generatePacScript(routes, endpoint, options) {
23899
23899
  ""
23900
23900
  ].join("\n");
23901
23901
  }
23902
+ function schemaDiagnosticCode(keyword) {
23903
+ return keyword.startsWith("schema.") ? keyword : `schema.${keyword}`;
23904
+ }
23902
23905
  function diagnoseProjectData(projectData) {
23903
23906
  const diagnostics = [];
23904
23907
  const schemaResult = validateProjectDetailed(projectData);
23905
23908
  if (!schemaResult.valid) {
23906
23909
  for (const error of schemaResult.errors) {
23907
23910
  diagnostics.push({
23908
- code: `schema.${error.keyword}`,
23911
+ code: schemaDiagnosticCode(error.keyword),
23909
23912
  severity: "error",
23910
23913
  path: error.instancePath || "/",
23911
23914
  message: error.message,
@@ -33764,7 +33767,7 @@ async function runtimeHostCommand(args, options = {}) {
33764
33767
  if (!schemaResult.valid) {
33765
33768
  for (const issue of schemaResult.errors) {
33766
33769
  console.error(
33767
- `${issue.instancePath || "/"}/: ${issue.message} (schema.${issue.keyword})`
33770
+ `${issue.instancePath || "/"}/: ${issue.message} (${schemaDiagnosticCode(issue.keyword)})`
33768
33771
  );
33769
33772
  }
33770
33773
  return 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogatio/cli",
3
- "version": "6.20.4",
3
+ "version": "6.20.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Local-first browser request and response rules — editor host, file verification, test runner, and runtime dispatch.",