Merge pull request #587 from sbplat/version-2-contained-operators-test

fix(shared-operations): JoiPDFFileSchema import typo
This commit is contained in:
Anthony Stirling 2023-12-28 01:08:24 +00:00 committed by GitHub
commit 31ae0110ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
});
});