dapperdox
dapperdox copied to clipboard
DapperDox not honoring required and additional attributes for properties
I've checked several times the generated swagger spec but I cannot get DapperDox to show the appropriate required and maxLength and minLength to be shown in docs
Paths contain this:
"/dogs": {
"post": {
"tags": [
"Dogs"
],
"summary": "Create Dog",
"operationId": "DogsPost",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [],
"parameters": [
{
"name": "model",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/DogCreateRequest"
}
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
}
Schema is:
"DogCreateRequest": {
"title": "DogCreateRequest",
"required": [
"name"
],
"type": "object",
"properties": {
"name": {
"title": "String",
"maxLength": 100,
"minLength": 0,
"type": "string"
}
}
}