Skip to content

Wrong input for text/plain content type and numeric schema type #897

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

Closed
vpikus opened this issue Mar 1, 2023 · 1 comment
Closed

Wrong input for text/plain content type and numeric schema type #897

vpikus opened this issue Mar 1, 2023 · 1 comment

Comments

@vpikus
Copy link

vpikus commented Mar 1, 2023

Hi,

I'm using RapiDoc 9.3.4 and I am faced with the following issue:
RapiDoc renderers empty select input in the request body that doesn't allow to enter any value for the following content schema:

"content": {
  "text/plain": {
    "schema": {
      "type": "integer",
      "format": "int32"
    }
  }
}

RapiDoc UI

But if upload the same openapi file to the swagger.io, the swagger.io rendered editable text area:
Swagger IO

Is there any chance to fix the rendering of request body input in the same way as swagger.io does?

Full openapi.json

@rps-v
Copy link

rps-v commented Mar 6, 2023

Same thing happens with application/json and array schema.

"requestBody": {
  "content": {
    "application/json": {
      "schema": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  }
}

@mrin9 mrin9 closed this as completed in 42e5d96 Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants