Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16749

Unrecognized field "type" in KameletSpec in YAKS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • Camel-K-GA
    • None
    • Camel-K
    • False
    • False
    • % %
    • Todo
    • Undefined

    Description

      A new element (type: object) was added to some kamelets definitions:
      https://github.com/openshift-integration/kamelet-catalog/commit/336617604074c648b5b8a62727e9489b2e56e915#diff-df448fab015052f87f6a2b89e0216b4fd983bc1ade7ca9963f5814f512373c27

      This change was not propagate KameletSpec in YAKS:
      https://github.com/citrusframework/yaks/blob/main/java/steps/yaks-camel-k/src/main/java/org/citrusframework/yaks/camelk/model/KameletSpec.java

      Because of that testing of kamelet-catalog failed with following stacktrace:

      [test-salesforce-binding-c31s0j3e96t2gjch4hv0-rf5c5 test-1] Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "type" (class org.citrusframework.yaks.camelk.model.KameletSpec$Definition), not marked as ignorable (4 known properties: "title", "properties", "description", "required"])
      [test-salesforce-binding-c31s0j3e96t2gjch4hv0-rf5c5 test-1]  at [Source: (BufferedInputStream); line: 1, column: 13900] (through reference chain: org.citrusframework.yaks.camelk.model.Kamelet["spec"]->org.citrusframework.yaks.camelk.model.KameletSpec["definition"]->org.citrusframework.yaks.camelk.model.KameletSpec$Definition["type"])
      [test-salesforce-binding-c31s0j3e96t2gjch4hv0-rf5c5 test-1] 	at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61)
      

      Attachments

        Activity

          People

            nicolaferraro Nicola Ferraro (Inactive)
            mmajerni@redhat.com Mario Majernik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: