Skip to content

Commit

Permalink
Assert json for schema import
Browse files Browse the repository at this point in the history
  • Loading branch information
GDownes committed Oct 17, 2023
1 parent 1cdb85b commit 18397ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ import {bind, Handler, HttpMethod, HttpError, router, Request} from '@hexlabs/ht
${this.aws ? "import {APIGatewayProxyEvent, APIGatewayProxyResult} from 'aws-lambda';" : ""}
${this.hydra ? "import {ResourceApiDefinition, CollectionApiDefinition, ScopedOperation} from '@hexlabs/lambda-api-ts';" : ""}
// eslint-disable-next-line @typescript-eslint/no-var-requires
import schema from './schema.json';
import schema from './schema.json' assert { type: 'json' };
import * as Model from "./model";
import {Validator} from '@hexlabs/schema-api-ts';
Expand Down

0 comments on commit 18397ce

Please sign in to comment.