Fix file format name in API

This commit is contained in:
2023-03-28 22:37:05 +03:00
parent 9262249ea1
commit ce5f19020e
5 changed files with 10 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ func FormatFromRest(format []openapi.Format) []entity.Format {
case openapi.FormatHeaders:
formats[i] = entity.FormatHeaders
case openapi.FormatSinglePage:
case openapi.FormatSingleFile:
formats[i] = entity.FormatSingleFile
}
}
@@ -124,7 +124,7 @@ func FormatToRest(format entity.Format) openapi.Format {
case entity.FormatPDF:
return openapi.FormatPdf
case entity.FormatSingleFile:
return openapi.FormatSinglePage
return openapi.FormatSingleFile
case entity.FormatHeaders:
return openapi.FormatHeaders
default: