-
-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When parsing a YAML string containing query parameters described with 'content' instead of 'schema' directly I get an error:
Parameter.__init__() missing 1 required positional argument: 'schema'
To Reproduce
Steps to reproduce the behavior:
- Using the following schema:
openapi: 3.0.0
info:
title: Example API
version: 1.0.0
paths:
/path1:
get:
summary: GET operation on path1
parameters:
- in: query
name: param1
content:
application/json:
schema:
type: string
description: First parameter for path1
- in: query
name: param2
schema:
type: integer
description: Second parameter for path1
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
message:
type: string
- Using:
openApiParser(spec_string=YAML_STRING) - See error:
Parameter.__init__() missing 1 required positional argument: 'schema'
Expected behavior
This syntax should be supported
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working