Skip to content

Commit

Permalink
fix: misc. spelling errors (swagger-api#4421)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and shockey committed Apr 9, 2018
1 parent a0b659a commit 14473dd
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/core/plugins/ast/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export function getLineNumberForPath(yaml, path) {
* YAML or JSON string
* @param {array} path
* an array of stings that constructs a
* JSON Path similiar to JSON Pointers(RFC 6901). The difference is, each
* component of path is an item of the array intead of beinf seperated with
* JSON Path similar to JSON Pointers(RFC 6901). The difference is, each
* component of path is an item of the array instead of being separated with
* slash(/) in a string
*/
export function positionRangeForPath(yaml, path) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugins/ast/jump-to-path.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"

// Nothing by default- component can be overriden by another plugin.
// Nothing by default- component can be overridden by another plugin.

export default class JumpToPath extends React.Component {
render() {
Expand Down
6 changes: 3 additions & 3 deletions src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { memoizedSampleFromSchema, memoizedCreateXMLExample } from "core/plugins
import win from "./window"
import cssEscape from "css.escape"

const DEFAULT_REPONSE_KEY = "default"
const DEFAULT_RESPONSE_KEY = "default"

export const isImmutable = (maybe) => Im.Iterable.isIterable(maybe)

Expand Down Expand Up @@ -128,7 +128,7 @@ export function systemThunkMiddleware(getSystem) {

export function defaultStatusCode ( responses ) {
let codes = responses.keySeq()
return codes.contains(DEFAULT_REPONSE_KEY) ? DEFAULT_REPONSE_KEY : codes.filter( key => (key+"")[0] === "2").sort().first()
return codes.contains(DEFAULT_RESPONSE_KEY) ? DEFAULT_RESPONSE_KEY : codes.filter( key => (key+"")[0] === "2").sort().first()
}


Expand Down Expand Up @@ -193,7 +193,7 @@ export function highlight (el) {
// running through characters and highlighting
while (prev2 = prev1,
// escaping if needed (with except for comments)
// pervious character will not be therefore
// previous character will not be therefore
// recognized as a token finalize condition
prev1 = tokenType < 7 && prev1 == "\\" ? 1 : chr
) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/add-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Plugins allow you to add
- `statePlugins`
- `selectors` - query the state
- `reducers` - modify the state
- `actions` - fire and forget, that will eventually be handled by a reducer. You *can* rely on the result of async actions. But in general its not recommended
- `actions` - fire and forget, that will eventually be handled by a reducer. You *can* rely on the result of async actions. But in general it's not recommended
- `wrapActions` - replace an action with a wrapped action (useful for hooking into existing `actions`)
- `components` - React components
- `fn` - commons functions
Expand Down
2 changes: 1 addition & 1 deletion test/core/oauth2-authorize.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("oauth2", function () {
expect(win.open.calls[0].arguments[0]).toMatch("https://testAuthorizationUrl?response_type=code&redirect_uri=&state=")
})

it("should append query paramters to authorizeUrl with query parameters", function() {
it("should append query parameters to authorizeUrl with query parameters", function() {
win.open = createSpy()
mockSchema.authorizationUrl = "https://testAuthorizationUrl?param=1"
oauth2Authorize(authConfig)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/scenarios/refs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Remote $ref rendering", function () {
})

it("renders a remote $ref correctly", function (client) {
mainPage.expect.element("#model-TestResponse > span > div > span > span > span.inner-object > table > tbody > tr:nth-child(2) > td:nth-child(2) > span > span > div > div > p").text.to.equal("this is a api2prop")
mainPage.expect.element("#model-TestResponse > span > div > span > span > span.inner-object > table > tbody > tr:nth-child(2) > td:nth-child(2) > span > span > div > div > p").text.to.equal("this is an api2prop")

client.end()
})
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/refs/api2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ components:
schemas:
Api2Prop:
type: string
description: this is a api2prop
description: this is an api2prop
example: 'api1prop-value'

TestResponse2:
Expand Down

0 comments on commit 14473dd

Please sign in to comment.