Skip to content

Commit 5218842

Browse files
authored
fix: add raw_object_schema to JsonConfigOverrides (#1242)
* fix: add raw_object_schema to JsonConfigOverrides * docs: adapt changelog
1 parent a609ce8 commit 5218842

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

crates/stackable-operator/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Added
8+
9+
- Add `raw_object_schema` to v2 `JsonConfigOverrides` ([#1242]).
10+
11+
[#1242]: https://github.com/stackabletech/operator-rs/pull/1242
12+
713
## [0.113.1] - 2026-07-06
814

915
### Added

crates/stackable-operator/src/v2/config_overrides.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ where
7878
pub enum JsonConfigOverrides {
7979
/// Can be set to arbitrary YAML content, which is converted to JSON and used as
8080
/// [RFC 7396](https://datatracker.ietf.org/doc/html/rfc7396) JSON merge patch.
81+
#[schemars(schema_with = "raw_object_schema")]
8182
JsonMergePatch(serde_json::Value),
8283

8384
/// An [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902) JSON patch.
@@ -92,9 +93,11 @@ pub enum JsonConfigOverrides {
9293
/// or
9394
///
9495
/// `- {"op": "add", "path": "/0/happy", "value": true}`
96+
#[schemars(schema_with = "raw_object_schema")]
9597
JsonPatch(json_patch::Patch),
9698

9799
/// Override the entire config file with the specified JSON value.
100+
#[schemars(schema_with = "raw_object_schema")]
98101
UserProvided(serde_json::Value),
99102

100103
/// Sequence of [`JsonConfigOverrides`] starting with the latest patch

0 commit comments

Comments
 (0)