Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
chore: enable fluent-json-schema type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jun 22, 2023
1 parent 723032d commit 0bb056d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require("dotenv").config();

const envSchema = require("env-schema");
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;
const fs = require("fs/promises");
const path = require("upath");
const pino = require("pino");
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/shared-schemas/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fp = require("fastify-plugin");
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;

/**
* @author Frazer Smith
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/access/bearer-token/schema.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;

const security = [{ basicAuth: [] }];
const tags = ["System administration"];
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/healthcheck/schema.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;

const tags = ["System administration"];

Expand Down
2 changes: 1 addition & 1 deletion src/routes/contact/schema.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;

const tags = ["Community contacts"];

Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/openapi/schema.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;

/**
* Fastify uses AJV for JSON Schema Validation,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/schema.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const S = require("fluent-json-schema");
const S = require("fluent-json-schema").default;

/**
* Fastify uses AJV for JSON Schema Validation,
Expand Down