Skip to content

Commit 9891d97

Browse files
deiningtim-lai
andauthored
docs: fix typos and update https references (#8154)
Co-authored-by: Tim Lai <[email protected]>
1 parent 7e65155 commit 9891d97

File tree

19 files changed

+29
-29
lines changed

19 files changed

+29
-29
lines changed

docs/customization/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Swagger UI leans heavily on concepts and patterns found in React and Redux.
77
If you aren't already familiar, here's some suggested reading:
88

99
- [React: Quick Start (reactjs.org)](https://reactjs.org/docs/hello-world.html)
10-
- [Redux README (redux.js.org)](http://redux.js.org/)
10+
- [Redux README (redux.js.org)](https://redux.js.org/)
1111

1212
In the following documentation, we won't take the time to define the fundamentals covered in the resources above.
1313

docs/customization/plugin-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The Action interface enables the creation of new Redux action creators within a
100100

101101
This action creator function will be exposed to container components as `exampleActions.updateFavoriteColor`. When this action creator is called, the return value (which should be a [Flux Standard Action](https://github.com/acdlite/flux-standard-action)) will be passed to the `example` reducer, which we'll define in the next section.
102102

103-
For more information about the concept of actions in Redux, see the [Redux Actions documentation](http://redux.js.org/docs/basics/Actions.html).
103+
For more information about the concept of actions in Redux, see the [Redux Actions documentation](https://redux.js.org/tutorials/fundamentals/part-2-concepts-data-flow#actions).
104104

105105
#### Reducers
106106

docs/usage/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Example:
369369

370370
```sh
371371
SUPPORTED_SUBMIT_METHODS="[\"get\", \"post\"]"
372-
URLS="[ { url: \"http://petstore.swagger.io/v2/swagger.json\", name: \"Petstore\" } ]"
372+
URLS="[ { url: \"https://petstore.swagger.io/v2/swagger.json\", name: \"Petstore\" } ]"
373373
```
374374

375375
##### Object variables
@@ -387,5 +387,5 @@ SPEC="{ \"openapi\": \"3.0.0\" }"
387387
#### .env file example encoding
388388
```sh
389389
SUPPORTED_SUBMIT_METHODS=['get', 'post']
390-
URLS=[ { url: 'http://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
390+
URLS=[ { url: 'https://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
391391
```

docs/usage/cors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ XMLHttpRequest cannot load http://sad.server.com/v2/api-docs. No 'Access-Control
4141

4242
Swagger UI cannot easily show this error state.
4343

44-
- Use the http://www.test-cors.org website to verify CORS support. Keep in mind this will show a successful result even if `Access-Control-Allow-Headers` is not available, which is still required for Swagger UI to function properly.
44+
- Use the https://www.test-cors.org website to verify CORS support. Keep in mind this will show a successful result even if `Access-Control-Allow-Headers` is not available, which is still required for Swagger UI to function properly.
4545

4646
### Enabling CORS
4747

48-
The method of enabling CORS depends on the server and/or framework you use to host your application. http://enable-cors.org provides information on how to enable CORS in some common web servers.
48+
The method of enabling CORS depends on the server and/or framework you use to host your application. https://enable-cors.org provides information on how to enable CORS in some common web servers.
4949

5050
Other servers/frameworks may provide you information on how to enable it specifically in their use case.
5151

docs/usage/version-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ If you've determined this is the version you have, to find the exact version:
4848
/**
4949
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
5050
* @version v2.2.9
51-
* @link http://swagger.io
51+
* @link https://swagger.io
5252
* @license Apache-2.0
5353
*/
5454
```

src/core/components/object-model.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default class ObjectModel extends Component {
103103
true
104104
</td>
105105
</tr>
106-
106+
107107
}
108108
{
109109
!(properties && properties.size) ? null : properties.entrySeq().filter(
@@ -143,7 +143,7 @@ export default class ObjectModel extends Component {
143143
}).toArray()
144144
}
145145
{
146-
// empty row befor extensions...
146+
// empty row before extensions...
147147
!showExtensions ? null : <tr><td>&nbsp;</td></tr>
148148
}
149149
{

src/core/plugins/oas3/helpers.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function isOAS3(jsSpec) {
66
return false
77
}
88

9-
// we gate against `3.1` becasue we want to explicitly opt into supporting it
9+
// we gate against `3.1` because we want to explicitly opt into supporting it
1010
// at some point in the future -- KS, 7/2018
1111

1212
// starts with, but is not `3.0.` exactly

src/plugins/add-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function SomePlugin(toolbox) {
6666
getState => getState(), // This is a requirement... because we `bind` selectors, we don't want to bind to any particular state (which is an immutable value) so we bind to a function, which returns the current state
6767
state => state.get("something") // return the whatever "something" points to
6868
),
69-
foo: getState => "bar" // In the end selectors are just fuctions that we pass getState to
69+
foo: getState => "bar" // In the end selectors are just functions that we pass getState to
7070
}
7171
}
7272

test/e2e-cypress/static/documents/features/parameter-array-missing-items.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ paths:
99
parameters:
1010
- in: query
1111
name: basicName
12-
content:
12+
content:
1313
application/json:
1414
schema:
1515
type: object
@@ -21,4 +21,4 @@ paths:
2121
- type: integer
2222
responses:
2323
'200':
24-
description: successfull fetch
24+
description: successful fetch

test/e2e-cypress/tests/bugs/5660.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
const expectedValue = "nullable: true"
44

55
describe("#5660: Nullable object", () => {
6-
it("should render `nullable` marker for object ifself", () => {
6+
it("should render `nullable` marker for object itself", () => {
77
cy.visit("/?url=/documents/bugs/5660-model.yaml")
88
.get("#model-SomeObject .model-toggle")
99
.click()
1010
.get("#model-SomeObject > .model-box")
1111
.contains(expectedValue)
1212
})
13-
it("should render `nullable` marker for nexted object in property", () => {
13+
it("should render `nullable` marker for next object in property", () => {
1414
cy.visit("/?url=/documents/bugs/5660-property.yaml")
1515
.get("#model-SomeObject .model-toggle")
1616
.click()

0 commit comments

Comments
 (0)