Skip to content

craft-hub / projectConfigSchema

Variable: projectConfigSchema

const projectConfigSchema: ZodObject<{ $schema: ZodOptional<ZodString>; capabilities: ZodOptional<ZodObject<{ descriptions: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodObject<{ default: ...; }, $catchall<...>>]>>>; disabledPresets: ZodOptional<ZodArray<ZodString>>; hidden: ZodOptional<ZodArray<ZodString>>; inputs: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodDiscriminatedUnion<[ZodObject<..., ...>, ZodObject<..., ...>, ZodObject<..., ...>], "type">>>>; operations: ZodOptional<ZodRecord<ZodString, ZodObject<{ customVersionInput: ZodOptional<ZodString>; kind: ZodLiteral<"release">; prereleaseIdInput: ZodOptional<ZodString>; requiredBranch: ZodOptional<ZodString>; requiresCleanGit: ZodOptional<ZodBoolean>; versionInput: ZodOptional<ZodString>; workflowPath: ZodOptional<ZodString>; }, $strict>>>; skillInputs: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodDiscriminatedUnion<[ZodObject<..., ...>, ZodObject<..., ...>], "type">>>>; }, $strict>>; defaults: ZodOptional<ZodObject<{ agent: ZodOptional<ZodString>; }, $strict>>; extensions: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; packages: ZodOptional<ZodRecord<ZodString, ZodObject<{ description: ZodOptional<ZodUnion<readonly [ZodString, ZodObject<{ default: ...; }, $catchall<...>>]>>; }, $strict>>>; project: ZodOptional<ZodObject<{ color: ZodOptional<ZodEnum<{ blue: "blue"; cyan: "cyan"; green: "green"; orange: "orange"; pink: "pink"; purple: "purple"; red: "red"; yellow: "yellow"; }>>; icon: ZodOptional<ZodString>; name: ZodOptional<ZodString>; }, $strict>>; version: ZodLiteral<1>; }, $strict>

Defined in: packages/craft-hub/src/project-config-schema.ts:109

Runtime validator and single source of truth for project.jsonc.

Released under the MIT License.