Merge branch 'master' into ft/3820-oas3-path-operation-servers

This commit is contained in:
kyle
2017-11-30 23:12:11 -08:00
committed by GitHub
6 changed files with 173 additions and 22 deletions

View File

@@ -321,14 +321,11 @@ describe("utils", function() {
}
it("should check the isOAS3 flag when validating parameters", function() {
// This should "skip" validation because there is no `schema.type` property
// This should "skip" validation because there is no `schema` property
// and we are telling `validateParam` this is an OAS3 spec
param = fromJS({
value: "",
required: true,
schema: {
notTheTypeProperty: "string"
}
required: true
})
result = validateParam( param, false, true )
expect( result ).toEqual( [] )