upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

xpls shows error for required fields that are added by a patch #271

Open muvaf opened 1 year ago

muvaf commented 1 year ago

What happened?

When a field is required and added as patch, xpls thinks it's an error.

How can we reproduce it?

    - name: keyring
      base:
        apiVersion: kms.gcp.upbound.io/v1beta1
        kind: KeyRing
        spec:
          forProvider: {}
      patches:
        - type: FromCompositeFieldPath
          fromFieldPath: spec.location
          toFieldPath: spec.forProvider.location
image

What environment did it happen in?

up v0.14.0 VSCode Upbound plugin v0.0.5 Upbound GCP Provider v0.16.0