mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-23 07:55:07 +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 Joi from 'joi';
|
||||||
import { PDFPage } from 'pdf-lib';
|
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) => {
|
const whSchema = Joi.string().custom((value, helpers) => {
|
||||||
console.log("value.pageSize", typeof value)
|
console.log("value.pageSize", typeof value)
|
||||||
@ -23,7 +23,7 @@ const whSchema = Joi.string().custom((value, helpers) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const ScalePageSchema = Joi.object({
|
export const ScalePageSchema = Joi.object({
|
||||||
file: JoiPdfFileSchema.required(),
|
file: JoiPDFFileSchema.required(),
|
||||||
pageSize: Joi.alternatives().try(whSchema, Joi.array().items(whSchema)).required(),
|
pageSize: Joi.alternatives().try(whSchema, Joi.array().items(whSchema)).required(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user