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

Corect duplicate parent references in timeseriesinsights@2018-08-15-preview #19010

Conversation

jeskew
Copy link
Contributor

@jeskew jeskew commented May 10, 2022

Changelog

Add a changelog entry for this PR by answering the following questions:

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify

The 2018-08-15-preview version of TimeSeriesInsights is raising DuplicateParentReference errors in the ModelerFour Autorest plugin, which is preventing Bicep from regenerating code for this API.

  1. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.

N/A

  1. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.

N/A

  1. If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • Bicep
    • No refresh required for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

@openapi-workflow-bot
Copy link

Hi, @jeskew Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 10, 2022

    Swagger Validation Report

    ️⚠️BreakingChange: 4 Warnings warning [Detail]
    Rule Message
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1493:9
    Old: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1493:9
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1511:9
    Old: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1511:9
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1608:5
    Old: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1608:5
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1622:5
    Old: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1625:5
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:

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

    Rule Message
    R2018 - XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1470
    R2018 - XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1951
    R4005 - UniqueXmsEnumName Must not have duplicate name of x-ms-enum extension , make sure every x-ms-enum name unique. The duplicate x-ms-enum name: kind, path: $.EnvironmentCreateOrUpdateParameters.properties.kind
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1827
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L54
    R4018 - OperationsApiResponseSchema The response schema of operations API '/providers/Microsoft.TimeSeriesInsights/operations' does not match the ARM specification. Please standardize the schema.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L37
    R4032 - MissingXmsErrorResponse Response code 404 is defined without a x-ms-error-response.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L123
    R4037 - MissingTypeObject The schema 'OperationListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1086
    R4037 - MissingTypeObject The schema 'display' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1113
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1141
    R4037 - MissingTypeObject The schema 'TrackedResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1162
    R4037 - MissingTypeObject The schema 'ResourceProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1190
    R4037 - MissingTypeObject The schema 'CreateOrUpdateTrackedResourceProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1311
    R4037 - MissingTypeObject The schema 'EnvironmentCreateOrUpdateParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1334
    R4037 - MissingTypeObject The schema 'StandardEnvironmentCreateOrUpdateParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1365
    R4037 - MissingTypeObject The schema 'LongTermEnvironmentCreateOrUpdateParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1383
    R4037 - MissingTypeObject The schema 'EnvironmentListResponse' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1450
    R4037 - MissingTypeObject The schema 'StandardEnvironmentResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1490
    R4037 - MissingTypeObject The schema 'LongTermEnvironmentResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1508
    R4037 - MissingTypeObject The schema 'StandardEnvironmentCreationProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1526
    R4037 - MissingTypeObject The schema 'LongTermEnvironmentCreationProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1558
    R4037 - MissingTypeObject The schema 'EnvironmentResourceProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1583
    R4037 - MissingTypeObject The schema 'LongTermEnvironmentResourceProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1622
    R4037 - MissingTypeObject The schema 'TimeSeriesIdProperty' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1690
    R4037 - MissingTypeObject The schema 'EventSourceCreateOrUpdateParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1824
    R4037 - MissingTypeObject The schema 'EventHubEventSourceCreateOrUpdateParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1854
    R4037 - MissingTypeObject The schema 'IoTHubEventSourceCreateOrUpdateParameters' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1872
    R4037 - MissingTypeObject The schema 'EventSourceListResponse' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1935
    R4037 - MissingTypeObject The schema 'EventHubEventSourceResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1970
    R4037 - MissingTypeObject The schema 'IoTHubEventSourceResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L1988
    R4037 - MissingTypeObject The schema 'EventSourceCommonProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json#L2006
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️Cross-Version Breaking Changes succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️️✔️SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 10, 2022

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️❌SDK Breaking Change Tracking failed [Detail]

    Breaking Changes Tracking

    azure-sdk-for-python-track2 - track2_azure-mgmt-timeseriesinsights - 1.0.0
    -	Parameter kind of model EnvironmentUpdateParameters is now required
    -	Parameter kind of model EventHubEventSourceUpdateParameters is now required
    -	Parameter kind of model EventSourceUpdateParameters is now required
    -	Parameter kind of model Gen1EnvironmentUpdateParameters is now required
    -	Parameter kind of model Gen2EnvironmentUpdateParameters is now required
    -	Parameter kind of model IoTHubEventSourceUpdateParameters is now required
    azure-sdk-for-go - timeseriesinsights/mgmt/2020-05-15/timeseriesinsights - v65.0.0
    +	Field `CreationTime` of struct `Gen1EnvironmentResourceProperties` has been removed
    +	Field `LocalTimestamp` of struct `EventHubEventSourceMutableProperties` has been removed
    +	Field `LocalTimestamp` of struct `EventSourceMutableProperties` has been removed
    +	Field `LocalTimestamp` of struct `IoTHubEventSourceMutableProperties` has been removed
    +	Field `ProvisioningState` of struct `Gen1EnvironmentResourceProperties` has been removed
    +	Function `EnvironmentsClient.UpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, EnvironmentUpdateParameters)` to `(context.Context, string, string, BasicEnvironmentUpdateParameters)`
    +	Function `EnvironmentsClient.Update` parameter(s) have been changed from `(context.Context, string, string, EnvironmentUpdateParameters)` to `(context.Context, string, string, BasicEnvironmentUpdateParameters)`
    +	Function `EventSourcesClient.UpdatePreparer` parameter(s) have been changed from `(context.Context, string, string, string, EventSourceUpdateParameters)` to `(context.Context, string, string, string, BasicEventSourceUpdateParameters)`
    +	Function `EventSourcesClient.Update` parameter(s) have been changed from `(context.Context, string, string, string, EventSourceUpdateParameters)` to `(context.Context, string, string, string, BasicEventSourceUpdateParameters)`
    ️✔️azure-sdk-for-go - timeseriesinsights/mgmt/2017-11-15/timeseriesinsights - v65.0.0
    azure-sdk-for-go - preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights - v65.0.0
    +	Field `CreationTime` of struct `StandardEnvironmentResourceProperties` has been removed
    +	Field `ProvisioningState` of struct `StandardEnvironmentResourceProperties` has been removed
    ️✔️azure-sdk-for-go - preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights - v65.0.0
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 27a778f. SDK Automation 14.0.0
      command	sh ./eng/initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️timeseriesinsights/mgmt/2020-05-15/timeseriesinsights [View full logs]  [Release SDK Changes]
      Only show 30 items here, please refer to log for details.
      info	[Changelog] - New struct `MetricAvailability`
      info	[Changelog] - New struct `MetricSpecification`
      info	[Changelog] - New struct `OperationProperties`
      info	[Changelog] - New struct `ServiceSpecification`
      info	[Changelog] - New field `Kind` in struct `Gen1EnvironmentUpdateParameters`
      info	[Changelog] - New field `Kind` in struct `EnvironmentUpdateParameters`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `AzureEventSourceProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `AzureEventSourceProperties`
      info	[Changelog] - New field `Kind` in struct `EventSourceUpdateParameters`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `IoTHubEventSourceCommonProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `IoTHubEventSourceCommonProperties`
      info	[Changelog] - New field `Kind` in struct `Gen2EnvironmentUpdateParameters`
      info	[Changelog] - New field `Kind` in struct `IoTHubEventSourceUpdateParameters`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `IoTHubEventSourceResourceProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `IoTHubEventSourceResourceProperties`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `EventHubEventSourceCreationProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `EventHubEventSourceCreationProperties`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `EventSourceCommonProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `EventSourceCommonProperties`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `EventHubEventSourceCommonProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `EventHubEventSourceCommonProperties`
      info	[Changelog] - New anonymous field `*OperationProperties` in struct `Operation`
      info	[Changelog] - New field `Origin` in struct `Operation`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `IoTHubEventSourceCreationProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `IoTHubEventSourceCreationProperties`
      info	[Changelog] - New anonymous field `*IngressStartAtProperties` in struct `EventHubEventSourceResourceProperties`
      info	[Changelog] - New field `LocalTimestamp` in struct `EventHubEventSourceResourceProperties`
      info	[Changelog] - New field `Kind` in struct `EventHubEventSourceUpdateParameters`
      info	[Changelog]
      info	[Changelog] Total 8 breaking change(s), 76 additive change(s).
    • ️✔️timeseriesinsights/mgmt/2017-11-15/timeseriesinsights [View full logs
      info	[Changelog] ### Other Changes
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
    • ️✔️preview/timeseriesinsights/mgmt/2018-08-15-preview/timeseriesinsights [View full logs
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Field `ProvisioningState` of struct `StandardEnvironmentResourceProperties` has been removed
      info	[Changelog] - Field `CreationTime` of struct `StandardEnvironmentResourceProperties` has been removed
      info	[Changelog]
      info	[Changelog] Total 1 breaking change(s), 0 additive change(s).
    • ️✔️preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights [View full logs
      info	[Changelog] ### Other Changes
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
    ️⚠️ azure-sdk-for-js warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 27a778f. 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
      cmderr	[automation_init.sh] deprecated read-package-tree@5.1.6: The functionality that this package provided is now in @npmcli/arborist
      cmderr	[automation_init.sh]  deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      cmderr	[automation_init.sh]  deprecated @opentelemetry/types@0.2.0: Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js
      cmderr	[automation_init.sh]  deprecated @azure/storage-blob@10.5.0: This version has been deprecated, please upgrade to the version tagged as latest
      cmderr	[automation_init.sh] npm WARN @octokit/plugin-request-log@1.0.4 requires a peer of @octokit/core@>=3 but none is installed. You must install peer dependencies yourself.
      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-timeseriesinsights [View full logs]  [Release SDK Changes]
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added operation group PrivateEndpointConnections
      info	[Changelog]   - Added operation group PrivateLinkResources
      info	[Changelog]   - Added Interface PrivateEndpoint
      info	[Changelog]   - Added Interface PrivateEndpointConnectionListResult
      info	[Changelog]   - Added Interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams
      info	[Changelog]   - Added Interface PrivateEndpointConnectionsDeleteOptionalParams
      info	[Changelog]   - Added Interface PrivateEndpointConnectionsGetOptionalParams
      info	[Changelog]   - Added Interface PrivateEndpointConnectionsListByEnvironmentOptionalParams
      info	[Changelog]   - Added Interface PrivateLinkResourceListResult
      info	[Changelog]   - Added Interface PrivateLinkResourcesListSupportedOptionalParams
      info	[Changelog]   - Added Interface PrivateLinkServiceConnectionState
      info	[Changelog]   - Added Type Alias PrivateEndpointConnection
      info	[Changelog]   - Added Type Alias PrivateEndpointConnectionProvisioningState
      info	[Changelog]   - Added Type Alias PrivateEndpointConnectionsCreateOrUpdateResponse
      info	[Changelog]   - Added Type Alias PrivateEndpointConnectionsGetResponse
      info	[Changelog]   - Added Type Alias PrivateEndpointConnectionsListByEnvironmentResponse
      info	[Changelog]   - Added Type Alias PrivateEndpointServiceConnectionStatus
      info	[Changelog]   - Added Type Alias PrivateLinkResource
      info	[Changelog]   - Added Type Alias PrivateLinkResourcesListSupportedResponse
      info	[Changelog]   - Added Type Alias PublicNetworkAccess
      info	[Changelog]   - Class TimeSeriesInsightsClient has a new parameter privateEndpointConnections
      info	[Changelog]   - Class TimeSeriesInsightsClient has a new parameter privateLinkResources
      info	[Changelog]   - Type Alias Gen2EnvironmentCreateOrUpdateParameters has a new parameter publicNetworkAccess
      info	[Changelog]   - Type Alias Gen2EnvironmentCreateOrUpdateParameters has a new parameter privateEndpointConnections
      info	[Changelog]   - Type Alias Gen2EnvironmentResource has a new parameter publicNetworkAccess
      info	[Changelog]   - Type Alias Gen2EnvironmentResource has a new parameter privateEndpointConnections
      info	[Changelog]   - Type Alias Gen2EnvironmentResourceProperties has a new parameter publicNetworkAccess
      info	[Changelog]   - Type Alias Gen2EnvironmentResourceProperties has a new parameter privateEndpointConnections
      info	[Changelog]   - Added Enum KnownPrivateEndpointConnectionProvisioningState
      info	[Changelog]   - Added Enum KnownPrivateEndpointServiceConnectionStatus
      info	[Changelog]   - Added Enum KnownPublicNetworkAccess
      error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 27a778f. 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
    • ️✔️track2_azure-mgmt-timeseriesinsights [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added operation group PrivateEndpointConnectionsOperations
      info	[Changelog]   - Added operation group PrivateLinkResourcesOperations
      info	[Changelog]   - Model AzureEventSourceProperties has a new parameter local_timestamp
      info	[Changelog]   - Model AzureEventSourceProperties has a new parameter time
      info	[Changelog]   - Model AzureEventSourceProperties has a new parameter type
      info	[Changelog]   - Model EventHubEventSourceCommonProperties has a new parameter local_timestamp
      info	[Changelog]   - Model EventHubEventSourceCommonProperties has a new parameter time
      info	[Changelog]   - Model EventHubEventSourceCommonProperties has a new parameter type
      info	[Changelog]   - Model EventHubEventSourceCreateOrUpdateParameters has a new parameter local_timestamp_properties_local_timestamp
      info	[Changelog]   - Model EventHubEventSourceCreateOrUpdateParameters has a new parameter time
      info	[Changelog]   - Model EventHubEventSourceCreateOrUpdateParameters has a new parameter type
      info	[Changelog]   - Model EventHubEventSourceCreationProperties has a new parameter local_timestamp
      info	[Changelog]   - Model EventHubEventSourceCreationProperties has a new parameter time
      info	[Changelog]   - Model EventHubEventSourceCreationProperties has a new parameter type
      info	[Changelog]   - Model EventHubEventSourceResource has a new parameter local_timestamp
      info	[Changelog]   - Model EventHubEventSourceResource has a new parameter time
      info	[Changelog]   - Model EventHubEventSourceResource has a new parameter type_properties_ingress_start_at_type
      info	[Changelog]   - Model EventHubEventSourceResourceProperties has a new parameter local_timestamp
      info	[Changelog]   - Model EventHubEventSourceResourceProperties has a new parameter time
      info	[Changelog]   - Model EventHubEventSourceResourceProperties has a new parameter type
      info	[Changelog]   - Model EventSourceCommonProperties has a new parameter local_timestamp
      info	[Changelog]   - Model EventSourceCommonProperties has a new parameter time
      info	[Changelog]   - Model EventSourceCommonProperties has a new parameter type
      info	[Changelog]   - Model Gen2EnvironmentCreateOrUpdateParameters has a new parameter private_endpoint_connections
      info	[Changelog]   - Model Gen2EnvironmentCreateOrUpdateParameters has a new parameter public_network_access
      info	[Changelog]   - Model Gen2EnvironmentResource has a new parameter private_endpoint_connections
      info	[Changelog]   - Model Gen2EnvironmentResource has a new parameter public_network_access
      info	[Changelog]   - Model Gen2EnvironmentResourceProperties has a new parameter private_endpoint_connections
      info	[Changelog]   - Model Gen2EnvironmentResourceProperties has a new parameter public_network_access
      info	[Changelog]   - Model IoTHubEventSourceCommonProperties has a new parameter local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceCommonProperties has a new parameter time
      info	[Changelog]   - Model IoTHubEventSourceCommonProperties has a new parameter type
      info	[Changelog]   - Model IoTHubEventSourceCreateOrUpdateParameters has a new parameter local_timestamp_properties_local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceCreateOrUpdateParameters has a new parameter time
      info	[Changelog]   - Model IoTHubEventSourceCreateOrUpdateParameters has a new parameter type
      info	[Changelog]   - Model IoTHubEventSourceCreationProperties has a new parameter local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceCreationProperties has a new parameter time
      info	[Changelog]   - Model IoTHubEventSourceCreationProperties has a new parameter type
      info	[Changelog]   - Model IoTHubEventSourceResource has a new parameter local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceResource has a new parameter time
      info	[Changelog]   - Model IoTHubEventSourceResource has a new parameter type_properties_ingress_start_at_type
      info	[Changelog]   - Model IoTHubEventSourceResourceProperties has a new parameter local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceResourceProperties has a new parameter time
      info	[Changelog]   - Model IoTHubEventSourceResourceProperties has a new parameter type
      info	[Changelog]   - Model Operation has a new parameter origin
      info	[Changelog]   - Model Operation has a new parameter service_specification
      info	[Changelog]
      info	[Changelog] **Breaking changes**
      info	[Changelog]
      info	[Changelog]   - Model EventHubEventSourceMutableProperties no longer has parameter local_timestamp
      info	[Changelog]   - Model EventHubEventSourceUpdateParameters no longer has parameter local_timestamp
      info	[Changelog]   - Model EventSourceMutableProperties no longer has parameter local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceMutableProperties no longer has parameter local_timestamp
      info	[Changelog]   - Model IoTHubEventSourceUpdateParameters no longer has parameter local_timestamp
      info	[Changelog]   - Parameter kind of model EnvironmentUpdateParameters is now required
      info	[Changelog]   - Parameter kind of model EventHubEventSourceUpdateParameters is now required
      info	[Changelog]   - Parameter kind of model EventSourceUpdateParameters is now required
      info	[Changelog]   - Parameter kind of model Gen1EnvironmentUpdateParameters is now required
      info	[Changelog]   - Parameter kind of model Gen2EnvironmentUpdateParameters is now required
      info	[Changelog]   - Parameter kind of model IoTHubEventSourceUpdateParameters is now required
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 27a778f. 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]  old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      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
    • ️✔️timeseriesinsights [View full logs
    ️️✔️ azure-powershell succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 27a778f. 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.TimeSeriesInsights [View full logs]  [Release SDK Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @jeskew, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @jeskew
    Copy link
    Contributor Author

    jeskew commented May 10, 2022

    The breaking change warnings are a false positive; both updated shapes list both EnvironmentResourceProperties and ResourceProperties as a parent, while EnvironmentResourceProperties lists ResourceProperties as its sole parent. Autorest tooling (specifically the ModelerFour plugin) is raising errors because including an ancestor at multiple points in a definition's composition tree is disallowed.

    @jeskew
    Copy link
    Contributor Author

    jeskew commented May 26, 2022

    @changlong-liu gentle ping on this. This PR fixes a Swagger bug that is preventing Autorest-based tools from being regenerated. There is no change to the underlying API model.

    @changlong-liu
    Copy link
    Member

    Hi @jeskew , would you please take a look at the semanticValidation failure https://github.com/Azure/azure-rest-api-specs/pull/19010/checks?check_run_id=6377274770
    May need to add "discriminator" in the parent object.

    @jeskew
    Copy link
    Contributor Author

    jeskew commented May 27, 2022

    Based on the example provided for the operation that caused the semanticValidation failure, I think the right remediation may be to remove the x-ms-discriminator-value extension from the two flagged definitions. (EventSources_Update doesn't look like it supports changing the type of an existing event source resource, and the semantics of doing so in a PATCH would seem odd.)

    @Azure/time-series-insights could someone from the service team take a look? I'll update this PR to reflect the change described above.

    @changlong-liu
    Copy link
    Member

    Hi @jeskew , would you like to merge this PR now?

    @jeskew
    Copy link
    Contributor Author

    jeskew commented May 31, 2022

    Hi @jeskew , would you like to merge this PR now?

    Ideally, I'd like to get approval from the service team that owns the swagger file (@Azure/time-series-insights).

    @dmdenmsft
    Copy link
    Contributor

    dmdenmsft commented Jun 1, 2022

    LGTM - removing ResourceProperties parent ref, and unneeded x-ms-discriminator value in update params.

    Since it is RP swagger, I would suggest that @sandshadow signs off.

    FYI - TSI will no longer be supported after March 2025, see https://aka.ms/tsi2adx
    Not sure if it affects this work.

    Copy link
    Contributor

    @k-rush k-rush left a comment

    Choose a reason for hiding this comment

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

    LGTM

    @@ -1908,7 +1902,6 @@
    },
    "EventHubEventSourceUpdateParameters": {
    "type": "object",
    "x-ms-discriminator-value": "Microsoft.EventHub",
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    I was wary of this change, but this should be ok. The parent EventSourceUpdateParameters doesn't have a descriminator field, and we indeed do not support changing the event source kind via PATCH.

    Comment on lines -1615 to -1617
    },
    {
    "$ref": "#/definitions/ResourceProperties"
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    LGTM

    @jeskew
    Copy link
    Contributor Author

    jeskew commented Jun 1, 2022

    Thanks for taking a look, @dmdenmsft and @k-rush!

    @changlong-liu please go ahead and merge. Thanks for reviewing!

    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.

    4 participants