Skip to content

Commit efb8d9d

Browse files
committed
fix: add raw_object_schema to JsonConfigOverrides
1 parent a609ce8 commit efb8d9d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)