Merge branch 'master' into master
This commit is contained in:
@@ -22,7 +22,7 @@ The OpenAPI Specification has undergone 5 revisions since initial creation in 20
|
|||||||
|
|
||||||
Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
|
Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
|
||||||
------------------ | ------------ | -------------------------- | -----
|
------------------ | ------------ | -------------------------- | -----
|
||||||
3.4.5 | 2017-11-03 | 2.0, 3.0 | [tag v3.4.5](https://github.com/swagger-api/swagger-ui/tree/v3.4.5)
|
3.5.0 | 2017-11-23 | 2.0, 3.0 | [tag v3.5.0](https://github.com/swagger-api/swagger-ui/tree/v3.5.0)
|
||||||
3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21)
|
3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21)
|
||||||
2.2.10 | 2017-01-04 | 1.1, 1.2, 2.0 | [tag v2.2.10](https://github.com/swagger-api/swagger-ui/tree/v2.2.10)
|
2.2.10 | 2017-01-04 | 1.1, 1.2, 2.0 | [tag v2.2.10](https://github.com/swagger-api/swagger-ui/tree/v2.2.10)
|
||||||
2.1.5 | 2016-07-20 | 1.1, 1.2, 2.0 | [tag v2.1.5](https://github.com/swagger-api/swagger-ui/tree/v2.1.5)
|
2.1.5 | 2016-07-20 | 1.1, 1.2, 2.0 | [tag v2.1.5](https://github.com/swagger-api/swagger-ui/tree/v2.1.5)
|
||||||
|
|||||||
30
dist/swagger-ui-bundle.js
vendored
30
dist/swagger-ui-bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-bundle.js.map
vendored
2
dist/swagger-ui-bundle.js.map
vendored
File diff suppressed because one or more lines are too long
6
dist/swagger-ui-standalone-preset.js
vendored
6
dist/swagger-ui-standalone-preset.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-standalone-preset.js.map
vendored
2
dist/swagger-ui-standalone-preset.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.css
vendored
2
dist/swagger-ui.css
vendored
File diff suppressed because one or more lines are too long
4
dist/swagger-ui.js
vendored
4
dist/swagger-ui.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.js.map
vendored
2
dist/swagger-ui.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "swagger-ui",
|
"name": "swagger-ui",
|
||||||
"version": "3.4.5",
|
"version": "3.5.0",
|
||||||
"main": "dist/swagger-ui.js",
|
"main": "dist/swagger-ui.js",
|
||||||
"repository": "git@github.com:swagger-api/swagger-ui.git",
|
"repository": "git@github.com:swagger-api/swagger-ui.git",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
"scroll-to-element": "^2.0.0",
|
"scroll-to-element": "^2.0.0",
|
||||||
"serialize-error": "2.0.0",
|
"serialize-error": "2.0.0",
|
||||||
"shallowequal": "0.2.2",
|
"shallowequal": "0.2.2",
|
||||||
"swagger-client": "^3.3.4",
|
"swagger-client": "^3.3.5",
|
||||||
"url-parse": "^1.1.8",
|
"url-parse": "^1.1.8",
|
||||||
"whatwg-fetch": "0.11.1",
|
"whatwg-fetch": "0.11.1",
|
||||||
"worker-loader": "^0.7.1",
|
"worker-loader": "^0.7.1",
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default class Auths extends React.Component {
|
|||||||
}).toArray()
|
}).toArray()
|
||||||
}
|
}
|
||||||
<div className="auth-btn-wrapper">
|
<div className="auth-btn-wrapper">
|
||||||
<Button className="btn modal-btn auth" onClick={ this.close }>Done</Button>
|
<Button className="btn modal-btn auth btn-done" onClick={ this.close }>Done</Button>
|
||||||
{
|
{
|
||||||
nonOauthDefinitions.size === authorizedAuth.size ? <Button className="btn modal-btn auth" onClick={ this.logoutClick }>Logout</Button>
|
nonOauthDefinitions.size === authorizedAuth.size ? <Button className="btn modal-btn auth" onClick={ this.logoutClick }>Logout</Button>
|
||||||
: <Button type="submit" className="btn modal-btn auth authorize">Authorize</Button>
|
: <Button type="submit" className="btn modal-btn auth authorize">Authorize</Button>
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ export default class ObjectModel extends Component {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { showExtensions } = getConfigs()
|
||||||
|
|
||||||
let description = schema.get("description")
|
let description = schema.get("description")
|
||||||
let properties = schema.get("properties")
|
let properties = schema.get("properties")
|
||||||
let additionalProperties = schema.get("additionalProperties")
|
let additionalProperties = schema.get("additionalProperties")
|
||||||
@@ -99,6 +101,30 @@ export default class ObjectModel extends Component {
|
|||||||
</tr>)
|
</tr>)
|
||||||
}).toArray()
|
}).toArray()
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
// empty row befor extensions...
|
||||||
|
!showExtensions ? null : <tr> </tr>
|
||||||
|
}
|
||||||
|
{
|
||||||
|
!showExtensions ? null :
|
||||||
|
schema.entrySeq().map(
|
||||||
|
([key, value]) => {
|
||||||
|
if(key.slice(0,2) !== "x-") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const normalizedValue = !value ? null : value.toJS ? value.toJS() : value
|
||||||
|
|
||||||
|
return (<tr key={key} style={{ color: "#777" }}>
|
||||||
|
<td>
|
||||||
|
{ key }
|
||||||
|
</td>
|
||||||
|
<td style={{ verticalAlign: "top" }}>
|
||||||
|
{ JSON.stringify(normalizedValue) }
|
||||||
|
</td>
|
||||||
|
</tr>)
|
||||||
|
}).toArray()
|
||||||
|
}
|
||||||
{
|
{
|
||||||
!additionalProperties || !additionalProperties.size ? null
|
!additionalProperties || !additionalProperties.size ? null
|
||||||
: <tr>
|
: <tr>
|
||||||
|
|||||||
@@ -2,9 +2,11 @@ import React from "react"
|
|||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
|
|
||||||
export const OperationExtRow = ({ xKey, xVal }) => {
|
export const OperationExtRow = ({ xKey, xVal }) => {
|
||||||
|
const xNormalizedValue = !xVal ? null : xVal.toJS ? xVal.toJS() : xVal
|
||||||
|
|
||||||
return (<tr>
|
return (<tr>
|
||||||
<td>{ xKey }</td>
|
<td>{ xKey }</td>
|
||||||
<td>{ String(xVal) }</td>
|
<td>{ JSON.stringify(xNormalizedValue) }</td>
|
||||||
</tr>)
|
</tr>)
|
||||||
}
|
}
|
||||||
OperationExtRow.propTypes = {
|
OperationExtRow.propTypes = {
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
.btn-done {
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-wrapper
|
.auth-wrapper
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ table
|
|||||||
|
|
||||||
&:first-of-type
|
&:first-of-type
|
||||||
{
|
{
|
||||||
width: 124px;
|
width: 174px;
|
||||||
padding: 0 0 0 2em;
|
padding: 0 0 0 2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,11 @@ describe("<ObjectModel />", function() {
|
|||||||
}
|
}
|
||||||
const props = {
|
const props = {
|
||||||
getComponent: c => components[c],
|
getComponent: c => components[c],
|
||||||
|
getConfigs: () => {
|
||||||
|
return {
|
||||||
|
showExtensions: true
|
||||||
|
}
|
||||||
|
},
|
||||||
isRef : false,
|
isRef : false,
|
||||||
schema: Immutable.fromJS(
|
schema: Immutable.fromJS(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user