Skip to content

Commit

Permalink
chore: removed unused schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Sep 30, 2024
1 parent 60bf359 commit cee9a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
7 changes: 3 additions & 4 deletions src/github/handlers/push-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { ValueErrorType } from "@sinclair/typebox/value";
import { ValueError } from "typebox-validators";
import YAML, { LineCounter, Node, YAMLError } from "yaml";
import { GitHubContext } from "../github-context";
import { PluginConfiguration } from "../types/plugin-configuration";
import { stateValidationSchema } from "../types/state-validation-payload";
import { configSchema, PluginConfiguration } from "../types/plugin-configuration";
import { CONFIG_FULL_PATH, getConfigurationFromRepo } from "../utils/config";
import { getManifest } from "../utils/plugins";

Expand Down Expand Up @@ -97,7 +96,7 @@ async function checkPluginConfigurations(context: GitHubContext<"push">, config:
message: `Failed to fetch the manifest configuration.`,
value: plugin,
type: 0,
schema: stateValidationSchema,
schema: configSchema,
});
} else {
const validator = new Validator(manifest.configuration, "7", false);
Expand All @@ -112,7 +111,7 @@ async function checkPluginConfigurations(context: GitHubContext<"push">, config:
message: error.error,
value,
type: 0,
schema: stateValidationSchema,
schema: configSchema,
});
}
}
Expand Down
36 changes: 0 additions & 36 deletions src/github/types/state-validation-payload.ts

This file was deleted.

0 comments on commit cee9a55

Please sign in to comment.