-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[Key Vault] TypeSpec enhancements and error improvement #34032
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
mccoyp
wants to merge
4
commits into
main
Choose a base branch
from
mccoyp/kv-enabling-rust
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.
Conversation
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
Next Steps to MergeNext steps that must be taken to merge this PR:
|
PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
|
This was referenced Apr 17, 2025
This was referenced Apr 17, 2025
3716296
to
9cc2432
Compare
@@ -163,7 +163,7 @@ | |||
"name": "certificate-version", | |||
"in": "path", | |||
"description": "The version of the certificate. This URI fragment is optional. If not specified, the latest version of the certificate is returned.", | |||
"required": true, | |||
"required": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be reverted as it's invalid for OpenAPI.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BreakingChangeReviewRequired
<valid label in PR review process>add this label when breaking change review is required
data-plane
KeyVault
PipelineBotTrigger
TypeSpec
Authored with TypeSpec
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.
Data Plane API Specification Update Pull Request
Tip
Overwhelmed by all this guidance? See the
Getting help
section at the bottom of this PR description.This PR proposes three changes:
KeyVaultError
's definition to makeError
a named nullable union instead of an anonymous model.NullableError
, to be defined and used as the type ofKeyVaultError
. This type is just a nullable pointer toError
.KeyVaultErrorError
will no longer be emitted (we instead getError
, like we did with Swagger).NullableError
is not generated."required": true
changing tofalse
, but the new value is accurate."/certificates/{certificate-name}/{certificate-version}"
to"/certificates/{certificate-name}{certificate-version}"
.UseAzure.Core.Legacy.parameterizedNextLink
to make generated clients passincludePending
into some Certificates paging requests.Key Vault paging responses do not includeincludePending
innextLink
s. This means that operations likegetCertificates
include pending certificates in the first page of responses, but not in subsequent pages.ListCertificateOptions
is defined for referencing anincludePending
parameter inparameterizedNextLink
.SincegetCertificates
acceptsincludePending
butgetCertificateVersions
does not, the return type --CertificateListResult
-- needed to be split into two types:CertificateListResult
andCertificateListResultWithPending
. The latter parameterizes theincludePending
parameter intonextLink
but the former does not.nextLink
parameterization has been removed from this PR after further discussion; we're currently working with the service team to decide on an appropriate solution to the issue.PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.
Is this review for (select one):
Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.
Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the
Generated ApiView
comment added to this PR. You can use ApiView to show API versions diff.Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.
❔Got questions? Need additional info?? We are here to help!
Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.
Click here for links to tools, specs, guidelines & other good stuff
Tooling
Guidelines & Specifications
Helpful Links
Getting help
write access
per aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositoriesNext Steps to Merge
comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.and https://aka.ms/ci-fix.
queued
state, please add a comment with contents/azp run
.This should result in a new comment denoting a
PR validation pipeline
has started and the checks should be updated after few minutes.