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

[CDN][2023-05-01] Add x-ms-enum extension to fix Pandora SDK const conflict #26619

Closed
wants to merge 2 commits into from

Rename x-ms-enum name for DiliveryRuleAction to prevent model conflict

b341dc8
Select commit
Loading
Failed to load commit list.
Closed

[CDN][2023-05-01] Add x-ms-enum extension to fix Pandora SDK const conflict #26619

Rename x-ms-enum name for DiliveryRuleAction to prevent model conflict
b341dc8
Select commit
Loading
Failed to load commit list.
openapi-pipeline-app / ~[NotRequired_Staging] Swagger LintDiff failed Nov 9, 2023 in 3m 8s

~[NotRequired_Staging] Swagger LintDiff failed

ppe/LintDiff: 82 Errors, 4 Warnings
View Azure DevOps build log for more details.

Details

compared tags (via openapi-validator vbeta) new version base version
package-2023-05 package-2023-05(b341dc8) package-2023-05(main)

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

Rule Message Related RPC [For API reviewers]
FATAL spectralPluginFunc: Failed validating: 'file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/cdnwebapplicationfirewall.json'. Errors encountered: Error: Error running Nimma Error 1: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 2: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined')
Location: azure-rest-api-specs/blob/b341dc814e0069eebbf32ca59f9b32603c85eb53/#L1
FATAL spectralPluginFunc: Failed validating: 'file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/cdn.json'. Errors encountered: Error: Error running Nimma Error 1: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 2: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 3: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 4: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 5: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 6: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 7: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 8: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 9: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 10: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 11: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 12: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 13: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 14: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 15: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 16: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 17: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 18: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 19: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 20: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 21: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 22: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 23: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 24: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 25: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 26: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 27: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined')
Location: azure-rest-api-specs/blob/b341dc814e0069eebbf32ca59f9b32603c85eb53/#L1
FATAL spectralPluginFunc: Failed validating: 'file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/afdx.json'. Errors encountered: Error: Error running Nimma Error 1: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 2: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 3: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 4: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 5: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 6: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 7: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 8: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 9: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 10: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 11: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 12: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 13: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 14: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 15: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 16: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 17: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 18: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 19: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 20: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 21: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 22: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 23: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 24: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 25: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 26: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 27: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 28: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined') Error 29: $[paths,'x-ms-paths'].* threw: ErrorWithCause('Function 'patchPropertiesCorrespondToPutProperties' threw an exception: Cannot read property 'length' of undefined')
Location: azure-rest-api-specs/blob/b341dc814e0069eebbf32ca59f9b32603c85eb53/#L1


The following errors/warnings exist before current PR submission:
Only 50 items are listed, please refer to log for more details.

Rule Message
MissingTypeObject The schema 'ProxyResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L7053
MissingTypeObject The schema 'TrackedResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L7024
MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6952
MissingTypeObject The schema 'EdgeNodeProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6889
MissingTypeObject The schema 'EdgenodeResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6857
MissingTypeObject The schema 'display' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6668
MissingTypeObject The schema 'OperationsListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6636
MissingTypeObject The schema 'ResourceUsageListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6569
MissingTypeObject The schema 'CustomDomainListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6445
MissingTypeObject The schema 'KeyVaultCertificateSourceParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6379
MissingTypeObject The schema 'UserManagedHttpsParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6361
MissingTypeObject The schema 'CdnCertificateSourceParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6330
MissingTypeObject The schema 'CdnManagedHttpsParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6312
MissingTypeObject The schema 'CustomDomainHttpsParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6265
MissingTypeObject The schema 'CustomDomainPropertiesParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6253
MissingTypeObject The schema 'CustomDomainProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6156
MissingTypeObject The schema 'OriginGroupListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6090
MissingTypeObject The schema 'HttpErrorRangeParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6071
MissingTypeObject The schema 'ResponseBasedOriginErrorDetectionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L6038
MissingTypeObject The schema 'HealthProbeParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5996
MissingTypeObject The schema 'OriginGroupUpdatePropertiesParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5966
MissingTypeObject The schema 'OriginListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5879
MissingTypeObject The schema 'OriginUpdatePropertiesParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5814
MissingTypeObject The schema 'OriginProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5754
MissingTypeObject The schema 'KeyVaultSigningKeyParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5680
MissingTypeObject The schema 'UrlSigningKey' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5663
MissingTypeObject The schema 'ResourceReference' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5603
MissingTypeObject The schema 'CacheKeyQueryStringActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5264
MissingTypeObject The schema 'DeliveryRuleCacheKeyQueryStringAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5246
MissingTypeObject The schema 'CacheExpirationActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5197
MissingTypeObject The schema 'DeliveryRuleCacheExpirationAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5179
MissingTypeObject The schema 'HeaderActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5138
MissingTypeObject The schema 'DeliveryRuleResponseHeaderAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5120
MissingTypeObject The schema 'DeliveryRuleRequestHeaderAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5102
MissingTypeObject The schema 'UrlRewriteActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5070
MissingTypeObject The schema 'UrlRewriteAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5052
MissingTypeObject The schema 'OriginGroupOverrideActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5028
MissingTypeObject The schema 'OriginGroupOverrideAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L5010
MissingTypeObject The schema 'UrlSigningParamIdentifier' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4984
MissingTypeObject The schema 'UrlSigningActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4945
MissingTypeObject The schema 'UrlSigningAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4927
MissingTypeObject The schema 'UrlRedirectActionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4865
MissingTypeObject The schema 'UrlRedirectAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4847
MissingTypeObject The schema 'DeliveryRuleAction' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4819
MissingTypeObject The schema 'IsDeviceMatchConditionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4484
MissingTypeObject The schema 'CookiesMatchConditionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4422
MissingTypeObject The schema 'HttpVersionMatchConditionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4373
MissingTypeObject The schema 'UrlFileNameMatchConditionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4315
MissingTypeObject The schema 'UrlFileExtensionMatchConditionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4257
MissingTypeObject The schema 'UrlPathMatchConditionParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
Location: Microsoft.Cdn/stable/2023-05-01/cdn.json#L4198