====test==== Not providing an api key that is required to be in the query, results in denied access. ====spec==== swagger: '2.0' paths: /todos: get: produces: - application/json responses: 200: description: OK examples: application/json: test securityDefinitions: ApiKeyAuth: type: apiKey in: query name: apiKey security: - ApiKeyAuth: [] ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/todos ====expect==== HTTP/1.1 401 Unauthorized {"type":"https://stoplight.io/prism/errors#UNAUTHORIZED","title":"Invalid security scheme used","status":401,"detail":"Your request does not fullfil the security requirements and no HTTP unauthorized response was found in the spec, so Prism is generating this error for you."}