- |
+ |
{ status }
{
notDocumented ?
@@ -98,7 +98,7 @@ export default class LiveResponse extends React.Component {
: null
}
|
-
+ |
{
isError ?
{`${response.get("name")}: ${response.get("message")}`}
diff --git a/src/core/components/operation-extensions.jsx b/src/core/components/operation-extensions.jsx
index 256f7a52..740fc203 100644
--- a/src/core/components/operation-extensions.jsx
+++ b/src/core/components/operation-extensions.jsx
@@ -13,8 +13,8 @@ export const OperationExt = ({ extensions, getComponent }) => {
- | Field |
- Value |
+ Field |
+ Value |
diff --git a/src/core/components/parameter-row.jsx b/src/core/components/parameter-row.jsx
index 2e36352b..5c4fd67b 100644
--- a/src/core/components/parameter-row.jsx
+++ b/src/core/components/parameter-row.jsx
@@ -65,7 +65,7 @@ export default class ParameterRow extends Component {
onChangeWrapper = (value, isXml = false) => {
let { onChange, rawParam } = this.props
let valueForUpstream
-
+
// Coerce empty strings and empty Immutable objects to null
if(value === "" || (value && value.size === 0)) {
valueForUpstream = null
@@ -126,7 +126,7 @@ export default class ParameterRow extends Component {
getParamKey() {
const { param } = this.props
-
+
if(!param) return null
return `${param.get("name")}-${param.get("in")}`
@@ -214,7 +214,7 @@ export default class ParameterRow extends Component {
return (
- |
+ |
{ param.get("name") }
{ !required ? null : * }
@@ -232,7 +232,7 @@ export default class ParameterRow extends Component {
{ !showExtensions || !extensions.size ? null : extensions.map((v, key) => )}
|
-
+ |
{ param.get("description") ? : null }
{ (bodyParam || !isExecute) && isDisplayParamEnum ?
@@ -291,12 +291,12 @@ export default class ParameterRow extends Component {
}
{
- !bodyParam && isExecute ?
+ !bodyParam && isExecute ?
+ param={param} />
: null
}
diff --git a/src/core/components/parameters/parameters.jsx b/src/core/components/parameters/parameters.jsx
index 91d82395..630d25ec 100644
--- a/src/core/components/parameters/parameters.jsx
+++ b/src/core/components/parameters/parameters.jsx
@@ -139,8 +139,8 @@ export default class Parameters extends Component {
- | Name |
- Description |
+ Name |
+ Description |
diff --git a/src/core/components/response.jsx b/src/core/components/response.jsx
index 4a7e93d5..3a98046d 100644
--- a/src/core/components/response.jsx
+++ b/src/core/components/response.jsx
@@ -140,8 +140,8 @@ export default class Response extends React.Component {
sampleResponse = response.getIn(["examples", activeContentType])
} else {
sampleResponse = schema ? getSampleSchema(
- schema.toJS(),
- activeContentType,
+ schema.toJS(),
+ activeContentType,
{
includeReadOnly: true,
includeWriteOnly: true // writeOnly has no filtering effect in swagger 2.0
@@ -154,10 +154,10 @@ export default class Response extends React.Component {
return (
- |
+ |
{ code }
|
-
+ |
@@ -237,7 +237,7 @@ export default class Response extends React.Component {
) : null}
|
- {isOAS3 ?
+ {isOAS3 ? |
{ links ?
links.toSeq().map((link, key) => {
return
diff --git a/src/core/components/responses.jsx b/src/core/components/responses.jsx
index 474bfd92..29de3a79 100644
--- a/src/core/components/responses.jsx
+++ b/src/core/components/responses.jsx
@@ -117,8 +117,8 @@ export default class Responses extends React.Component {
- | Code |
- Description |
+ Code |
+ Description |
{ specSelectors.isOAS3() ? Links | : null }
diff --git a/src/core/plugins/oas3/components/request-body.jsx b/src/core/plugins/oas3/components/request-body.jsx
index 4b287f12..bf714c21 100644
--- a/src/core/plugins/oas3/components/request-body.jsx
+++ b/src/core/plugins/oas3/components/request-body.jsx
@@ -139,7 +139,7 @@ const RequestBody = ({
const isFile = type === "string" && (format === "binary" || format === "base64")
return
- |
+ |
{ key }
{ !required ? null : * }
@@ -153,7 +153,7 @@ const RequestBody = ({
{ prop.get("deprecated") ? "deprecated": null }
|
-
+ |
{isExecute ? crashing in Parameters", function() {
cy.visit("http://localhost:3230/?url=/documents/bugs/5452/openapi.yaml")
.get("#operations-default-get_endpoint")
.click()
- .get(".parameters > tbody > tr > .col > select")
+ .get(".parameters > tbody > tr > .parameters-col_description > select")
.select("")
- .get(".parameters > tbody > tr > .col > select")
+ .get(".parameters > tbody > tr > .parameters-col_description > select")
.should("exist")
.select("fruit")
- .get(".parameters > tbody > tr > .col > select")
+ .get(".parameters > tbody > tr > .parameters-col_description > select")
.should("exist")
})
})
@@ -22,12 +22,12 @@ describe("#5452: crashing in Parameters", function() {
cy.visit("http://localhost:3230/?url=/documents/bugs/5452/swagger.yaml")
.get("#operations-default-get_endpoint")
.click()
- .get(".parameters > tbody > tr > .col > select")
+ .get(".parameters > tbody > tr > .parameters-col_description > select")
.select("")
- .get(".parameters > tbody > tr > .col > select")
+ .get(".parameters > tbody > tr > .parameters-col_description > select")
.should("exist")
.select("fruit")
- .get(".parameters > tbody > tr > .col > select")
+ .get(".parameters > tbody > tr > .parameters-col_description > select")
.should("exist")
})
})
| | | |