Skip to content
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

ManagedCCF: Resolving mismatches with existing API specification #27826

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

eddyashton
Copy link
Contributor

Data Plane API - Pull Request

We've been tracking some minor discrepancies between the API as reported by this spec and the actual implementation. This resolves all known places where they diverge, so that this OpenAPI document (and the TypeSpec, though we're still not using that directly) accurately describes the responses produced by the service.

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):

  • a private preview
  • a public preview
  • GA release

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

Checks stuck in `queued` state? If the PR CI checks appear to be stuck in `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.

@eddyashton eddyashton requested a review from a team as a code owner February 19, 2024 16:18
@eddyashton eddyashton requested review from bexxx and mikekistler and removed request for a team February 19, 2024 16:18
Copy link

openapi-pipeline-app bot commented Feb 19, 2024

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Copy link

openapi-pipeline-app bot commented Feb 19, 2024

Swagger Validation Report

️❌BreakingChange: 16 Errors, 0 Warnings failed [Detail]
Compared specs (v0.10.12) new version base version
mccfgov.json 2023-06-01-preview(6484eb9) 2023-06-01-preview(main)
Rule Message
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2000:9
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1950:9
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2117:11
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2067:11
1021 - AddedAdditionalProperties The new version adds an 'additionalProperties' element.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2117:11
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2067:11
1023 - TypeFormatChanged The new version has a different format '' than the previous one 'byte'.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2117:11
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2067:11
1026 - TypeChanged The new version has a different type 'object' than the previous one 'string'.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2117:11
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2067:11
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'digest' renamed or removed?
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1166:7
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1166:7
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'memberId'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1166:7
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1166:7
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'stateDigest'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1166:7
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1166:7
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'memberId, stateDigest'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L431:13
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L431:13
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'memberId, stateDigest'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L536:13
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L536:13
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'keys'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1738:7
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1700:7
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'keys'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L856:13
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L856:13
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'memberId, stateDigest'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1163:5
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1163:5
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'keys'. These properties were not listed as required in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1735:5
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1697:5
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2000:9
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1950:9
1041 - AddedPropertyInResponse The new version has a new property 'publicEncryptionKey' in response that was not found in the old version.
New: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1823:7
Old: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1777:7
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 0 Warnings warning [Detail]
Compared specs (v2.2.2) new version base version
package-2023-06-01-preview-mccf package-2023-06-01-preview-mccf(6484eb9) package-2023-06-01-preview-mccf(main)

The following errors/warnings exist before current PR submission:

Rule Message
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L80
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L134
⚠️ PageableOperation Based on the response model schema, operation 'Proposals_GetActions' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L178
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L178
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L185
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L239
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L247
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L305
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L313
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L416
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L473
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L524
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L575
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L622
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L941
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1038
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength).
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1089
⚠️ PropertyType Property should have a defined type.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1320
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1361
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1782
⚠️ PropertyType Property should have a defined type.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1832
⚠️ PropertyType Property should have a defined type.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1904
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L1911
⚠️ PropertyType Property should have a defined type.
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2004
⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
Location: Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json#L2007
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Feb 19, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Feb 19, 2024

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Feb 19, 2024
@AzureRestAPISpecReview AzureRestAPISpecReview added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane TypeSpec Authored with TypeSpec labels Feb 19, 2024
@eddyashton eddyashton changed the title ManagedCCF: Resolving errors with existing API specification ManagedCCF: Resolving mismatches with existing API specification Feb 19, 2024
@mikeharder
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@eddyashton eddyashton added Versioning-Approved-BugFix https://github.com/Azure/azure-sdk-tools/issues/6374 BreakingChange-Approved-BugFix Changes are to correct the REST API definition to correctly describe service behavior MergeRequested and removed Versioning-Approved-BugFix https://github.com/Azure/azure-sdk-tools/issues/6374 labels Jul 5, 2024
@TimLovellSmith TimLovellSmith enabled auto-merge (squash) July 5, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BreakingChange-Approved-BugFix Changes are to correct the REST API definition to correctly describe service behavior BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required customer-reported Issues that are reported by GitHub users external to the Azure organization. data-plane TypeSpec Authored with TypeSpec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants