You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model PatternTokenizer extends LexicalTokenizer {
/**
A regular expression pattern to match token separators. Default is an
expression that matches one or more non-word characters.
*/
pattern?: string = "\W+";
/**
Regular expression flags.
*/
flags?: RegexFlags;
/**
The zero-based ordinal of the matching group in the regular expression pattern
to extract into tokens. Use -1 if you want to use the entire pattern to split
the input into tokens, irrespective of matching groups. Default is -1.
*/
group?: int32 = -1;
/**
A URI fragment specifying the type of tokenizer.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "Maintain compatibility with existing models." @odata.type: "#Microsoft.Azure.Search.PatternTokenizer";
}
I expected in the generated code, we set default values for pattern, flags and group. But it does not.
E.g. I have tsp like:
model PatternTokenizer extends LexicalTokenizer {
/**
*/
pattern?: string = "\W+";
/**
*/
flags?: RegexFlags;
/**
*/
group?: int32 = -1;
/**
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "Maintain compatibility with existing models."
@odata.type
: "#Microsoft.Azure.Search.PatternTokenizer";}
I expected in the generated code, we set default values for pattern, flags and group. But it does not.
https://github.com/Azure/azure-rest-api-specs/blob/b7ed8b7ef731ee89b71f4ca699a5280800f969d1/specification/search/Azure.Search/models-service.tsp#L7638
The text was updated successfully, but these errors were encountered: