-
Notifications
You must be signed in to change notification settings - Fork 315
Minmax value more types #8580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
timotheeguerin
wants to merge
26
commits into
microsoft:main
Choose a base branch
from
timotheeguerin:minmax-value-more-types
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Minmax value more types #8580
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
116dbdf
Initial plan
Copilot 6fc0fce
Add @minValue/@maxValue support for datetime types
Copilot ffd7a03
Complete @minValue/@maxValue datetime support with comprehensive testing
Copilot 6d18bf0
Rename validation function and update error messages per review feedback
Copilot b5c2c51
Fix test constructors and add value validation per review feedback
Copilot 8aab5c1
Changes before error encountered
Copilot 0670d5b
Fix unixTimestamp32 test to use fromISO constructor
Copilot 82cf960
Fix CI failures: remove unused function and update datetime tests to …
Copilot f8a72da
progress
timotheeguerin 8f1b411
fix
timotheeguerin 8638de7
fixup
timotheeguerin f6bac2a
.
timotheeguerin a146841
Create minmax-value-more-types-2025-8-26-17-2-2.md
timotheeguerin fa120d3
fix openapi3
timotheeguerin 52e6b38
.
timotheeguerin b3a512e
Create minmax-value-more-types-2025-8-26-17-58-29.md
timotheeguerin 8d8bb16
tweak
timotheeguerin df8579d
Create minmax-value-more-types-2025-8-26-18-20-28.md
timotheeguerin ca6a659
rename
timotheeguerin be4aa50
Minvalue of 0 works
timotheeguerin 3071549
fix
timotheeguerin 7cbee19
fix
timotheeguerin c43637c
regen docs
timotheeguerin d798687
Merge branch 'main' into minmax-value-more-types
timotheeguerin b1f6af4
Merge branch 'main' into minmax-value-more-types
timotheeguerin dd80fdd
Apply suggestion from @timotheeguerin
timotheeguerin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: fix | ||
packages: | ||
- "@typespec/tspd" | ||
--- | ||
|
||
Handle union of union correctly for target type in decorator signature generation |
13 changes: 13 additions & 0 deletions
13
.chronus/changes/minmax-value-more-types-2025-8-26-17-58-29.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: feature | ||
packages: | ||
- "@typespec/compiler" | ||
--- | ||
|
||
Add support for `@minValue`, `@maxValue` and their exclusive variant for datetime and duration types. | ||
Expose as well the following APIs | ||
- `getMinValueForScalar` | ||
- `getMaxValueForScalar` | ||
- `getMinValueExclusiveForScalar` | ||
- `getMaxValueExclusiveForScalar` |
8 changes: 8 additions & 0 deletions
8
.chronus/changes/minmax-value-more-types-2025-8-26-18-20-28.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: feature | ||
packages: | ||
- "@typespec/openapi3" | ||
--- | ||
|
||
Add support for min/max value for date time and duration types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.