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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • 3.11.0
    • camel-yaml-dsl
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: