We’ve been trying to get the VS2017 extension to generate a webapi interface, and have run into a few problems.
Is there any way to specify a “pattern:” facet in RAML so it will generate a [RegularExpression] attribute on the model?
We’ve tried the simple example in the RAML v1.0 spec and it just gets ignored.
I’ve looked in the v2.1.0 source for the VS plugin and there seems to be no support for regex patterns, or even custom facets I could read in the t4 generator to emit one.
Can you please suggest a way forwards? We don’t want to double-code the regex patterns in the RAML and the c# code.