File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
packages/gatsby-cli/src/structured-errors Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import Joi from "joi"
22import { ILocationPosition , IStructuredError } from "./types"
33
4- export const Position : Joi . ObjectSchema < ILocationPosition > = Joi . object ( ) . keys ( {
5- line : Joi . number ( ) ,
6- column : Joi . number ( ) ,
7- } )
4+ export const Position : Joi . ObjectSchema < ILocationPosition > = Joi . object ( )
5+ . keys ( {
6+ line : Joi . number ( ) ,
7+ column : Joi . number ( ) ,
8+ } )
9+ . unknown ( )
810
911export const errorSchema : Joi . ObjectSchema < IStructuredError > =
1012 Joi . object ( ) . keys ( {
@@ -27,7 +29,7 @@ export const errorSchema: Joi.ObjectSchema<IStructuredError> =
2729 location : Joi . object ( {
2830 start : Position . required ( ) ,
2931 end : Position ,
30- } ) ,
32+ } ) . unknown ( ) ,
3133 docsUrl : Joi . string ( ) . uri ( {
3234 allowRelative : false ,
3335 relativeOnly : false ,
You can’t perform that action at this time.
0 commit comments