calm-family-29323
05/16/2023, 12:55 PMts
export const accessModesSchema = createSchema({
name: "accessModesSchema",
keys: {
accessModes: joi
.sparseArray()
... // other joi stuff here
),
},
})
export const baseVolumeSpecSchema = () =>
baseModuleSpecSchema().keys({
...accessModesSchema(),
})
This results me with Error: Schema can only contain plain objects
when attempting to render the docsspec.accessModes
and spec.spec.accessModes
fields which I'm trying to unify into the ladder.
I can't get the schema to work though. Here's my current attempt: https://github.com/garden-io/garden/pull/4286/files
Notice how the rendered schema now has two spec.spec.accessModes
fields.alert-helicopter-61082
05/16/2023, 3:13 PM