@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.
- package/dist/node/index.js +5 -2
- package/package.json +1 -1
package/dist/node/index.js
CHANGED
|
@@ -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:
|
|
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} (
|
|
33770
|
+
`${issue.instancePath || "/"}/: ${issue.message} (${schemaDiagnosticCode(issue.keyword)})`
|
|
33768
33771
|
);
|
|
33769
33772
|
}
|
|
33770
33773
|
return 1;
|
package/package.json
CHANGED