Skip to content

Commit

Permalink
housekeeping: corresponding changes for swagger-api/swagger-editor#1935
Browse files Browse the repository at this point in the history
… (via #5170)

* `schema` -> `structural`

* drop strip-instance transformer
  • Loading branch information
shockey authored Feb 8, 2019
1 parent d3c2e27 commit 3434312
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/core/plugins/err/error-transformers/hook.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import reduce from "lodash/reduce"
import * as NotOfType from "./transformers/not-of-type"
import * as ParameterOneOf from "./transformers/parameter-oneof"
import * as StripInstance from "./transformers/strip-instance"

const errorTransformers = [
NotOfType,
ParameterOneOf,
StripInstance
ParameterOneOf
]

export default function transformErrors (errors, system) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function createTailoredParameterError(err, jsSpec) {
message,
path: err.get("path") + ".in",
type: "spec",
source: "schema",
source: "structural",
level: "error"
})
}
Expand All @@ -49,7 +49,7 @@ function createTailoredParameterError(err, jsSpec) {
message,
path: err.get("path") + ".collectionFormat",
type: "spec",
source: "schema",
source: "structural",
level: "error"
})
}
Expand Down

This file was deleted.

0 comments on commit 3434312

Please sign in to comment.