fix(addons): netprobe config schema to JSON Schema draft-07 (#3425) #3513

Merged
mfreeman451 merged 1 commit from fix/netprobe-config-schema-draft07 into staging 2026-06-02 06:03:18 +00:00
Owner

Why

During the netprobe native-add-on e2e, creating an AddonAssignment crashed:

ExJsonSchema.Schema.UnsupportedSchemaVersionError: only draft 4, 6, and 7 are supported
  ConfigSchema.validate_params → AddonAssignmentParams.validate

The control-plane add-on params validator (ex_json_schema 0.11.2) supports only
JSON Schema draft 4/6/7, but addons/netprobe/config.schema.json declared
draft 2020-12 (with $defs). The schema fails to resolve, so any netprobe
assignment is blocked. The working add-ons (bumblebee-scan, endpoint-inventory)
already use draft-07 — netprobe was the outlier.

What

Convert netprobe's schema to draft-07 (content otherwise unchanged):

  • $schemahttp://json-schema.org/draft-07/schema#
  • $defsdefinitions
  • $ref: #/$defs/dpi#/definitions/dpi

Unblocks the netprobe AddonAssignment validation. (The already-imported demo
package's config_schema was hot-patched to the same draft-07 to proceed with the
running e2e; future imports pick this up from the bundle.)

🤖 Generated with Claude Code

## Why During the netprobe native-add-on e2e, creating an `AddonAssignment` crashed: ``` ExJsonSchema.Schema.UnsupportedSchemaVersionError: only draft 4, 6, and 7 are supported ConfigSchema.validate_params → AddonAssignmentParams.validate ``` The control-plane add-on params validator (`ex_json_schema 0.11.2`) supports only JSON Schema draft 4/6/7, but `addons/netprobe/config.schema.json` declared **draft 2020-12** (with `$defs`). The schema fails to resolve, so *any* netprobe assignment is blocked. The working add-ons (`bumblebee-scan`, `endpoint-inventory`) already use draft-07 — netprobe was the outlier. ## What Convert netprobe's schema to **draft-07** (content otherwise unchanged): - `$schema` → `http://json-schema.org/draft-07/schema#` - `$defs` → `definitions` - `$ref: #/$defs/dpi` → `#/definitions/dpi` Unblocks the netprobe `AddonAssignment` validation. (The already-imported demo package's `config_schema` was hot-patched to the same draft-07 to proceed with the running e2e; future imports pick this up from the bundle.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(addons): netprobe config schema to JSON Schema draft-07 (#3425)
Some checks failed
Secret Scan / gitleaks (pull_request) Successful in 24s
lint / lint (pull_request) Successful in 59s
lint / lint (push) Successful in 1m51s
Golang Tests / test-go (push) Successful in 1m54s
CI / build (pull_request) Failing after 8m59s
2c06321100
The control-plane add-on params validator (ex_json_schema 0.11.2) supports
only JSON Schema draft 4/6/7, but addons/netprobe/config.schema.json declared
draft 2020-12 (with $defs). AddonAssignmentParams crashed with
UnsupportedSchemaVersionError when validating params, blocking ANY netprobe
AddonAssignment (the assign step of the e2e).

Convert to draft-07 to match the working add-ons (bumblebee-scan,
endpoint-inventory): $schema -> draft-07, $defs -> definitions, $ref ->
#/definitions/dpi. Schema content is otherwise unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mfreeman451 left a comment

lgtm

lgtm
mfreeman451 deleted branch fix/netprobe-config-schema-draft07 2026-06-02 06:03:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar!3513
No description provided.