We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b022bc8 commit 64ec7c2Copy full SHA for 64ec7c2
src/lib/schemas/minecrafts-schemas.ts
@@ -1,3 +1,4 @@
1
+import { TypeCompiler } from "@sinclair/typebox/compiler";
2
import Type, { type Static } from "typebox";
3
4
export const VersionManifest = Type.Object({
@@ -73,6 +74,16 @@ export const AssetIndexSchema = Type.Object({
73
74
"url" : Type.String(),
75
});
76
export type AssetIndex = Static<typeof AssetIndexSchema>;
77
+export const AssetIndexValidator = TypeCompiler.Compile(AssetIndexSchema);
78
+
79
+export const AssetSchema = Type.Object({
80
+ "hash": Type.String(),
81
+ "size": Type.Number(),
82
+});
83
84
+export const AssetsSchema = Type.Object({
85
+ "objects": Type.Array(AssetSchema),
86
87
88
export const LoggingConfigSchema = Type.Object({
89
"id" : Type.String(),
0 commit comments