Skip to content

Compare TSP conversion of Microsoft.AzureSphere #26895

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Alancere
Copy link
Contributor

@Alancere Alancere commented Nov 30, 2023

Swagger to TSP:

  • enum Versions
  • model moved to models.tsp
  • interface does not use extends
  • list operation renamed to listByXxx
  • LRO uses is ArmResourceActionAsync

TSP to Swagger:

  • x-ms-examples removed
  • operation has an additional parameters: body (Post Method)
  • in: body name renamed to "body"
  • paramters in:query is expanded
  • responses headers increase Location
  • The properties of DeviceUpdate are deleted
  • allOf is expanded
  • Add definitions: ActionType, CreateByType, Origin, Versions

command

pwsh convert.ps1 -swaggerConfigFile "d:\azure-rest-api-specs\specification\sphere\resource-manager\readme.md" -converterCodegen "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvMzI4MzkyMi9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fautorest-openapi-to-cadl-0.7.0-ci.b5e0469e9.tgz" -outputFolder "d:\azure-rest-api-specs\specification\sphere"

Copy link

openapi-pipeline-app bot commented Nov 30, 2023

PR validation pipeline restarted successfully. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

Copy link

openapi-pipeline-app bot commented Nov 30, 2023

Swagger Validation Report

️❌BreakingChange: 104 Errors, 0 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
azuresphere.json 2022-09-01-preview(2bc630e) 2022-09-01-preview(main)

Only 19 items are listed, please refer to log for more details.

