Skip to content
Snippets Groups Projects
Commit baff67e9 authored by michael.minelli's avatar michael.minelli
Browse files

AssignmentFile => Adapt to ImmutableFileDescriptor zod format

parent 8558e3dd
No related branches found
No related tags found
No related merge requests found
import { ImmutableFileDescriptor, immutableFileDescriptorSchema } from './ImmutableFileDescriptor';
import { z } from 'zod';
import ImmutableFileDescriptor from './ImmutableFileDescriptor';
import { z } from 'zod';
const AssignmentFile = z.object({
dojoAssignmentVersion: z.number(),
version : z.number(),
immutable : z.array(immutableFileDescriptorSchema.transform(value => value as ImmutableFileDescriptor)),
immutable : z.array(ImmutableFileDescriptor.transform(value => value as ImmutableFileDescriptor)),
result : z.object({
container: z.string(),
volume : z.string().optional()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment