Skip to content
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

The request body disappears when the model is live updated #43

Closed
fungiboletus opened this issue Aug 16, 2018 · 4 comments · Fixed by #59
Closed

The request body disappears when the model is live updated #43

fungiboletus opened this issue Aug 16, 2018 · 4 comments · Fixed by #59

Comments

@fungiboletus
Copy link

@fungiboletus fungiboletus commented Aug 16, 2018

The request body disappears when the model is live updated.

How to reproduce

Use the following model and preview it in swagger-viewer. Expand the /test method, it contains a form for the requestBody.
Update the model (add a letter in the summary for example). The form has disappeared.

openapi: 3.0.0
info:
  title: test
  version: "1.0.0"

paths:
  /test:
    post:
      summary: Test request body
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                ttl:
                  type: number
                  format: int64
      responses:
        "204":
          description: "ok"
@fungiboletus fungiboletus changed the title Request body disappear when the model is live updated The request body disappears when the model is live updated Aug 16, 2018
@polarweasel

This comment has been minimized.

Copy link

@polarweasel polarweasel commented Aug 30, 2018

Can confirm this is reproducible, with this and with my own OAS 3 spec.

@polarweasel

This comment has been minimized.

Copy link

@polarweasel polarweasel commented Aug 31, 2018

Is this related to swagger-parser issue 765? If so, a new build might resolve this one.

@thattolleyguy

This comment has been minimized.

Copy link

@thattolleyguy thattolleyguy commented Sep 7, 2018

Any update on this issue? Thanks

@osdiab

This comment has been minimized.

Copy link

@osdiab osdiab commented Jan 1, 2019

I too am experiencing this. Switching to OpenApi designer in the meantime, as it doesn't experience this bug and seems to do what I need as well.

joschiwald added a commit to joschiwald/vs-swagger-viewer that referenced this issue Apr 6, 2019
@arjun-g arjun-g closed this in #59 Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.