Open markphillips100 opened 7 months ago
Not sure if this is related but I also don't see an actual schema defined when a Crossplane CompositeResourceDefinition CRD is imported either. The CRD defines openAPIV3Schema
as shown here and yet the cue type produces openApiV3Schema?: {}
which again causes mod validation errors.
Pretty new to timoni and cue so still learning. I've a validation issue that occurs from running
timoni mod vet
related to the following setup. Whilst it is a schema error, I am uncertain if the CRD itself is at fault or the underlying cue generation.The Problem I see pretty much exactly what is described in issue #278 . Generated properties for type "object" result in a
{}
rather than{...}
being assigned. I only conclude this as I'm using this repo as a reference and its generated object properties are using the latter syntax with no schema errors. Example hereMy Setup
timoni version
: api: timoni.sh/v1alpha1 client: 0.19.0 cue: 0.7.0timoni mod vendor crds -f <repo>\cluster\crds\apiextensions.crossplane.io_composition.yaml
input?: {}
in the generated schema.CRD defines "input" as:
Minimal schema to reproduce error: