We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90dc260 commit 864c180Copy full SHA for 864c180
crates/stackable-operator/src/utils/crds.rs
@@ -8,6 +8,17 @@ pub fn raw_object_schema(_: &mut schemars::gen::SchemaGenerator) -> Schema {
8
.expect("Failed to parse JSON of custom raw object schema")
9
}
10
11
+pub fn raw_object_list_schema(_: &mut schemars::gen::SchemaGenerator) -> Schema {
12
+ serde_json::from_value(serde_json::json!({
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "x-kubernetes-preserve-unknown-fields": true,
17
+ }
18
+ }))
19
+ .expect("Failed to parse JSON of custom raw object list schema")
20
+}
21
+
22
#[cfg(test)]
23
mod tests {
24
use k8s_openapi::api::core::v1::PodTemplateSpec;
0 commit comments