swagger-mock-api
swagger-mock-api copied to clipboard
A connect-compatible middleware for mocking a Swagger spec API
Thx for this repo. I used the yaml file which generated by [openapi-generator-maven-plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin) to start mock server. But the ObjectParse did not support additionalProperties. The modify of ObjectParse is below:...
When I try **YAML** files, Grunt can't execute "connect" command, if I change the file for **JSON** it works fine. bruno@bruno-VirtualBox:~/Documentos/repositorio/PlataformaWeb/api/mock$ grunt Running "connect:server" (connect) task Waiting forever... Started connect...
I have swagger defenition in json format: .... "responses": { "201": { "description": "unexpected error" } ... But anyway i get statusCode 200 in response, how to simulate another one?
not sure how (if it is exist) to use chance helpers like `pickone` I tried ```yml name: type: string x-chance-type: pickone x-type-value: - first - second ``` I think we...
If the path has a wildcard, the match with the regex wont work. Example: ``` path: /users/{user-id} convert: '/get/users/:user-id' regex: /^\/get\/users\/(?:([^\/]+?))-id\/?$/i ```
date and dateTime could be defined as: ``` type: string format: date ``` ``` type: string format: dateTime ``` http://swagger.io/specification/ Data Types
Hi there, i have in one of my paths a response with a status code 204 defined. When I call that endpoint I get a 200. This is rather bad...
This is a mostly comprehensive list of schema properties that are not yet supported or require x-type-options to emulate: - multipleOf - maximum - exclusiveMaximum - minimum - exclusiveMinimum -...
Would be great if you could ignore at the property level. I have objects where it wouldn't make sense for all of the properties to be set at the same...
The middleware should respond with non-successful status codes (and response objects, if a relevant status code response exists) if a request matches a path but fails a requirement (i.e. a...