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

Add mfe.json 2022-06-01-preview changes #19740

Conversation

forteddyt
Copy link
Contributor

@forteddyt forteddyt commented Jul 12, 2022

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

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
  2. 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.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. 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
    • No refresh required for updates in this PR

Contribution checklist:

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

ARM API Review Checklist

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following appy to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.
  • Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@openapi-workflow-bot
Copy link

Hi, @forteddyt 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. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 12, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 187 Warnings warning [Detail]
    compared swaggers (via Oad v0.9.6)] new version base version
    mfe.json 2022-06-01(e6f622d) 2022-05-01(main)
    mfe.json 2022-06-01(e6f622d) 2022-02-01(main)

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

    Rule Message
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6729:9
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L5815:9
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6393:5
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L5508:5
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6456:5
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L5568:5
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6493:5
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L5602:5
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6577:5
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L5666:5
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L7633:9
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L6388:9
    ⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L15194:9
    Old: Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json#L9911:9


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

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

    Rule Message
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CronSchedule' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ImageVerticalDataSettings' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ImageVerticalValidationDataSettings' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ModelType' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'NlpVerticalDataSettings' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'NlpVerticalValidationDataSettings' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialAssetReferenceBase' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialBatchDeploymentPartialTrackedResource' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialBatchEndpoint' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialBatchEndpointPartialTrackedResource' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialBatchRetrySettings' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialCodeConfiguration' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialDataPathAssetReference' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialIdAssetReference' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialKubernetesOnlineDeployment' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialManagedOnlineDeployment' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialOnlineDeployment' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialOnlineDeploymentPartialTrackedResource' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialOnlineEndpoint' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialOnlineEndpointPartialTrackedResource' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PartialOutputPathAssetReference' removed or renamed?
    New: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6059:3
    Old: Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json#L5326:3
    ️❌LintDiff: 4 Errors, 60 Warnings failed [Detail]
    compared tags (via openapi-validator v1.13.0) new version base version
    package-preview-2022-06 package-preview-2022-06(e6f622d) package-preview-2022-06(dev-machinelearningservices-Microsoft.MachineLearningServices-2022-06-01-preview)

    The following errors/warnings are introduced by current PR:

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

    Rule Message
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11503
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11521
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13609
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L14427
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11612
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13712
    ⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'labelingJobs' with immediate parent 'Workspace', must have a list by immediate parent operation.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11600
    ⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'schedules' with immediate parent 'Workspace', must have a list by immediate parent operation.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13700
    ⚠️ R3017 - GuidUsage Guid used in model definition 'LabelingJob' for property 'projectId'. Usage of Guid is not recommanded. If GUIDs are absolutely required in your service, please get sign off from the Azure API review board.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11508
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: scheduled
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L3311
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: includeJobInstructions
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L3775
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: includeLabelCategories
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L3782
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: amsGradient
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10090
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: distributed
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10129
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: earlyStopping
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10134
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: enableOnnxNormalization
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10151
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: nesterov
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10196
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: multiScale
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10349
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: multiSelectEnabled
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11360
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: incrementalDataRefreshEnabled
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11416
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isEnabled
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13595


    The following errors/warnings exist before current PR submission:

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

    Rule Message
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6725
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6811
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8954
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10672
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L12407
    R2008 - MutabilityWithReadOnly When property is modeled as 'readOnly': true then x-ms-mutability extension can only have 'read' value. When property is modeled as 'readOnly': false then applying x-ms-mutability extension with only 'read' value is not allowed. Extension contains invalid values: 'read'.
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L12507
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6763
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6851
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L7421
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L7478
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L7680
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L7749
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8094
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8223
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8367
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8718
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8755
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L8878
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L9000
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L10692
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L11023
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️❌ModelValidation: 10 Errors, 0 Warnings failed [Detail]
    Rule Message
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6060:39
    ExampleUrl: 2022-06-01-preview/examples/Datastore/list.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6060:39
    ExampleUrl: 2022-06-01-preview/examples/Datastore/get.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6060:39
    ExampleUrl: examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6060:39
    ExampleUrl: examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13843:45
    ExampleUrl: examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13843:45
    ExampleUrl: examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13843:45
    ExampleUrl: examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L13843:45
    ExampleUrl: examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6060:39
    ExampleUrl: examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
    OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: secrets
    Url: Microsoft.MachineLearningServices/preview/2022-06-01-preview/mfe.json#L6060:39
    ExampleUrl: examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️⚠️SDK Track2 Validation: 0 Warnings warning [Detail]
    • The following tags are being changed in this PR
      • "https://github.com/Azure/azure-rest-api-specs/blob/e6f622d987cf3fbdecba3acd4dcc05aff1778f45/specification/machinelearningservices/resource-manager/readme.md#tag-package-preview-2022-06">machinelearningservices/resource-manager/readme.md#package-preview-2022-06
    The following errors/warnings exist before current PR submission:
    Rule Message
    ⚠️ UnkownSecurityScheme "readme":"machinelearningservices/resource-manager/readme.md",
    "tag":"package-preview-2022-06",
    "details":"Security scheme azure_auth is unknown and will not be processed. Only supported types are AADToken,
    AzureKey,
    Anonymous"
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 12, 2022

    Swagger Generation Artifacts

    ️❌ApiDocPreview: 1 Errors, 0 Warnings failed [Detail]

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

    Rule Message
    ️⚠️SDK Breaking Change Tracking warning [Detail]

    Only 0 items are rendered, please refer to log for more details.

    ️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]

    Only 0 items are rendered, please refer to log for more details.

    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]

    Only 0 items are rendered, please refer to log for more details.

    ️⚠️ azure-sdk-for-python-track2 warning [Detail]

    Only 0 items are rendered, please refer to log for more details.

    ️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]

    Only 0 items are rendered, please refer to log for more details.

    ️⚠️ azure-sdk-for-js warning [Detail]

    Only 0 items are rendered, please refer to log for more details.

    ️⚠️ azure-resource-manager-schemas warning [Detail]

    Only 0 items are rendered, please refer to log for more details.

    ️❌ azure-powershell failed [Detail]

    Only 0 items are rendered, please refer to log for more details.

    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @forteddyt, 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.

    @openapi-workflow-bot
    Copy link

    Hi, @forteddyt your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]).

    @mentat9 mentat9 added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Jul 13, 2022
    @openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Jul 13, 2022
    Copy link
    Member

    @ArcturusZhang ArcturusZhang left a comment

    Choose a reason for hiding this comment

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

    Ignore and defer the breaking changes in SDKs to the PR targeting main branch, since on dev PRs breaking changes are usually introduced and reverted back

    @ArcturusZhang
    Copy link
    Member

    Adding Approved-LintDiff because the reported errors are false alarms and known issues

    "create",
    "update"
    ],
    "x-ms-secret": true
    Copy link
    Member

    Choose a reason for hiding this comment

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

    x-ms-secret should put within the model of $ref, otherwise it won't work.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    that... seems sort of weird. the documentation of x-ms-secret (https://github.com/Azure/autorest/tree/main/docs/extensions#x-ms-secret) states that it's that "extension is used to annotate the secret property". is this a new rule? our previous API versions (including our GA API versions) have been handling secrets the way this PR has been handling them

    additionally, our intention is also to have the entire object be treated as secret. we want to omit the secrets property altogether from responses, not respond back with {} (which is what marking each underlying property would do)

    Copy link
    Member

    Choose a reason for hiding this comment

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

    x-ms-secret works on property level instead of object model level.

    "key": {
    "description": "Storage account key.",
    "type": "string",
    "x-nullable": true
    Copy link
    Member

    Choose a reason for hiding this comment

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

    x-ms-secret: true should be added for key property.

    @raych1
    Copy link
    Member

    raych1 commented Jul 18, 2022

    @forteddyt , as the change of x-ms-secret could bring breaking changes. So, work item was created to follow the correct usage of x-ms-secret on property level for future versions.

    I approved model validatoin base on this context.

    @ArcturusZhang ArcturusZhang merged commit 99844b1 into Azure:dev-machinelearningservices-Microsoft.MachineLearningServices-2022-06-01-preview Jul 18, 2022
    @forteddyt forteddyt deleted the thtodoro/1849890 branch August 1, 2022 20:08
    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