-
Notifications
You must be signed in to change notification settings - Fork 292
[core] Empty parameter visibility and visibility string deprecation #6088
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
[core] Empty parameter visibility and visibility string deprecation #6088
Conversation
…explicitly testing for legacy functionality
❌ There is undocummented changes. Run The following packages have changes but are not documented.
The following packages have already been documented:
Show changes
|
You can try these changes here
|
.chronus/changes/witemple-msft-visibility-1_0-2025-1-20-17-25-43.md
Outdated
Show resolved
Hide resolved
Azure companion PR: Azure/typespec-azure#2263 |
This is the Azure companion of microsoft/typespec#6088 - Replaces all uses in tests/samples of string visibility modifiers with Lifecycle concepts. - Replaces use of `@parameterVisibility()` with `@patch(#{ implicitOptionality: false })` as needed. - Replaces all usage of deprecated visibility analysis APIs with Lifecycle-based equivalents - Updates lint rules to use more robust methods of detecting visibility requirements. Before merge: - [x] Validate and change specs in azure-rest-api-specs as needed. - [x] Merge microsoft/typespec PR - [x] Reset .gitmodules to point to core repo main branch - [x] Update `core` submodule to microsoft/typespec main
…icrosoft#6088) - Makes the necessary core/http changes to deprecate - `parameterVisibility`/`returnTypeVisibility` with no arguments. - use of string visibility modifiers. - `LegacyParameterVisibility` HTTP flag. - Deprecations are raised as warnings `visibility-legacy` and will be converted to errors in 1.0-rc. - Numerous tests and samples have been updated to replace use of string visibility modifiers with Lifecycle modifiers. - Deprecation messages for deprecated APIs have been updated to indicate that they will be REMOVED in 1.0-rc. - Added `PatchOptions`/`getPatchOptions` which now controls `Visibility.Patch`. WIP: - [x] Replace uses of string-based visibility modifiers throughout Azure specs with Lifecycle modifiers (required to avoid breaking the specs repo). - [x] Replace uses of empty parameter visibility constraints throughout Azure Specs with `PatchOptions`. - [x] Remove uses of deprecated visibility analysis methods throughout Azure TypeSpec libraries/emitters (can be done between now and 1.0-rc if not before the next release).
parameterVisibility
/returnTypeVisibility
with no arguments.LegacyParameterVisibility
HTTP flag.visibility-legacy
and will be converted to errors in 1.0-rc.PatchOptions
/getPatchOptions
which now controlsVisibility.Patch
.WIP:
PatchOptions
.