Decorator @minValue, @maxValue to support scalar Duration #3318
Labels
compiler:core
Issues for @typespec/compiler
design:needed
A design request has been raised that needs a proposal
triaged:core
Milestone
Clear and concise description of the problem
Context: ARM guidance instructs Resource Providers to expose duration in the ISO 8601#Durations, e.g.:
Here's my TypeSpec model where I have a property of type
scalar duration
but which is missing the Seagger-side validation for the min and max values:Proposal: update the existing decorators minValue and maxValue to support more scalars, such as
duration
, e.g.:Checklist
The text was updated successfully, but these errors were encountered: