Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

housekeeping: corresponding changes for swagger-api/swagger-editor#1935 #5170

Merged
merged 2 commits into from
Feb 8, 2019
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: 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.