Skip to content

Commit

Permalink
exchange JsonSchema with JSONSchema7
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiion committed Jun 20, 2024
1 parent aff5423 commit 306f8c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/ui-utils/src/mapping/mapMatchBasedByConfig.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AnyFlatStrategy, DeclarativeFlatMapping } from "./mappingStrategies";
import flatten from "lodash/flatten";
import uniq from "lodash/uniq";
import { JsonSchema } from "@jsonforms/core";
import dot from "dot";
import { JSONSchema7 } from "json-schema";

type OwnColumnDesc = {
index: number;
Expand Down Expand Up @@ -92,7 +92,7 @@ const columnMatcher = (

export type FlatSourceMatchBased = {
columns: FlexibleColumnMatchingDefinition;
expectedSchema?: JsonSchema;
expectedSchema?: JSONSchema7;
};
export type DeclarativeMatchBasedFlatMapping = {
id: string;
Expand Down
6 changes: 3 additions & 3 deletions packages/ui-utils/src/mapping/mappingStrategies.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { JsonSchema } from "@jsonforms/core";
import dayjs from "dayjs";
import customParseFormat from "dayjs/plugin/customParseFormat";

Expand All @@ -9,6 +8,7 @@ import set from "lodash-es/set";
import get from "lodash-es/get";
import { getPaddedDate } from "@slub/edb-core-utils";
import { IRIToStringFn, PrimaryFieldDeclaration } from "@slub/edb-core-types";
import { JSONSchema7 } from "json-schema";

dayjs.extend(customParseFormat);

Expand Down Expand Up @@ -658,7 +658,7 @@ export type AnyFlatStrategy =

type SourceElement = {
path: string;
expectedSchema?: JsonSchema;
expectedSchema?: JSONSchema7;
};

export type DeclarativeSimpleMapping = {
Expand All @@ -673,7 +673,7 @@ export type DeclarativeSimpleMapping = {

export type FlatSourceElement = {
columns: string[] | number[];
expectedSchema?: JsonSchema;
expectedSchema?: JSONSchema7;
};

export type DeclarativeFlatMapping = {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-utils/src/mapping/simpleFieldExtractor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import get from "lodash/get";
import get from "lodash-es/get";
import {
FieldExtractDeclaration,
PrimaryFieldExtract,
Expand Down

0 comments on commit 306f8c3

Please sign in to comment.