mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 14:23:34 +01:00
* Provide open api schema to dynamic examples generator so you can generate accurate data using settings like max-length in case of a string * Rename Schema Property and add a dynamic examples generator with properties from settings like max-length * Remove blank lines * Add virtual to all public method in WireMockOpenApiParserExampleValues and ireMockOpenApiParserDynamicExampleValues to extend and overrides examples values
74 lines
1.9 KiB
JSON
74 lines
1.9 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "customer",
|
|
"description": "It contains basic customer actions.",
|
|
"version": "v1"
|
|
},
|
|
"host": "localhost",
|
|
"basePath": "/v1/customer/",
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"paths": {
|
|
"/": {
|
|
"get": {
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "Correlation-Id",
|
|
"required": true,
|
|
"in": "header",
|
|
"type": "string",
|
|
"maxLength": 3
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"x-amf-mediaType": "application/json",
|
|
"schema": {
|
|
"$ref": "#/definitions/ResponseCustmer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"ResponseCustmer": {
|
|
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": [
|
|
"first-name",
|
|
"last-name",
|
|
"status",
|
|
"interest"
|
|
],
|
|
"properties": {
|
|
"first-name": {
|
|
"type": "string"
|
|
},
|
|
"last-name": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 2
|
|
},
|
|
"interest": {
|
|
"type": "string",
|
|
"maxLength": 45
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|