Skip to content

Commit bd6e482

Browse files
committed
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
2 parents 947953d + aa9e008 commit bd6e482

39 files changed

+1065
-137
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
As a brand new version, written from the ground up, there are some known issues and unimplemented features. Check out the [Known Issues](#known-issues) section for more details.
1212

13-
This repo publishes to two different NPM packages:
13+
This repository publishes to two different NPM modules:
1414

15-
* [swagger-ui](https://www.npmjs.com/package/swagger-ui) is intended for use as a node module.
16-
* [swagger-ui-dist](https://www.npmjs.com/package/swagger-ui-dist) comes pre-bundled with all dependencies and can be incorporated directly in a webapp.
15+
* [swagger-ui](https://www.npmjs.com/package/swagger-ui) is a traditional npm module intended for use in JavaScript web application projects that are capable of resolving dependencies (via Webpack, Browserify, etc).
16+
* [swagger-ui-dist](https://www.npmjs.com/package/swagger-ui-dist) is a dependency-free module that includes everything you need to serve Swagger-UI in a server-side project, or a web project that can't resolve npm module dependencies.
1717

1818
For the older version of swagger-ui, refer to the [*2.x branch*](https://github.com/swagger-api/swagger-ui/tree/2.x).
1919

@@ -22,7 +22,7 @@ The OpenAPI Specification has undergone 5 revisions since initial creation in 20
2222

2323
Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
2424
------------------ | ------------ | -------------------------- | -----
25-
3.1.7 | 2017-08-25 | 2.0, 3.0 | [tag v3.1.7](https://github.com/swagger-api/swagger-ui/tree/v3.1.7)
25+
3.2.1 | 2017-09-15 | 2.0, 3.0 | [tag v3.2.1](https://github.com/swagger-api/swagger-ui/tree/v3.2.1)
2626
3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21)
2727
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)
2828
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)
@@ -46,7 +46,7 @@ Will start nginx with swagger-ui on port 80.
4646
Or you can provide your own swagger.json on your host
4747

4848
```
49-
docker run -p 80:8080 -e "SWAGGER_JSON=/foo/swagger.json" -v /bar:/foo swaggerapi/swagger-ui
49+
docker run -p 80:8080 -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-ui
5050
```
5151

5252
##### Prerequisites

dist/swagger-ui-bundle.js

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-standalone-preset.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-standalone-preset.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-ui",
3-
"version": "3.1.7",
3+
"version": "3.2.1",
44
"main": "dist/swagger-ui.js",
55
"repository": "[email protected]:swagger-api/swagger-ui.git",
66
"contributors": [
@@ -41,6 +41,8 @@
4141
"dependencies": {
4242
"base64-js": "^1.2.0",
4343
"brace": "0.7.0",
44+
"classnames": "^2.2.5",
45+
"css.escape": "1.5.1",
4446
"deep-extend": "0.4.1",
4547
"expect": "1.20.2",
4648
"getbase": "^2.8.2",
@@ -75,7 +77,7 @@
7577
"scroll-to-element": "^2.0.0",
7678
"serialize-error": "2.0.0",
7779
"shallowequal": "0.2.2",
78-
"swagger-client": "3.0.20",
80+
"swagger-client": "3.1.1",
7981
"url-parse": "^1.1.8",
8082
"whatwg-fetch": "0.11.1",
8183
"worker-loader": "^0.7.1",

src/core/components/array-model.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ export default class ArrayModel extends Component {
2828
<span className="model-title__text">{ title }</span>
2929
</span>
3030

31+
/*
32+
Note: we set `name={null}` in <Model> below because we don't want
33+
the name of the current Model passed (and displayed) as the name of the array element Model
34+
*/
35+
3136
return <span className="model">
3237
<ModelCollapse title={titleEl} collapsed={ depth > expandDepth } collapsedContent="[...]">
3338
[
34-
<span><Model { ...this.props } schema={ items } required={ false } depth={ depth + 1 } /></span>
39+
<span><Model { ...this.props } name={null} schema={ items } required={ false } depth={ depth + 1 } /></span>
3540
]
3641
{
3742
properties.size ? <span>

0 commit comments

Comments
 (0)