Added suport for error correction level to QR codes

This commit is contained in:
Alejandro Celaya
2021-07-13 13:22:50 +02:00
parent 32f483c333
commit 5a2350bac1
2 changed files with 37 additions and 10 deletions

View File

@@ -35,10 +35,7 @@
"required": false,
"schema": {
"type": "string",
"enum": [
"png",
"svg"
]
"enum": ["png", "svg"]
}
},
{
@@ -51,6 +48,16 @@
"minimum": 0,
"default": 0
}
},
{
"name": "errorCorrection",
"in": "query",
"description": "The error correction level to apply to the the QR code: **[L]**ow, **[M]**edium, **[Q]**uartile or **[H]**igh. See [docs](https://www.qrcode.com/en/about/error_correction.html).",
"required": false,
"schema": {
"type": "string",
"enum": ["L", "M", "Q", "H"]
}
}
],
"responses": {