Replies: 1 comment
-
I was pretty convinced that null was needed in some cases, but I've checked I didn't see anything. I think it's due to previous versions. Thanks for the report. On version 1.6.4 it's fixed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the
security.model.domain
forces every field to be defined with either a null value or a string. This is inconvenient to use because you must write out every field, even if you aren't using all the fields for the domain.EXAMPLE
However, this forced null declaration doesn't seem necessary, as if you pass in the domains with an
<any>
cast, the security middleware still works.STILL WORKS
I think Typetta should remove the null requirement and instead make the fields optional.
Beta Was this translation helpful? Give feedback.
All reactions