diff --git a/packages/common/src/validation/index.ts b/packages/common/src/validation/index.ts index ed47a6142..0e1e477e3 100644 --- a/packages/common/src/validation/index.ts +++ b/packages/common/src/validation/index.ts @@ -1,7 +1,7 @@ import Ajv from "ajv"; -import routesArgumentsSchema from "./schemas/RoutesArguments.schema.json" with { type: "json" }; -import routesReturnSchema from "./schemas/RoutesReturn.schema.json" with { type: "json" }; -import subscriptionsArgumentsSchema from "./schemas/SubscriptionsArguments.schema.json" with { type: "json" }; +import routesArgumentsSchema from "./schemas/RoutesArguments.schema.json"; +import routesReturnSchema from "./schemas/RoutesReturn.schema.json"; +import subscriptionsArgumentsSchema from "./schemas/SubscriptionsArguments.schema.json"; import { Args } from "typescript-json-schema"; const ajv = new Ajv({ allErrors: true, strict: false }); diff --git a/packages/dappmanager/src/api/middlewares/ethForward/resolveDomain.ts b/packages/dappmanager/src/api/middlewares/ethForward/resolveDomain.ts index bb048e867..1314c6aa5 100644 --- a/packages/dappmanager/src/api/middlewares/ethForward/resolveDomain.ts +++ b/packages/dappmanager/src/api/middlewares/ethForward/resolveDomain.ts @@ -1,7 +1,7 @@ import { ethers } from "ethers"; import { getEthersProvider, getEthUrl } from "@dappnode/installer"; -import resolverAbi from "./abi/resolverAbi.json" with { type: "json" }; -import ensAbi from "./abi/ens.json" with { type: "json" }; +import resolverAbi from "./abi/resolverAbi.json"; +import ensAbi from "./abi/ens.json"; import { Network, Content, NotFoundError, EnsResolverError } from "./types.js"; import { decodeContentHash, diff --git a/packages/dockerCompose/src/validate.ts b/packages/dockerCompose/src/validate.ts index 640f60615..f20965e03 100644 --- a/packages/dockerCompose/src/validate.ts +++ b/packages/dockerCompose/src/validate.ts @@ -1,5 +1,5 @@ import { getSchemaValidator } from "@dappnode/utils"; -import compose3xSchema from "./compose_v3x.schema.json" with { type: "json" }; +import compose3xSchema from "./compose_v3x.schema.json"; import { Compose } from "@dappnode/types"; /** diff --git a/packages/schemas/src/validateManifestSchema.ts b/packages/schemas/src/validateManifestSchema.ts index 417711f0d..9eef2317b 100644 --- a/packages/schemas/src/validateManifestSchema.ts +++ b/packages/schemas/src/validateManifestSchema.ts @@ -1,7 +1,7 @@ import { ajv } from "./ajv.js"; import { CliError } from "./error.js"; import { processError } from "./utils.js"; -import manifestSchema from "./schemas/manifest.schema.json" with { type: "json" }; +import manifestSchema from "./schemas/manifest.schema.json"; import { Manifest } from "@dappnode/types"; /** diff --git a/packages/schemas/src/validateSetupWizardSchema.ts b/packages/schemas/src/validateSetupWizardSchema.ts index e27cad86e..653cfba47 100644 --- a/packages/schemas/src/validateSetupWizardSchema.ts +++ b/packages/schemas/src/validateSetupWizardSchema.ts @@ -1,6 +1,6 @@ import { ajv } from "./ajv.js"; import { processError } from "./utils.js"; -import setupWizardSchema from "./schemas/setup-wizard.schema.json" with { type: "json" }; +import setupWizardSchema from "./schemas/setup-wizard.schema.json"; import { CliError } from "./error.js"; import { SetupWizard } from "@dappnode/types";