Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16741

camel-yaml-dsl - Yaml schema validation error for rest endpoints

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Information Provided
    • Affects Version/s: None
    • Fix Version/s: 3.11.0
    • Component/s: camel-yaml-dsl
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The YAML validator schema shows an error for theĀ verb attribute for an apparently valid rest route:

      Incorrect type. Expected "string"

       # camel-k: language=yaml
      - rest:
          binding-mode: json
          verb:
            - method: put
              uri: "/songs/{songId}"
              consumes: application/json
              produces: application/json
              param:
                - name: songId
                  type: path
                  dataType: string
                  required: true
                - name: body
                  type: bod
                  required: true
              steps:
                - to:
                    uri: "log:foo"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ruromero Ruben Romero Montes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: