Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
</div>
</div>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js?v=b065ff77" charset="UTF-8"></script>
<script src="./swagger-ui-standalone-preset.js?v=1e58ec86" charset="UTF-8"></script>
<script src="./swagger-ui-bundle.js?v=3b0acc44" charset="UTF-8"></script>
<script src="./swagger-ui-standalone-preset.js?v=49cdd566" charset="UTF-8"></script>
<script>
window.onload = function () {
// OutSystems change: url = swagger.json
Expand Down
2 changes: 1 addition & 1 deletion dist/swagger-ui-bundle.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions dist/swagger-ui-bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@
* Licensed under the MIT License.
*/

/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/swagger-ui-es-bundle-core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-es-bundle-core.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions dist/swagger-ui-es-bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@
* Licensed under the MIT License.
*/

/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/swagger-ui-standalone-preset.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.js.map

Large diffs are not rendered by default.

42 changes: 20 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
"classnames": "^2.5.1",
"css.escape": "1.5.1",
"deep-extend": "0.6.0",
"dompurify": "=3.4.11",
"dompurify": "=3.4.12",
"ieee754": "^1.2.1",
"immutable": "=3.8.3",
"immutable": "=4.3.9",
"js-file-download": "^0.4.12",
"js-yaml": "=4.2.0",
"js-yaml": "=4.3.0",
"lodash": "=4.18.1",
"prop-types": "^15.8.1",
"randexp": "^0.5.3",
Expand Down Expand Up @@ -198,9 +198,9 @@
"enzyme": {
"cheerio": "=1.0.0-rc.12"
},
"axios": ">=1.16.0",
"axios": ">=1.18.0",
"@swagger-api/apidom-reference": {
"brace-expansion": ">=5.0.6"
"brace-expansion": ">=5.0.8"
}
},
"config": {
Expand Down
8 changes: 3 additions & 5 deletions src/core/components/auth/auths.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export default class Auths extends React.Component {
e.preventDefault()

let { authActions, definitions } = this.props
let auths = definitions.map( (val, key) => {
return key
}).toArray()
let auths = definitions.keySeq().toArray()

this.setState(auths.reduce((prev, auth) => {
prev[auth] = ""
Expand Down Expand Up @@ -84,7 +82,7 @@ export default class Auths extends React.Component {
authorized={authorized}
errSelectors={errSelectors}
/>
}).toArray()
}).valueSeq().toArray()
}
<div className="auth-btn-wrapper">
{
Expand All @@ -111,7 +109,7 @@ export default class Auths extends React.Component {
name={ name } />
</div>)
}
).toArray()
).valueSeq().toArray()
}
</div> : null
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/auth/oauth2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class Oauth2 extends React.Component {
</div>
</Row>
)
}).toArray()
}).valueSeq().toArray()
}
</div> : null
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/examples-select-value-retainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class ExamplesSelectValueRetainer extends React.PureComponent {

_setStateForNamespace = (namespace, obj) => {
const oldStateForNamespace = this.state[namespace] || Map()
const newStateForNamespace = oldStateForNamespace.mergeDeep(obj)
const newStateForNamespace = oldStateForNamespace.merge(obj)
return this.setState({
[namespace]: newStateForNamespace,
})
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/operations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class Operations extends React.Component {

return (
<div>
{ taggedOps.map(this.renderOperationTag).toArray() }
{ taggedOps.map(this.renderOperationTag).valueSeq().toArray() }
{ taggedOps.size < 1 ? <h3> No operations defined in spec! </h3> : null }
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class Overview extends React.Component {

</div>
)
}).toArray()
}).valueSeq().toArray()
}

{ taggedOps.size < 1 && <h3> No operations defined in spec! </h3> }
Expand Down
5 changes: 4 additions & 1 deletion src/core/plugins/json-schema-5/components/model.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export default class Model extends ImmutablePureComponent {
const refName = this.getModelName($ref)
const refSchema = this.getRefSchema(refName)
if (Map.isMap(refSchema)) {
schema = refSchema.mergeDeep(schema)
// NOTE(immutable-v4): mergeDeep now concatenates Lists instead of replacing them.
// If schema or refSchema contain List properties (e.g. required, enum, allOf),
// verify behavior is correct after the immutable v3→v4 upgrade.
schema = refSchema.mergeDeep(schema)
if (!$$ref) {
schema = schema.set("$$ref", $ref)
$$ref = $ref
Expand Down
9 changes: 4 additions & 5 deletions src/core/plugins/oas31/components/auth/auths.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ class Auths extends React.Component {
e.preventDefault()

let { authActions, definitions } = this.props
let auths = definitions
.map((val, key) => {
return key
})
.toArray()
let auths = definitions.keySeq().toArray()

this.setState(
auths.reduce((prev, auth) => {
Expand Down Expand Up @@ -99,6 +95,7 @@ class Auths extends React.Component {
/>
)
})
.valueSeq()
.toArray()}
<div className="auth-btn-wrapper">
{nonOauthDefinitions.size === authorizedAuth.size ? (
Expand Down Expand Up @@ -154,6 +151,7 @@ class Auths extends React.Component {
</div>
)
})
.valueSeq()
.toArray()}
</div>
) : null}
Expand All @@ -173,6 +171,7 @@ class Auths extends React.Component {
/>
)
})
.valueSeq()
.toArray()}
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function arrayify (thing) {
return []

if(thing.toArray)
return thing.toArray()
return Im.isKeyed(thing) ? thing.valueSeq().toArray() : thing.toArray()

return normalizeArray(thing)
}
Expand Down
Loading