-
-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Description
π Summary
- Typia Version: 11.03
- Expected behavior: Make a custom TagBase validator for object target
- Actual behavior: The validation is omitted for generated output
A custom TagBase validator with object target doesn't seem to output its validation code at all. Seems related to target object as just change the target causes it to function as expected.
β― Playground Link
π» Code occuring the bug
import typia from "typia";
type MinEntries<Value extends number> = tags.TagBase<{
target: "object";
kind: "minEntries";
value: Value;
validate: `Object.keys($input).length >= ${Value}`;
exclusive: true;
}>;
type Filters = Partial<{
user_id: number
topic_id: number
post_id: number
}> & MinEntries<1>
export const check = typia.createIs<Filters>();The generated code will not apply the custom validation at all.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels