Skip to content

Commit

Permalink
Verify if combination of (method) path and operation exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Willemse committed Mar 16, 2016
1 parent 8c74143 commit cbe62ac
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/test/resources/path_operation_mismatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
swagger: '2.0'
info:
version: '2'
title: Test
description: Test.
basePath: '/v2'
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:

/test/{id}:
post:
description: Test
tags:
- mytag
parameters:
- in: body
name: body
description: Something to add
required: false
schema:
$ref: "#/definitions/sm"
responses:
'201':
description: Creates something
schema:
$ref: '#/definitions/sm'
default:
description: unexpected error
schema:
$ref: '#/definitions/errorModel'
x-javaClass: com.kenshoo.swagger.validator.SimpleResource


definitions:
sm:
properties:
a:
type: string
b:
type: string
c:
type: string
x-javaClass: com.kenshoo.swagger.validator.SimpleModel

errorModel:
required:
- errorCode
- errorMessage
properties:
errorCode:
type: string
errorMessage:
type: string
x-javaClass: com.kenshoo.platform.rest.ErrorInfo

0 comments on commit cbe62ac

Please sign in to comment.