Skip to content

Commit

Permalink
enhance: ajv error messages update
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshan Ghojoghi committed Nov 8, 2023
1 parent 8b970ec commit bffedb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/otelbin/src/components/monaco-editor/JSONSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const schema: JSONSchemaType<IOtelConfig> = {
},
required: ["pipelines"],
errorMessage: {
required: "pipelines property is required",
required: "the “service” configuration must define pipelines",
type: "service property must be yaml map/dictionary",
},
},
Expand All @@ -118,7 +118,7 @@ export const schema: JSONSchemaType<IOtelConfig> = {
},
errorMessage: {
type: "Must be a valid OpenTelemetry Collector configuration",
required: "service property is required",
required: "the configuration must specify a “service” entry to define pipelines",
},
required: ["service"],
};

0 comments on commit bffedb7

Please sign in to comment.