microsoft / microsoft/typespec
Versioning for Regex Patterns (Version decorator application)
Open
design:needed
triaged:core
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
It would be useful if we can version Regex pattern decorators to introduce new naming options for future API versions without affecting past versions. For example, something like this:
model Image is ProxyResource {
@doc("Image name. Use .default for image creation.")
@key("imageName")
@added(Microsoft.AzureSphere.Versions.v2024_03_01)
@pattern("^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$|^\\.default$")
@path
@segment("images")
name: string;
Contributor guide
Assessment
This issue has not been assessed yet.