Rest DSL not working with Apicurio generated OpenApi
lordrip opened this issue · 0 comments
lordrip commented
Describe the Bug
Importing a schema generated from Apicurio, the Rest DSL step extension fails with the following message:
error TypeError: cannot use 'in' operator to search for "produces" in "getToken"
Steps to Reproduce the Bug or Issue
- Go to https://red.ht/kaoto-snapshot
- Add a
Rest
step - Import the following OpenApi schema:
OpenApi schema
---
openapi: 3.0.2
info:
title: wso-mock
version: 1.0.0
description: Mocking the WSO2 response
contact:
name: developer
url: http://www.redhat.com
email: sgutierr@redhat.com
license:
name: GNU GPLv3
url: https://www.gnu.org/licenses/gpl.txt
paths:
/token:
summary: getToken
post:
requestBody:
description: Mock request body
content:
application/json:
schema:
type: string
required: true
responses:
"200":
content:
application/json:
examples:
token example:
value:
access_token: 123-456-789
token_type: Bearer
expires_in: 3600
description: returns specific token
operationId: mock1
summary: mock of the token endpoint
/status:
get:
responses:
"200":
description: Get status
operationId: getstatus
components:
schemas:
reponseToken:
description: responseToken
type: object
properties:
body:
description: body
tags:
- name: mock
description: mocking endpoint
Screenshots or Videos
No response
Platform
- OS: [Linux]
- Browser: [Firefox]
- Version: [1.2.1]