Skip to content

Commit

Permalink
fix: make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mmanciop authored and bripkens committed Nov 8, 2023
1 parent 2c0cb4a commit 8048cd6
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/otelbin/src/components/monaco-editor/JSONSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export const schema: JSONSchemaType<IOtelConfig> = {
type: "array",
minItems: 1,
errorMessage: {
minItems: "The pipeline must reference at least one receiver, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
minItems:
"The pipeline must reference at least one receiver, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
},
},
processors: {
Expand All @@ -85,15 +86,18 @@ export const schema: JSONSchemaType<IOtelConfig> = {
type: "array",
minItems: 1,
errorMessage: {
minItems: "The pipeline must reference at least one exporter, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
minItems:
"The pipeline must reference at least one exporter, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
},
},
},
required: ["receivers", "exporters"],
errorMessage: {
required: {
receivers: "The pipeline must reference at least one receiver, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
exporters: "The pipeline must reference at least one exporter, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
receivers:
"The pipeline must reference at least one receiver, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
exporters:
"The pipeline must reference at least one exporter, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
},
},
},
Expand All @@ -104,7 +108,8 @@ export const schema: JSONSchemaType<IOtelConfig> = {
},
required: ["pipelines"],
errorMessage: {
required: "At least one pipeline must be specified, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
required:
"At least one pipeline must be specified, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
type: "The 'pipeline' entry must be a map, see https://opentelemetry.io/docs/collector/configuration/#pipelines",
},
},
Expand All @@ -118,7 +123,8 @@ export const schema: JSONSchemaType<IOtelConfig> = {
},
errorMessage: {
type: "The configuration must be a map, see https://opentelemetry.io/docs/collector/configuration",
required: "The configuration must specify at least the 'receivers', 'exporters, and 'service' entries, see https://opentelemetry.io/docs/collector/configuration",
required:
"The configuration must specify at least the 'receivers', 'exporters, and 'service' entries, see https://opentelemetry.io/docs/collector/configuration",
},
required: ["service", "receivers", "exporters"],
};

0 comments on commit 8048cd6

Please sign in to comment.