Skip to content

Cannot replace in c.file metadata when it does not exist #380

@freekh

Description

@freekh

We're seeing errors when trying to run npx val validate --fix on with this:

import { c, s } from "../val.config";

export default c.define(
"/app/remove.val.ts",
s.record(s.object({ file: s.file() })),
{
"/remove": {
file: c.file("/public/val/test.avif"),
},
},
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions