https://garden.io logo
#💻|dev
Title
# 💻|dev
c

calm-family-29323

05/16/2023, 12:55 PM
What am I doing wrong?
Copy code
ts
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 docs
anybody wants to pair on this it's driving me mad
I made got the schema to work using ordinary joi notation but now I have garden complaining about validation failures Edit: ignore this msg
@alert-helicopter-61082 could I request some help here, I'm really pulling hairs and will end up bald otherwise. I think it'd be easiest to have a 10min pairing session but here's the gist: Currently PVC deploys have a duplicate
spec.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.
a

alert-helicopter-61082

05/16/2023, 3:13 PM
I'm afraid I can't today, but if it's still relevant tomorrow I can help.