-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PUT body does not get imported from openapi yaml file #3383
Comments
I was able to reproduce the bug. I'll be happy to work on this issue. 👍 |
Hi @FabianDach, thanks for reporting this. @arshan1019, please go for it! |
I also got problem with PUT Request's body. I redirected to a proxy and find out that. |
Hey @directentis1 @FabianDach @sreelakshmi-bruno I don't think the issue is specific to Here’s my YAML file for reference: openapi: 3.0.3
info:
title: Example API
version: 1.0.0
paths:
/:
patch:
operationId: testPatch
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/test"
put:
operationId: testPut
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/test"
post:
operationId: testPost
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/test"
components:
schemas:
test:
type: object
properties:
id:
format: int64
type: integer
name:
type: string The output: for |
This is the code responsible for resolution of the references. I suspect the Additionally, during the recursive resolution process, if a $ref is encountered again, the function uses the shared Pls correct me if I am wrong. I am new to this stuff. |
@sreelakshmi-bruno @directentis1 @FabianDach After the fix: 2024-11-06.02-07-36.-.Trim.mp4generated .bru files 👉
what do you guys think? |
Hi @arshan1019, the solution looks good! Please raise a PR for this. Thanks! |
Sure |
@sreelakshmi-bruno I have raised the PR -> #3459 |
I have checked the following:
Describe the bug
When importing a collection from an openapi yaml file, the request body will not be imported if the http method is PUT.
.bru file to reproduce the bug
YAML FILE:
POST bru:
PUT .bru:
Screenshots/Live demo link
The text was updated successfully, but these errors were encountered: