mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 23:45:02 +00:00
Merge pull request #587 from sbplat/version-2-contained-operators-test
fix(shared-operations): JoiPDFFileSchema import typo
This commit is contained in:
commit
31ae0110ed
@ -1,7 +1,7 @@
|
||||
|
||||
import Joi from 'joi';
|
||||
import { PDFPage } from 'pdf-lib';
|
||||
import { PdfFile, RepresentationType, JoiPdfFileSchema } from '../wrappers/PdfFile';
|
||||
import { PdfFile, RepresentationType, JoiPDFFileSchema } from '../wrappers/PdfFileJoi';
|
||||
|
||||
const whSchema = Joi.string().custom((value, helpers) => {
|
||||
console.log("value.pageSize", typeof value)
|
||||
@ -23,7 +23,7 @@ const whSchema = Joi.string().custom((value, helpers) => {
|
||||
});
|
||||
|
||||
export const ScalePageSchema = Joi.object({
|
||||
file: JoiPdfFileSchema.required(),
|
||||
file: JoiPDFFileSchema.required(),
|
||||
pageSize: Joi.alternatives().try(whSchema, Joi.array().items(whSchema)).required(),
|
||||
});
|
||||
|
||||
@ -86,4 +86,4 @@ export const PageSize = Object.freeze({
|
||||
width: 612,
|
||||
height: 792
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user