The constraint reference 'string' could not be resolved to a type. (netcoreapp3.0)

In case you use something like


change it to


because ":string" is actually interpreted as a regex-validation-constraint and not a type definition and guess what, everything is reaching the server as string and there is no string-regex-validator :)

I also encountered this recently. The fix for me as to use "alpha" as a replacement for the string type:


This was documented in the Microsoft documentation.