Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function validation does not validate output cardinality #856

Open
hugohills-regnosys opened this issue Oct 22, 2024 · 0 comments
Open

Function validation does not validate output cardinality #856

hugohills-regnosys opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working subject: model validation This issue is about validation of Rosetta models, such as the type system

Comments

@hugohills-regnosys
Copy link
Contributor

hugohills-regnosys commented Oct 22, 2024

Function validation does not validate output cardinality:

type Foo:
    attr boolean (1..1)

func ShouldEvalulateToOptionalSingleCardinality:
    inputs:
        foos Foo (0..*)
    output:
        result boolean (1..1) // validation on cardinality - if empty list of foos provided, then result will be empty

    set result:
        foos 
            extract item -> attr
            then all = True
@hugohills-regnosys hugohills-regnosys added bug Something isn't working subject: model validation This issue is about validation of Rosetta models, such as the type system labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working subject: model validation This issue is about validation of Rosetta models, such as the type system
Projects
None yet
Development

No branches or pull requests

1 participant