You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openapi: "3.0.0"info:
version: 1.0.0title: Swagger Petstorelicense:
name: MITservers:
- url: http://petstore.swagger.io/v1paths:
/pets:
get:
summary: List all petsoperationId: listPetstags:
- petsparameters:
- name: limitin: querydescription: How many items to return at one time (max 100)required: falseschema:
type: integerformat: int32responses:
'200':
description: A paged array of petsheaders:
x-next:
description: A link to the next page of responsesschema:
type: stringcontent:
application/json:
schema:
$ref: "#/components/schemas/Pets"default:
description: unexpected errorcontent:
application/json:
schema:
$ref: "#/components/schemas/Error"post:
summary: Create a petoperationId: createPetstags:
- petsresponses:
'201':
description: Null responsedefault:
description: unexpected errorcontent:
application/json:
schema:
$ref: "#/components/schemas/Error"/pets/{petId}:
get:
summary: Info for a specific petoperationId: showPetByIdtags:
- petsparameters:
- name: petIdin: pathrequired: truedescription: The id of the pet to retrieveschema:
type: stringresponses:
'200':
description: Expected response to a valid requestcontent:
application/json:
schema:
$ref: "#/components/schemas/Pet"default:
description: unexpected errorcontent:
application/json:
schema:
$ref: "#/components/schemas/Error"components:
schemas:
Pet:
required:
- id
- nameproperties:
id:
type: integerformat: int64name:
type: stringtag:
type: stringPets:
type: arrayitems:
$ref: "#/components/schemas/Pet"Error:
required:
- code
- messageproperties:
code:
type: integerformat: int32message:
type: string
Swagger-UI configuration options:
importReactfrom"react";importPropTypesfrom"prop-types";importSwaggerUIfrom"swagger-ui-react";import"swagger-ui-react/swagger-ui.css";importapisfrom"../config/apis";constApi=({ match })=>{constapi=apis.find(a=>a.id===match.params.apiId);return<SwaggerUIurl={api&&api.oasUrl}/>;};Api.propTypes={match: PropTypes.shape({params: PropTypes.shape({apiId: PropTypes.string.isRequired}).isRequired}).isRequired};
export default Api;
importReactfrom"react";import{Navbar,Nav,NavDropdown}from"react-bootstrap";import{BrowserRouter,Route}from"react-router-dom";importApifrom"./pages/Api";import"./App.css";importapisfrom"./config/apis";exportdefault()=>(<BrowserRouterbasename="/api-documentation-app"><Navbarbg="pp-dark"expand="lg"variant="dark"><Navbar.Brandhref="/api-documentation-app">
API Documentation
</Navbar.Brand><Navbar.Togglearia-controls="basic-navbar-nav"/><Navbar.Collapseid="basic-navbar-nav"><NavclassName="mr-auto"><NavDropdowntitle="API"id="basic-nav-dropdown">{apis.map(api=>(<NavDropdown.Itemkey={api.id}href={`/api-documentation-app/api/${api.id}`}>{api.name}</NavDropdown.Item>))}</NavDropdown></Nav></Navbar.Collapse></Navbar><Routepath="/api/:apiId"exactcomponent={Api}/></BrowserRouter>);
Describe the bug you're encountering
When I open API and try a method the response is displayed in very narrow column:
To reproduce...
Steps to reproduce the behavior:
Go to API
Choose any method
Click try it out
Click execute
Error:
Expected behavior
Response details should take all the column width space
Screenshots
Additional context or thoughts
I tweaked the CSS when live in Chrome and it worked.
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
export default Api;
Describe the bug you're encountering
When I open API and try a method the response is displayed in very narrow column:

To reproduce...
Steps to reproduce the behavior:
Expected behavior
Response details should take all the column width space
Screenshots
Additional context or thoughts
I tweaked the CSS when live in Chrome and it worked.
The text was updated successfully, but these errors were encountered: