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

Rendering issue with longer strings in a code block of requestBody #2668

Open
benjefferies opened this issue Mar 4, 2025 · 0 comments
Open

Comments

@benjefferies
Copy link

Describe the bug
When adding a code block to a requestBody parameter that contains a longer string the rendering of the columns overlap

Expected behavior
Code block is scrollable and columns maintain size

openapi: 3.0.0
info:
  title: Simple API
  version: 1.0.0
paths:
  /api/v1/studies/:
    post:
      summary: Create a draft study
      description: Create a new draft study
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateStudy"
      responses:
        "201":
          description: Created
components:
  schemas:
    CreateStudy:
      type: object
      required:
        - name
        - external_study_url
        - prolific_id_option
        - completion_codes
        - reward
        - total_available_places
      properties:
        is_external_study_url_secure:
          type: boolean
          description: |-
            ```json
              {
                "name": "My study",
                "external_study_url": "https://example.com/path/path2/path3/path4",
                "prolific_id_option": "required",
                "completion_codes": ["abc123"],
                "reward": 1.0,
                "total_available_places": 100
              }
            ```

Screenshots

Image

Additional context
Reducing external_study_url characters fixes rendering issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant