Skip to content

Commit

Permalink
use assert type json
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Aug 14, 2024
1 parent ebc36b3 commit 3184931
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/common/src/validation/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Ajv from "ajv";
import routesArgumentsSchema from "./schemas/RoutesArguments.schema.json";
import routesReturnSchema from "./schemas/RoutesReturn.schema.json";
import subscriptionsArgumentsSchema from "./schemas/SubscriptionsArguments.schema.json";
import routesArgumentsSchema from "./schemas/RoutesArguments.schema.json" assert { type: "json" };
import routesReturnSchema from "./schemas/RoutesReturn.schema.json" assert { type: "json" };
import subscriptionsArgumentsSchema from "./schemas/SubscriptionsArguments.schema.json" assert { type: "json" };
import { Args } from "typescript-json-schema";

const ajv = new Ajv({ allErrors: true, strict: false });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethers } from "ethers";
import { getEthersProvider, getEthUrl } from "@dappnode/installer";
import resolverAbi from "./abi/resolverAbi.json";
import ensAbi from "./abi/ens.json";
import resolverAbi from "./abi/resolverAbi.json" assert { type: "json" };
import ensAbi from "./abi/ens.json" assert { type: "json" };
import { Network, Content, NotFoundError, EnsResolverError } from "./types.js";
import {
decodeContentHash,
Expand Down
2 changes: 1 addition & 1 deletion packages/dockerCompose/src/validate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getSchemaValidator } from "@dappnode/utils";
import compose3xSchema from "./compose_v3x.schema.json";
import compose3xSchema from "./compose_v3x.schema.json" assert { type: "json" };
import { Compose } from "@dappnode/types";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/src/validateManifestSchema.ts
Original file line number Diff line number Diff line change
@@ -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";
import manifestSchema from "./schemas/manifest.schema.json" assert { type: "json" };
import { Manifest } from "@dappnode/types";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/src/validateSetupWizardSchema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ajv } from "./ajv.js";
import { processError } from "./utils.js";
import setupWizardSchema from "./schemas/setup-wizard.schema.json";
import setupWizardSchema from "./schemas/setup-wizard.schema.json" assert { type: "json" };
import { CliError } from "./error.js";
import { SetupWizard } from "@dappnode/types";

Expand Down

0 comments on commit 3184931

Please sign in to comment.