Skip to content

[core] allow default values on non-optional properties#1815

Merged
tjprescott merged 3 commits into
microsoft:mainfrom
tjprescott:core/AllowRequiredDefault
Apr 12, 2023
Merged

[core] allow default values on non-optional properties#1815
tjprescott merged 3 commits into
microsoft:mainfrom
tjprescott:core/AllowRequiredDefault

Conversation

@tjprescott

Copy link
Copy Markdown
Member

Fixes #1706.

@github-actions

Copy link
Copy Markdown
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/1815/

Website: https://cadlwebsite.z1.web.core.windows.net/prs/1815/

Comment thread docs/extending-typespec/emitters-basics.md Outdated
@tjprescott
tjprescott force-pushed the core/AllowRequiredDefault branch from 80dae81 to 07870fd Compare April 12, 2023 21:20
@tjprescott
tjprescott merged commit 13d377b into microsoft:main Apr 12, 2023
@tjprescott
tjprescott deleted the core/AllowRequiredDefault branch April 12, 2023 21:42
steverice added a commit to steverice/typespec that referenced this pull request Nov 20, 2024
Since microsoft#1815, any property can have a default value. This commit updates the documentation to reflect that.
steverice added a commit to steverice/typespec that referenced this pull request Nov 21, 2024
Since microsoft#1815, any property can have a default value. This commit updates the documentation to reflect that.
github-merge-queue Bot pushed a commit that referenced this pull request Jan 9, 2025
Since #1815, any property can
have a default value. This commit updates the documentation to reflect
that.

Co-authored-by: Will Temple <witemple@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow default values for required properties

2 participants