Skip to content

Decorators that provide value validation don't do it when defined on properties #7164

@timotheeguerin

Description

@timotheeguerin
model Foo {
  @maxLength(3)
  foo: string;
}

@maxLength(3)
scalar Bar extends string;

const bar: Bar = "abcdef"; // validate

const foo: Foo = #{ foo: "abcde" }; // does not

Playground Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions