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

move common type definition to pick up from latest official typing file #28870

Conversation

MasterRyd3l
Copy link
Member

this PR updates all the v2 common typing to v5

Copy link

openapi-pipeline-app bot commented Apr 26, 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 Apr 26, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 11 Errors, 17 Warnings failed [Detail]
Compared specs (v0.10.8) new version base version
capabilities.json 2024-03-22-preview(68001dc) 2024-01-01(main)
capabilities.json 2024-03-22-preview(68001dc) 2023-10-27-preview(main)
capabilityTypes.json 2024-03-22-preview(68001dc) 2024-01-01(main)
capabilityTypes.json 2024-03-22-preview(68001dc) 2023-10-27-preview(main)
common.json 2024-03-22-preview(68001dc) 2024-01-01(main)
common.json 2024-03-22-preview(68001dc) 2023-10-27-preview(main)
privateAccesses.json 2024-03-22-preview(68001dc) 2023-10-27-preview(main)
targetTypes.json 2024-03-22-preview(68001dc) 2024-01-01(main)
targetTypes.json 2024-03-22-preview(68001dc) 2023-10-27-preview(main)
targets.json 2024-03-22-preview(68001dc) 2024-01-01(main)
targets.json 2024-03-22-preview(68001dc) 2023-10-27-preview(main)

The following breaking changes are detected by comparison with the latest stable version:

Rule Message
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: preview/2024-03-22-preview/types/common.json#L39:5
Old: stable/2024-01-01/types/common.json#L78:5
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/68001dc111fab4458683765920c3b526401f682f/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-03-22-preview/types/experiments.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/chaos/resource-manager/Microsoft.Chaos/stable/2024-01-01/types/experiments.json",
"details":"incompatible properties : type\n definitions/experimentIdentity/properties/type\n at file:///mnt/vss/_work/1/azure-rest-api-specs/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-03-22-preview/types/experiments.json#L56:8\n definitions/ManagedServiceIdentity/properties/type\n at file:///mnt/vss/_work/1/azure-rest-api-specs/specification/common-types/resource-management/v5/managedidentity.json#L66:8"
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/capabilityTypes.json#L9:5
Old: stable/2024-01-01/types/capabilityTypes.json#L9:5
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/capabilityTypes.json#L105:11
Old: stable/2024-01-01/types/capabilityTypes.json#L110:11
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/targetTypes.json#L9:5
Old: stable/2024-01-01/types/targetTypes.json#L9:5
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/targetTypes.json#L68:11
Old: stable/2024-01-01/types/targetTypes.json#L73:11


The following breaking changes are detected by comparison with the latest preview version:

Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/68001dc111fab4458683765920c3b526401f682f/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-03-22-preview/types/experiments.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-10-27-preview/types/experiments.json",
"details":"incompatible properties : type\n definitions/experimentIdentity/properties/type\n at file:///mnt/vss/_work/1/azure-rest-api-specs/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-03-22-preview/types/experiments.json#L56:8\n definitions/ManagedServiceIdentity/properties/type\n at file:///mnt/vss/_work/1/azure-rest-api-specs/specification/common-types/resource-management/v5/managedidentity.json#L66:8"
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v2/types.json#L14:9
⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: preview/2024-03-22-preview/types/common.json#L39:5
Old: preview/2023-10-27-preview/types/common.json#L66:5
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/capabilityTypes.json#L9:5
Old: preview/2023-10-27-preview/types/capabilityTypes.json#L9:5
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/capabilityTypes.json#L105:11
Old: preview/2023-10-27-preview/types/capabilityTypes.json#L110:11
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/targetTypes.json#L9:5
Old: preview/2023-10-27-preview/types/targetTypes.json#L9:5
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: preview/2024-03-22-preview/types/targetTypes.json#L68:11
Old: preview/2023-10-27-preview/types/targetTypes.json#L73:11
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
Compared specs (v2.2.0) new version base version
package-preview-2024-03 package-preview-2024-03(68001dc) package-preview-2024-03(MasterRyd3l-chaos-Microsoft.Chaos-2024-03-22-preview)
️️✔️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.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️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 Apr 26, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning in generating from ce9179c3da66821f7fbabff8ef50c846d099a0db. 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: Skipping azure-nspkg as it is not installed.
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    cmderr	[automation_generate.sh] npm notice
    cmderr	[automation_generate.sh] npm notice New minor version of npm available! 10.5.0 -> 10.6.0
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.6.0>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️azure-mgmt-chaos [Preview SDK Changes]
    • azure-mgmt-chaos-1.0.0b5.zip
    • azure_mgmt_chaos-1.0.0b5-py3-none-any.whl
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog]   - Added operation group PrivateAccessesOperations
    info	[Changelog]   - Model Experiment has a new parameter customer_data_storage
    info	[Changelog]   - Model Resource has a new parameter system_data
    info	[Changelog]   - Model TrackedResource has a new parameter system_data
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning in generating from ce9179c3da66821f7fbabff8ef50c846d099a0db. 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
    cmderr	[init.sh] npm notice New minor version of npm available! 10.5.0 -> 10.6.0
    cmderr	[init.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.6.0>
    cmderr	[init.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[init.sh] npm notice
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-chaos [Preview SDK Changes]
    • pom.xml
    • azure-resourcemanager-chaos-1.2.0-beta.1.jar
    • azure-resourcemanager-chaos-1.2.0-beta.1-sources.jar
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from ce9179c3da66821f7fbabff8ef50c846d099a0db. 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
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️sdk/resourcemanager/chaos/armchaos [Preview SDK Changes]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from ce9179c3da66821f7fbabff8ef50c846d099a0db. 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-chaos [Preview SDK Changes]
    • azure-arm-chaos-2.0.0-beta.1.tgz
️❌ azure-resource-manager-schemas failed [Detail]
  • Failed in generating from ce9179c3da66821f7fbabff8ef50c846d099a0db. 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 minor version of npm available! 10.5.0 -> 10.6.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.6.0>
    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
  • chaos/resource-manager [Preview Schema Changes]
️⚠️ azure-powershell warning [Detail]
  • ⚠️Warning in generating from ce9179c3da66821f7fbabff8ef50c846d099a0db. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
  • ⚠️Az.chaos.DefaultTag [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

@MasterRyd3l MasterRyd3l merged commit a80f393 into MasterRyd3l-chaos-Microsoft.Chaos-2024-03-22-preview Apr 29, 2024
27 of 29 checks passed
@MasterRyd3l MasterRyd3l deleted the jduan/2024-03-22-typing-upgrade branch April 29, 2024 20:24
mentat9 pushed a commit that referenced this pull request May 13, 2024
* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Test my push permission

* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Convert two operations to be async (#28350)

* Convert two operations to be async

* Fix examples

* Resolve comments

* Change delete async operation status code

* Added Patch Tags Endpoint to Private Link (#28296)

* Added UpdatePrivateAccessTags endpoint

* Addressing points for the PR review, it was about rename the new private link endpoint to PrivateAccesses_Patch, and changned the return code from 200 to 202

* Update the Private Access tags payload

---------

Co-authored-by: Adi Hazeem <[email protected]>

* update readme

* Resolved conflict

* Resolved conflict

* Resolved conflict

* Fix linting error for PUT and DELETE (#28417)

* Fix check error

* move readonly flag

* Added 200 response to PrivateAccess Tags Patch Endpoint (#28465)

* Added 200 response to PrivateAccess Tags example

---------

Co-authored-by: Adi Hazeem <[email protected]>

* add missing LRO header to open api spec

* attempted model validation fix

* fixed prop spelling mistake

* prettier

* remove unused example file

* move common type definition to pick up from latest official typing file

* move common type definition to pick up from latest official typing file (#28870)

Co-authored-by: James Duan <[email protected]>

* fix id format in sample file

* address review comments from Tim (#28991)

Co-authored-by: James Duan <[email protected]>

---------

Co-authored-by: James Duan <[email protected]>
Co-authored-by: RayY-96 <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Brent Rusinow (from Dev Box) <[email protected]>
Francisco-Gamino pushed a commit to Francisco-Gamino/azure-rest-api-specs that referenced this pull request Jun 5, 2024
* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (Azure#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Test my push permission

* Adds base for updating Microsoft.Chaos from version preview/2023-10-27-preview to version 2024-03-22-preview

* Updates readme

* Updates API version in new specs and examples

* merge in 2024-01-01 stable branch additions

* Add PublicNetworkAccess Field under privateAccesses resource (Azure#28110)

* Add new field for privateAccess

* Fix reference

* Fix PublicNetworkAccess definition

* Fix PrettierCheck

* Fix enum name

* Rename enum property

* Convert two operations to be async (Azure#28350)

* Convert two operations to be async

* Fix examples

* Resolve comments

* Change delete async operation status code

* Added Patch Tags Endpoint to Private Link (Azure#28296)

* Added UpdatePrivateAccessTags endpoint

* Addressing points for the PR review, it was about rename the new private link endpoint to PrivateAccesses_Patch, and changned the return code from 200 to 202

* Update the Private Access tags payload

---------

Co-authored-by: Adi Hazeem <[email protected]>

* update readme

* Resolved conflict

* Resolved conflict

* Resolved conflict

* Fix linting error for PUT and DELETE (Azure#28417)

* Fix check error

* move readonly flag

* Added 200 response to PrivateAccess Tags Patch Endpoint (Azure#28465)

* Added 200 response to PrivateAccess Tags example

---------

Co-authored-by: Adi Hazeem <[email protected]>

* add missing LRO header to open api spec

* attempted model validation fix

* fixed prop spelling mistake

* prettier

* remove unused example file

* move common type definition to pick up from latest official typing file

* move common type definition to pick up from latest official typing file (Azure#28870)

Co-authored-by: James Duan <[email protected]>

* fix id format in sample file

* address review comments from Tim (Azure#28991)

Co-authored-by: James Duan <[email protected]>

---------

Co-authored-by: James Duan <[email protected]>
Co-authored-by: RayY-96 <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Adi Hazeem <[email protected]>
Co-authored-by: Brent Rusinow (from Dev Box) <[email protected]>
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.

3 participants