What am I doing wrong? ```ts export const accessM...
# 💻|contributing
c
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
I'm afraid I can't today, but if it's still relevant tomorrow I can help.
2 Views