Rule Message
1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'CustomFilterQueryParameter' removed or renamed?
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4341:3
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4235:3
1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'CustomMaxPageSizeQueryParameter' removed or renamed?
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4341:3
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4235:3
1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'CustomSkipQueryParameter' removed or renamed?
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4341:3
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4235:3
1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'CustomTopQueryParameter' removed or renamed?
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4341:3
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4235:3
1009 - RemovedRequiredParameter The required parameter 'proofOfPossessionNonceRequest' was removed in the new version.
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L622:11
1009 - RemovedRequiredParameter The required parameter 'listDeviceGroupsRequest' was removed in the new version.
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1063:11
1009 - RemovedRequiredParameter The required parameter 'claimDevicesRequest' was removed in the new version.
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L2039:11
1009 - RemovedRequiredParameter The required parameter 'generateDeviceCapabilityRequest' was removed in the new version.
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L2929:11
1010 - AddingRequiredParameter The required parameter 'body' was added in the new version.
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L595:11
1010 - AddingRequiredParameter The required parameter 'body' was added in the new version.
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1070:11
1010 - AddingRequiredParameter The required parameter 'body' was added in the new version.
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L2045:11
1010 - AddingRequiredParameter The required parameter 'body' was added in the new version.
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L2911:11
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3069:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3085:7
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3143:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3150:7
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3736:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3697:7
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3333:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3320:7
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3447:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3417:7
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3418:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L3397:7
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4080:7
Old: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4023:7
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 1 Errors, 68 Warnings failed [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-2022-09-01-preview package-2022-09-01-preview(2bc630e) package-2022-09-01-preview(main)

[must fix]The following errors/warnings are introduced by current PR:

Only 19 items are listed, please refer to log for more details.

Rule Message Related RPC [For API reviewers]
ResourceHasXMsResourceEnabled A 'Resource' definition must have x-ms-azure-resource extension enabled and set to true.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L4263
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L69
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L100
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L134
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L171
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L211
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L277
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L326
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L386
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L394
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L397
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L400
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L466
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L515
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L564
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L622
⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L664
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L672
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L675


The following errors/warnings exist before current PR submission:

Only 19 items are listed, please refer to log for more details.

Rule Message
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L199
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L248
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L254
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L314
DeleteResponseCodes Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L326
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L501
ResourceNameRestriction The resource name parameter 'imageName' should be defined with a 'pattern' restriction.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L743
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L779
RepeatedPathInfo The 'imageName' already appears in the path, please don't repeat it in the request body.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L815
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L835
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L841
DeleteResponseCodes Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L864
ParametersInPost $filter is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L937
ParametersInPost $top is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L937
ParametersInPost $skip is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L937
ParametersInPost $maxpagesize is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L937
ParametersInPost $filter is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1017
ParametersInPost $top is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1017
ParametersInPost $skip is a query parameter. Post operation must not contain any query parameter other than api-version.
Location: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1017
️❌Avocado: 44 Errors, 0 Warnings failed [Detail]

Only 19 items are listed, please refer to log for more details.

Rule Message
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/DeleteCatalog.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/DeleteDeployment.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/DeleteDevice.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/DeleteDeviceGroup.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/DeleteImage.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/DeleteProduct.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetCatalog.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetCatalogsRG.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetCatalogsSub.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetCertificate.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetCertificates.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetDeployment.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetDeployments.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetDevice.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetDeviceGroup.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetDeviceGroups.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetDevices.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetImage.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/sphere/resource-manager/readme.md
json: preview/2022-09-01-preview/examples/GetImages.json
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️❌TypeSpecAPIView: 0 Errors, 1 Warnings failed [Detail]
Rule Message
⚠️ Failed to generate TypeSpec APIView. Please check the detail log and make sure TypeSpec compiler version is the latest. "How to fix":"Check the detailed log and verify if the TypeSpec emitter is able to create API review file for the changes in PR."
️❌ModelValidation: 45 Errors, 0 Warnings failed [Detail]

Only 19 items are listed, please refer to log for more details.

Rule Message
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Operations_List.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L69:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_ListBySubscription.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L100:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_ListByResourceGroup.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L134:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_Get.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L171:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_CreateOrUpdate.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L211:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_Update.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L277:16
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_Delete.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L326:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Certificates_ListByCatalog.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L386:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Certificates_Get.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L466:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Certificates_RetrieveCertChain.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L515:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Certificates_RetrieveProofOfPossessionNonce.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L564:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_CountDevices.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L622:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Images_ListByCatalog.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L664:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Images_Get.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L744:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Images_CreateOrUpdate.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L791:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Images_Delete.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L864:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_ListDeployments.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L931:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_ListDeviceGroups.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1011:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Catalogs_ListDeviceInsights.
Url: Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json#L1100:15
️❌SemanticValidation: 4 Errors, 0 Warnings failed [Detail]
Rule Message
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: swagger
JsonUrl: 2bc630e79735c496c65ab307a79fead2088cf51e/specification/sphere/resources.json
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: info
JsonUrl: 2bc630e79735c496c65ab307a79fead2088cf51e/specification/sphere/resources.json
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: paths
JsonUrl: 2bc630e79735c496c65ab307a79fead2088cf51e/specification/sphere/resources.json
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: Resources
JsonUrl: 2bc630e79735c496c65ab307a79fead2088cf51e/specification/sphere/resources.json
️️✔️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: 0 Errors, 0 Warnings failed [Detail]
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Nov 30, 2023

Swagger Generation Artifacts

️❌ApiDocPreview: 1 Errors, 0 Warnings failed [Detail]
Rule Message
RestBuild error "logUrl":"https://apidrop.visualstudio.com/Content%20CI/_build/results?buildId=405992&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b",
"detail":"Run.ps1 failed with exit code 1 "
️❌SDK Breaking Change Tracking failed [Detail]

Breaking Changes Tracking

azure-sdk-for-go - sdk/resourcemanager/sphere/armsphere - 0.3.0
+	Function `*CatalogsClient.CountDevices` parameter(s) have been changed from `(context.Context, string, string, *CatalogsClientCountDevicesOptions)` to `(context.Context, string, string, any, *CatalogsClientCountDevicesOptions)`
+	Function `*CatalogsClient.NewListDeploymentsPager` parameter(s) have been changed from `(string, string, *CatalogsClientListDeploymentsOptions)` to `(string, string, any, *CatalogsClientListDeploymentsOptions)`
+	Function `*CatalogsClient.NewListDeviceInsightsPager` parameter(s) have been changed from `(string, string, *CatalogsClientListDeviceInsightsOptions)` to `(string, string, any, *CatalogsClientListDeviceInsightsOptions)`
+	Function `*CatalogsClient.NewListDevicesPager` parameter(s) have been changed from `(string, string, *CatalogsClientListDevicesOptions)` to `(string, string, any, *CatalogsClientListDevicesOptions)`
+	Function `*CatalogsClient.Update` parameter(s) have been changed from `(context.Context, string, string, CatalogUpdate, *CatalogsClientUpdateOptions)` to `(context.Context, string, string, CatalogTagsUpdate, *CatalogsClientUpdateOptions)`
+	Function `*CertificatesClient.RetrieveCertChain` parameter(s) have been changed from `(context.Context, string, string, string, *CertificatesClientRetrieveCertChainOptions)` to `(context.Context, string, string, string, any, *CertificatesClientRetrieveCertChainOptions)`
+	Function `*DeviceGroupsClient.CountDevices` parameter(s) have been changed from `(context.Context, string, string, string, string, *DeviceGroupsClientCountDevicesOptions)` to `(context.Context, string, string, string, string, any, *DeviceGroupsClientCountDevicesOptions)`
+	Function `*DevicesClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, string, DeviceUpdate, *DevicesClientBeginUpdateOptions)` to `(context.Context, string, string, string, string, string, any, *DevicesClientBeginUpdateOptions)`
+	Function `*ProductsClient.CountDevices` parameter(s) have been changed from `(context.Context, string, string, string, *ProductsClientCountDevicesOptions)` to `(context.Context, string, string, string, any, *ProductsClientCountDevicesOptions)`
+	Function `*ProductsClient.NewGenerateDefaultDeviceGroupsPager` parameter(s) have been changed from `(string, string, string, *ProductsClientGenerateDefaultDeviceGroupsOptions)` to `(string, string, string, any, *ProductsClientGenerateDefaultDeviceGroupsOptions)`
+	Struct `CatalogUpdate` has been removed
+	Struct `DeviceUpdateProperties` has been removed
+	Struct `DeviceUpdate` has been removed
azure-sdk-for-python - track2_azure-mgmt-sphere - 1.0.0b1
+	Operation CatalogsOperations.count_devices has a new required parameter body
+	Operation CatalogsOperations.list_deployments has a new required parameter body
+	Operation CatalogsOperations.list_device_groups has a new required parameter body
+	Operation CatalogsOperations.list_device_groups no longer has parameter list_device_groups_request
+	Operation CatalogsOperations.list_device_insights has a new required parameter body
+	Operation CatalogsOperations.list_devices has a new required parameter body
+	Operation CertificatesOperations.retrieve_cert_chain has a new required parameter body
+	Operation CertificatesOperations.retrieve_proof_of_possession_nonce has a new required parameter body
+	Operation CertificatesOperations.retrieve_proof_of_possession_nonce no longer has parameter proof_of_possession_nonce_request
+	Operation DeviceGroupsOperations.begin_claim_devices has a new required parameter body
+	Operation DeviceGroupsOperations.begin_claim_devices no longer has parameter claim_devices_request
+	Operation DeviceGroupsOperations.count_devices has a new required parameter body
+	Operation DevicesOperations.begin_generate_capability_image has a new required parameter body
+	Operation DevicesOperations.begin_generate_capability_image no longer has parameter generate_device_capability_request
+	Operation ProductsOperations.count_devices has a new required parameter body
+	Operation ProductsOperations.generate_default_device_groups has a new required parameter body
azure-sdk-for-js - @azure/arm-sphere - 1.0.0-beta.2
+	Interface Catalog has a new required parameter name
+	Interface Device has a new required parameter name
+	Interface DeviceGroup has a new required parameter name
+	Interface DeviceGroupUpdate no longer has parameter allowCrashDumpsCollection
+	Interface DeviceGroupUpdate no longer has parameter description
+	Interface DeviceGroupUpdate no longer has parameter osFeedType
+	Interface DeviceGroupUpdate no longer has parameter regionalDataBoundary
+	Interface DeviceGroupUpdate no longer has parameter updatePolicy
+	Interface DeviceUpdate no longer has parameter deviceGroupId
+	Interface Product has a new required parameter name
+	Interface ProductUpdate no longer has parameter description
️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed [Logs] Generate from af9b9ca. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    warn		specification/sphere/Sphere.Management/tspconfig.yaml skipped due to azure-sdk-for-net-track2 not found in tspconfig.yaml
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 714 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:807
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 807 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 714 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
  • Azure.ResourceManager.Sphere [View full logs]  [Preview SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-python failed [Detail]
  • Code Generator Failed [Logs] Generate from af9b9ca. SDK Automation 14.0.0
    command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
    cmderr	[automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    warn		specification/sphere/Sphere.Management/tspconfig.yaml skipped due to azure-sdk-for-python not found in tspconfig.yaml
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    cmderr	[automation_generate.sh]
    cmderr	[automation_generate.sh]  New patch version of npm available! 10.2.3 -> 10.2.5
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_generate.sh] npm notice
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/PropertyRedeclaration | Schema 'DeviceGroup' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[A-Za-z0-9]{1,2}$|^[A-Za-z0-9][A-Za-z0-9\s]{1,48}[A-Za-z0-9]$|^\.default$|^\.unassigned$']
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/PropertyRedeclarationWarning | Schema 'Image' has a property 'name' that is already declared the parent schema 'Resource' but isn't significantly different. The property has been removed from Image
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/PropertyRedeclaration | Schema 'Product' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[\w][\w\s]{1,48}[\w]$|^\.default$|^\.unassigned$']
    cmdout	[automation_generate.sh] [Autorest] fatal   | Error: 1 errors occured -- cannot continue.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Process() cancelled due to failure
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin prechecker reported failure.
    cmdout	[automation_generate.sh] [Autorest] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/PropertyRedeclaration | Schema 'DeviceGroup' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[A-Za-z0-9]{1,2}$|^[A-Za-z0-9][A-Za-z0-9\s]{1,48}[A-Za-z0-9]$|^\.default$|^\.unassigned$']
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/PropertyRedeclarationWarning | Schema 'Image' has a property 'name' that is already declared the parent schema 'Resource' but isn't significantly different. The property has been removed from Image
    cmdout	[automation_generate.sh] [Autorest] warning | PreCheck/PropertyRedeclaration | Schema 'Product' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[\w][\w\s]{1,48}[\w]$|^\.default$|^\.unassigned$']
    cmdout	[automation_generate.sh] [Autorest] fatal   | Error: 1 errors occured -- cannot continue.
    cmdout	[automation_generate.sh] [Autorest] fatal   | Process() cancelled due to failure
    cmdout	[automation_generate.sh] [Autorest] error   |   Error: Plugin prechecker reported failure.
    cmdout	[automation_generate.sh] [Autorest] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmdout	[automation_generate.sh] [Autorest]/mnt/vss/_work/1/s/azure-sdk-for-python_tmp/venv-sdk/auto_temp.json does not exist!!!Error happened during codegen
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-python]: sh scripts/automation_generate.sh
    warn	Skip package processing as generation is failed
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs] Generate from af9b9ca. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.2
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.2
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] rrent
    cmderr	[init.sh]                                  Dload  Upload   Total   Spent    Left  Speed
    cmderr	[init.sh] 
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    cmderr	[init.sh] Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz...
    cmderr	[init.sh] ######################## 100.0%
    cmderr	[init.sh] Computing checksum with sha256sum
    cmderr	[init.sh] Checksums matched!
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-sphere [View full logs]  [Preview SDK Changes]
️❌ azure-sdk-for-go failed [Detail]
  • Code Generator Failed [Logs] Generate from af9b9ca. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    warn		specification/sphere/Sphere.Management/tspconfig.yaml skipped due to azure-sdk-for-go not found in tspconfig.yaml
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    cmderr	[generator automation-v2] [ERROR] total 1 error(s):
    cmderr	[generator automation-v2] [ERROR] failed to execute `go generate` '�[33;1mWARNING: Unable to find version for /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere�[0m
    cmderr	[generator automation-v2] [ERROR] Cannot find go module under resourcemanager/sphere/armsphere, try to build in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere
    cmderr	[generator automation-v2] [ERROR] ##[command]Cleaning auto-generated files in /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere
    cmderr	[generator automation-v2] [ERROR] ##[command]Executing autorest.go in  /mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere
    cmderr	[generator automation-v2] [ERROR] autorest --use=@autorest/[email protected] --go --track2 --output-folder=/mnt/vss/_work/1/s/azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere --clear-output-folder=false --go.clear-output-folder=false --honor-body-placement=false --remove-unreferenced-types=true ./autorest.md
    cmderr	[generator automation-v2] [ERROR] AutoRest code generation utility [cli version: 3.6.1; node: v18.19.0]
    cmderr	[generator automation-v2] [ERROR] (C) 2018 Microsoft Corporation.
    cmderr	[generator automation-v2] [ERROR] https://aka.ms/autorest
    cmderr	[generator automation-v2] [ERROR] There is a new version of AutoRest available (3.7.1).
    cmderr	[generator automation-v2] [ERROR] > You can install the newer version with with npm install -g autorest@latest
    cmderr	[generator automation-v2] [ERROR] info    |    Loading AutoRest core      '/home/cloudtest/.autorest/@[email protected]/nodemodules/@autorest/core/dist' (3.10.1)
    cmderr	[generator automation-v2] [ERROR] info    |    Installing AutoRest extension '@autorest/go' (4.0.0-preview.60 -> 4.0.0-preview.60)
    cmderr	[generator automation-v2] [ERROR] info    |    Installed AutoRest extension '@autorest/go' (4.0.0-preview.60->4.0.0-preview.60)
    cmderr	[generator automation-v2] [ERROR] info    |    Installing AutoRest extension '@autorest/modelerfour' (4.26.2 -> 4.26.2)
    cmderr	[generator automation-v2] [ERROR] info    |    Installed AutoRest extension '@autorest/modelerfour' (4.26.2->4.26.2)
    cmderr	[generator automation-v2] [ERROR] warning | IgnoredPropertyNextToRef | Semantic violation: Sibling values alongside $ref will be ignored. See https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md for allowed values (components > schemas > Resource > properties > systemData)
    cmderr	[generator automation-v2] [ERROR] keys: [ �[32m'type'�[39m ]
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
    cmderr	[generator automation-v2] [ERROR] error   | PreCheck/DuplicateSchema | Duplicate Schema named 'Resource' (3 differences):
    cmderr	[generator automation-v2] [ERROR] - properties.systemData.type: <none> => "object"
    cmderr	[generator automation-v2] [ERROR] - title: <none> => "Resource"
    cmderr	[generator automation-v2] [ERROR] - x-ms-azure-resource: <none> => true; This error can be *temporarily* avoided by using the 'modelerfour.lenient-model-deduplication' setting.  NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that.
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclaration | Schema 'Catalog' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[A-Za-z0-9_-]{1,50}$']
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclarationWarning | Schema 'Certificate' has a property 'name' that is already declared the parent schema 'Resource' but isn't significantly different. The property has been removed from Certificate
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclarationWarning | Schema 'Deployment' has a property 'name' that is already declared the parent schema 'Resource' but isn't significantly different. The property has been removed from Deployment
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclaration | Schema 'Device' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[a-zA-Z0-9-]{128}$']
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclaration | Schema 'DeviceGroup' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[A-Za-z0-9]{1,2}$|^[A-Za-z0-9][A-Za-z0-9\s]{1,48}[A-Za-z0-9]$|^\.default$|^\.unassigned$']
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclarationWarning | Schema 'Image' has a property 'name' that is already declared the parent schema 'Resource' but isn't significantly different. The property has been removed from Image
    cmderr	[generator automation-v2] [ERROR] warning | PreCheck/PropertyRedeclaration | Schema 'Product' has a property 'name' that is conflicting with a property in the parent schema 'Resource' differs more than just description : [pattern => '^[\w][\w\s]{1,48}[\w]$|^\.default$|^\.unassigned$']
    cmderr	[generator automation-v2] [ERROR] fatal   | Error: 1 errors occured -- cannot continue.
    cmderr	[generator automation-v2] [ERROR] fatal   | Process() cancelled due to failure
    cmderr	[generator automation-v2] [ERROR] error   |   Error: Plugin prechecker reported failure.
    cmderr	[generator automation-v2] [ERROR] error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.
    cmderr	[generator automation-v2] [ERROR] ##[error]Error running autorest.go
    cmderr	[generator automation-v2] [ERROR] build.go:5: running "pwsh": exit status 1
    cmderr	[generator automation-v2] [ERROR] ': exit status 1
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go]: generator automation-v2
    warn	Skip package processing as generation is failed
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from af9b9ca. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
  • ️✔️@azure/arm-sphere [View full logs]  [Preview SDK Changes] Breaking Change Detected
    info	[Changelog] **Features**
    info	[Changelog]
    info	[Changelog]   - Added Interface DeviceGroupUpdateProperties
    info	[Changelog]   - Added Interface DeviceUpdateProperties
    info	[Changelog]   - Added Interface ProductUpdateProperties
    info	[Changelog]   - Added Interface ResourceAutoGenerated
    info	[Changelog]   - Added Type Alias Versions
    info	[Changelog]   - Interface DeviceGroupsClaimDevicesHeaders has a new optional parameter location
    info	[Changelog]   - Interface DeviceGroupUpdate has a new optional parameter properties
    info	[Changelog]   - Interface DevicesGenerateCapabilityImageHeaders has a new optional parameter location
    info	[Changelog]   - Interface DevicesUpdateHeaders has a new optional parameter location
    info	[Changelog]   - Interface DeviceUpdate has a new optional parameter properties
    info	[Changelog]   - Interface ProductUpdate has a new optional parameter properties
    info	[Changelog]   - Added Enum KnownVersions
    info	[Changelog]
    info	[Changelog] **Breaking Changes**
    info	[Changelog]
    info	[Changelog]   - Interface DeviceGroupUpdate no longer has parameter allowCrashDumpsCollection
    info	[Changelog]   - Interface DeviceGroupUpdate no longer has parameter description
    info	[Changelog]   - Interface DeviceGroupUpdate no longer has parameter osFeedType
    info	[Changelog]   - Interface DeviceGroupUpdate no longer has parameter regionalDataBoundary
    info	[Changelog]   - Interface DeviceGroupUpdate no longer has parameter updatePolicy
    info	[Changelog]   - Interface DeviceUpdate no longer has parameter deviceGroupId
    info	[Changelog]   - Interface ProductUpdate no longer has parameter description
    info	[Changelog]   - Interface Catalog has a new required parameter name
    info	[Changelog]   - Interface Device has a new required parameter name
    info	[Changelog]   - Interface DeviceGroup has a new required parameter name
    info	[Changelog]   - Interface Product has a new required parameter name
️⚠️ azure-resource-manager-schemas warning [Detail]
  • ⚠️Warning [Logs] Generate from af9b9ca. Schema Automation 14.0.0
    command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
    cmderr	[initScript.sh] notice
    cmderr	[initScript.sh] npm notice New patch version of npm available! 10.2.3 -> 10.2.5
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
    cmderr	[initScript.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[initScript.sh] npm notice
    warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
    command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    warn	No file changes detected after generation
  • ️✔️sphere [View full logs
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Nov 30, 2023

namespace Microsoft.AzureSphere;

@doc("The available API versions.")
enum Versions {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • enum Versions

Comment on lines -225 to -228
"x-ms-examples": {
"Catalogs_Get": {
"$ref": "./examples/GetCatalog.json"
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • x-ms-examples removed

Comment on lines +1691 to +1723
"name": "$filter",
"in": "query",
"description": "Filter the result list using the given expression",
"required": false,
"type": "string",
"x-ms-client-name": "filter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
"name": "$top",
"in": "query",
"description": "The number of result items to return.",
"required": false,
"type": "integer",
"format": "int32",
"x-ms-client-name": "top"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
"name": "$skip",
"in": "query",
"description": "The number of result items to skip.",
"required": false,
"type": "integer",
"format": "int32",
"x-ms-client-name": "skip"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
"name": "$maxpagesize",
"in": "query",
"description": "The maximum number of result items per page.",
"required": false,
"type": "integer",
"format": "int32",
"x-ms-client-name": "maxpagesize"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • paramters in:query is expanded

Comment on lines +4332 to +4347
"Versions": {
"type": "string",
"description": "The available API versions.",
"enum": [
"2022-09-01-preview"
],
"x-ms-enum": {
"name": "Versions",
"modelAsString": true,
"values": [
{
"name": "v2022_09_01_preview",
"value": "2022-09-01-preview"
}
]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add definitions: Versions

Comment on lines +4053 to +4064
"Origin": {
"type": "string",
"enum": [
"user",
"system",
"user,system"
],
"x-ms-enum": {
"name": "Origin",
"modelAsString": true
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add definitions: Origin

Comment on lines +3377 to +3389
"CreatedByType": {
"type": "string",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"x-ms-enum": {
"name": "CreatedByType",
"modelAsString": true
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add definitions: CreatedByType

Comment on lines +3082 to +3091
"ActionType": {
"type": "string",
"enum": [
"Internal"
],
"x-ms-enum": {
"name": "ActionType",
"modelAsString": true
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add definitions: ActionType

@Alancere Alancere changed the title Compare the sphere after tsp convert Compare TSP conversion of Microsoft.AzureSphere Nov 30, 2023
@Alancere Alancere requested a review from HarveyLink November 30, 2023 09:11
@doc("List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")
list is ArmResourceListByParent<
TResource,
ListQueryParameters & BaseParameters<TResource>
>;
@doc("Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")
createOrUpdate is ArmResourceCreateOrUpdateAsync<Deployment>;
@doc("Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")
delete is ArmResourceDeleteAsync<Deployment>;
}

@armResourceOperations
interface Deployments extends ProxyResourceOperationsDeployments<Deployment> {}

@doc("The properties of deployment")
model DeploymentProperties {
@visibility("create", "read")
@doc("Deployment ID")
deploymentId?: string;

@doc("Images deployed")
@visibility("create", "read")
deployedImages?: Image[];

@doc("Deployment date UTC")
@visibility("read")
deploymentDateUtc?: utcDateTime;

@visibility("read")
@doc("The status of the last operation.")
provisioningState?: ProvisioningState;
@doc("List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.")
listByDeviceGroup is ArmResourceListByParent<
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list operation renamed to listByXxx

Comment on lines -2040 to +2100
"name": "claimDevicesRequest",
"name": "body",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • in: body name renamed to "body"

@kazrael2119 kazrael2119 requested review from kazrael2119 and removed request for kazrael2119 January 10, 2024 05:59
Comment on lines +108 to +125
@doc("Common fields that are returned in the response for all Azure Resource Manager resources")
model Resource {
@doc("Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}")
@visibility("read")
id?: string;

@doc("The name of the resource")
@visibility("read")
name?: string;

@doc("The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"")
@visibility("read")
type?: string;

@doc("Azure Resource Manager metadata containing createdBy and modifiedBy information.")
@visibility("read")
systemData?: SystemData;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The model Resource was added but not used

Comment on lines +3079 to +3088
"name": {
"type": "string",
"description": "Name of catalog",
"pattern": "^[A-Za-z0-9_-]{1,50}$",
"readOnly": true
}
},
"required": [
"name"
],
Copy link
Contributor Author

@Alancere Alancere Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add name properties is readOnly and required ?
add model @path

Comment on lines 3534 to 3537
"properties": {
"$ref": "#/definitions/DeviceGroupUpdateProperties",
"x-ms-client-flatten": true
"description": "The updatable properties of the DeviceGroup."
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"x-ms-client-flatten": true is removed and description is added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants