https://www.boundaryml.com logo
🟡 Potential bug with BAML returning 'page' with '...
# questions
j
I think this potentially is a bug - When
page
is returned by BAML eventually, it's returning
page
as an object with
checks
inside it (see image)
Copy code
page int? @check(valid_page, {{ this > 0 }})
    @description("Page number where text is found")
Any idea if this is a bug or am I using the @check wrong https://cdn.discordapp.com/attachments/1253172394345107466/1433306277555208273/image.png?ex=690435fe&is=6902e47e&hm=a1f327c7f8b0bfe0c57512d86d80c6df2395dbd0ee0b0db0dbcd19a55ea63178&
a
check does change the shape of your property into a container that contains {checks ..., value ...}
checks tells you which checks mightve failed
if you dont want this container thing, you can use @assert
j
Ah yes, makes senes. Thanks!