Skip to content

Commit

Permalink
Change parameter with empty map
Browse files Browse the repository at this point in the history
  • Loading branch information
ishuen committed Oct 22, 2022
1 parent fa90ef2 commit b34fde7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/get-parameter-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function getParameterSchema(parameter, { isOAS3 } = {}) {
}

return {
schema: parameter.get("schema") ? parameter.get("schema", Im.Map()): parameter,
schema: parameter.get("schema") ? parameter.get("schema", Im.Map()): Im.Map(),
parameterContentMediaType: null,
}
}
4 changes: 3 additions & 1 deletion test/unit/components/parameter-row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ describe("<ParameterRow/>", () => {
name: "hasId",
in: "path",
description: "boolean value to indicate if the pet has an id",
type: "boolean"
schema: {
type: "boolean"
}
})

const props = createProps({ param, isOAS3: true })
Expand Down

0 comments on commit b34fde7

Please sign in to comment.