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

[Hub Generated] Review request for Azure.Analytics.Purview.Catalog to add version preview/2023-02-01-preview #25164

Conversation

yifan-zhou922
Copy link
Member

@yifan-zhou922 yifan-zhou922 commented Aug 4, 2023

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

Data Plane API - Pull Request

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

  • Link to API Spec engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

Diff: https://openapihub.azure-devex-tools.com/tools/diff/eyJzb3VyY2VVcmwiOiJodHRwczovL2dpdGh1Yi5jb20vQXp1cmUvYXp1cmUtcmVzdC1hcGktc3BlY3MvYmxvYi95aWZhbi16aG91OTIyLXB1cnZpZXctQXp1cmUuQW5hbHl0aWNzLlB1cnZpZXcuQ2F0YWxvZy0yMDIzLTAyLTAxLXByZXZpZXcvc3BlY2lmaWNhdGlvbi9wdXJ2aWV3L2RhdGEtcGxhbmUvQXp1cmUuQW5hbHl0aWNzLlB1cnZpZXcuQ2F0YWxvZy9wcmV2aWV3LzIwMjItMDgtMDEtcHJldmlldy9wdXJ2aWV3Y2F0YWxvZy5qc29uIiwidGFyZ2V0VXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL0F6dXJlL2F6dXJlLXJlc3QtYXBpLXNwZWNzL2Jsb2IveWlmYW4temhvdTkyMi1wdXJ2aWV3LUF6dXJlLkFuYWx5dGljcy5QdXJ2aWV3LkNhdGFsb2ctMjAyMy0wMi0wMS1wcmV2aWV3L3NwZWNpZmljYXRpb24vcHVydmlldy9kYXRhLXBsYW5lL0F6dXJlLkFuYWx5dGljcy5QdXJ2aWV3LkNhdGFsb2cvcHJldmlldy8yMDIzLTAyLTAxLXByZXZpZXcvcHVydmlld2NhdGFsb2cuanNvbiJ9

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@openapi-workflow-bot
Copy link

Hi, @yifan-zhou922! Thank you for your pull request. To help get your PR merged:

  • Ensure you reviewed the checklists in the PR description.
  • Know that PR assignee is the person auto-assigned and responsible for your current PR review and approval.
  • For convenient view of the API changes made by this PR, refer to the URLs provided in the table in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.
  • @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 4, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    compared swaggers (via Oad v0.10.4)] new version base version
    purviewcatalog.json 2023-02-01-preview(b21a12d) 2022-08-01-preview(main)
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 15 Warnings warning [Detail]
    compared tags (via openapi-validator v2.1.4) new version base version
    package-preview-2023-02 package-preview-2023-02(b21a12d) default(main)

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

    Rule Message Related RPC [For API reviewers]
    ⚠️ PutPath The path for a put should have a final path parameter.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3136
    ⚠️ PutInOperationName 'PUT' operation 'Glossary_BulkUpdateTerms' should use method name 'Create'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3142
    ⚠️ VersionPolicy Operation does not define an 'api-version' query parameter.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3148
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3174
    ⚠️ ErrorResponse Error response schema should contain an object property named error.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3176
    ⚠️ VersionPolicy Operation does not define an 'api-version' query parameter.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3193
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3221
    ⚠️ ErrorResponse Error response schema should contain an object property named error.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L3223
    ⚠️ PropertyDescription Property should have a description.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6071
    ⚠️ PropertyDescription Property should have a description.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6074
    ⚠️ PropertyDescription Property should have a description.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6077
    ⚠️ PropertyDescription Property should have a description.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6080
    ⚠️ PropertyDescription Property should have a description.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6083
    ⚠️ PropertyDescription Property should have a description.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6085
    ⚠️ PropertyType Property should have a defined type.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L6085


    The following errors/warnings exist before current PR submission:

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

    Rule Message
    HostParametersValidation The host parameter must be called 'endpoint'.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L12
    HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L12
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Entity' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L304
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Entity' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L610
    AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L974
    AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1026
    AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1075
    AvoidAnonymousParameter Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1124
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1559
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1598
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1645
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1684
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1715
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1755
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1785
    AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1851
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1923
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L1968
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2017
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2060
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2090
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2136
    AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2381
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2407
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2438
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2481
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2511
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2557
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2603
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Glossary' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Azure.Analytics.Purview.Catalog/preview/2023-02-01-preview/purviewcatalog.json#L2639
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️️✔️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).
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    ️️✔️Automated merging requirements met succeeded [Detail] [Expand]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 4, 2023

    Swagger Generation Artifacts

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

    Breaking Changes Tracking

    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Failed [Logs]Release - Generate from 7e1c56e. SDK Automation 14.0.0
      Only show 20 items here, please refer to log for details.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:712
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:805
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 805 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:712
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    • Azure.Analytics.Purview.Account [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Administration [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Catalog [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Scanning [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Sharing [View full logs]  [Release SDK Changes]
      info	[Changelog]
    • Azure.Analytics.Purview.Workflows [View full logs]  [Release SDK Changes]
      info	[Changelog]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 4, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger purview-data-plane-Azure.Analytics.Purview.Catalog https://apiview.dev/Assemblies/Review/c074da3eb3674b77896ab6f012346ace

    yifan-zhou922 and others added 12 commits August 4, 2023 10:45
    …023-02-01-preview' of ssh://github.com/Azure/azure-rest-api-specs into yifan-zhou922-purview-Azure.Analytics.Purview.Catalog-2023-02-01-preview
    … add version preview/2022-08-01-preview (#25150)
    
    * add content-type header parameter
    
    * polish glossary related api document
    
    * update
    
    * update
    )
    
    * add content-type header parameter
    
    * polish glossary related api document
    
    * update
    
    * update
    
    * change target branch
    
    * rollback
    @yifan-zhou922 yifan-zhou922 marked this pull request as ready for review August 15, 2023 02:01
    @yifan-zhou922 yifan-zhou922 requested review from mikekistler and a team as code owners August 15, 2023 02:01
    @yifan-zhou922 yifan-zhou922 removed the request for review from a team August 15, 2023 02:01
    @openapi-workflow-bot
    Copy link

    Hi @yifan-zhou922! Your PR has some issues. Please fix the CI issues, if present, in following order: Avocado, SemanticValidation, ModelValidation, Breaking Change, LintDiff.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic ValidationFix-SemanticValidation-ErrorHigh
    Model ValidationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffHigh

    If you need further help, please reach out on the Teams channel aka.ms/azsdk/support/specreview-channel.

    @yifan-zhou922
    Copy link
    Member Author

    Hi @mikekistler, we are ready for API review.
    In this PR, we have added APIs for bulk edit glossary terms and bulk get glossary terms. These APIs have been reviewed in June. API review note: #24004
    For other APIs reviewed in May/June, some of the comments have been updated but these APIs are not ready for public preview. So, these APIs will not be included in this API version update. Thanks.

    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

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

    There are a few more minor issues to work out. Please address these and then tag me to re-review.

    Comment on lines 2790 to 2792
    {
    "$ref": "#/parameters/Content-Type"
    },
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Header parameter "Content-Type" should not be defined explicitly.

    Suggested change
    {
    "$ref": "#/parameters/Content-Type"
    },

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Thanks. We want to let users understand how to set the content-type when calling our REST APIs directly as we noticed that some customers did not set the correct content-type when using postman to call this API. So, we want to provide more information in the public document in the same way as the storage service.
    Here is the document from Storage service listing the requests headers including content-length and content-type. https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob?tabs=azure-ad#request-headers-all-blob-types

    Shall we also mark the content-type as optional? Also, the current documentation does not support showing formData parameters. So, we are trying to find a way to let customers know how to correctly use this API. Here is the work item tracked by Reference team. https://dev.azure.com/ceapex/Engineering/_workitems/edit/766112

    Copy link
    Member

    Choose a reason for hiding this comment

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

    In OpenAPI, the set of allowed content types is defined by the "consumes" field of the operation. In this case, only one content type is allowed, "multipart/form-data". To avoid the potential for ambiguous/conflicting API descriptions, OpenAPI does not allow Content-type to be defined explicitly.

    If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition SHALL be ignored.

    Given that only one content-type is allowed, I think the service should simply make this the default when content-type is not specified and then users don't even need to think about it.

    If you really think you need to document that the only content-type they can pass is "multipart/form-data" you could add a statement to that effect in the operation description.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Understand. Content-type header is removed. We will use another way to document this information. Thanks

    Comment on lines 2852 to 2854
    {
    "$ref": "#/parameters/Content-Type"
    },
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Header parameter "Content-Type" should not be defined explicitly.

    Suggested change
    {
    "$ref": "#/parameters/Content-Type"
    },

    "tags": [
    "Glossary"
    ],
    "description": "Update terms in bulk.",
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Does this PUT completely replace all terms, or just add to the set of terms? If it is the latter, then the method should be POST rather than PUT.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Yes. It will replace all terms. So we use PUT instead of POST.

    Copy link
    Member

    Choose a reason for hiding this comment

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

    It looks like the Apache API implements this as a POST and not PUT:

    https://atlas.apache.org/api/v2/ui/index.html#/

    Why the change to use PUT here?

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Atlas has a create term API using POST and an update term API using PUT.
    This API is bulk update term API, so we use PUT instead of POST.

    Comment on lines +3220 to +3224
    "type": "array",
    "description": "An array of glossary terms or an empty list.",
    "items": {
    "$ref": "#/definitions/AtlasGlossaryTerm"
    }
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Response should not be a bare array. The response should be an object with a top-level property that is an array.

    If this operation is borrowed from open-source, then this is allowed. Otherwise it should be changed as stated.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Thanks @mikekistler. This response pattern is also following the atlas behavior.
    image

    Comments addressed. Please help review the changes. Thanks again.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 23, 2023

    Next Steps to Merge

    ⚠️ This is an experimental comment. It may not always be up-to-date. ⚠️

    ✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

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

    Looks good. 👍

    Thanks for the fixes.

    Copy link
    Member

    @weidongxu-microsoft weidongxu-microsoft left a comment

    Choose a reason for hiding this comment

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

    LGTM. One comment about whether it is our data or atlas data that get added to AtlasGlossaryTerm model.

    Comment on lines +5777 to +5787
    "nickName": {
    "type": "string",
    "description": "The nick name of the term."
    },
    "hierarchyInfo": {
    "type": "array",
    "description": "The hierarchy information of the term.",
    "items": {
    "$ref": "#/definitions/PurviewObjectId"
    }
    },
    Copy link
    Member

    @weidongxu-microsoft weidongxu-microsoft Aug 23, 2023

    Choose a reason for hiding this comment

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

    AtlasGlossaryTerm is used in API /atlas/v2/glossary/term/{termGuid}, so I assume it be atlas data type.

    Now we add nickName and hierarchyInfo into it. Are they atlas data, or our data?

    PurviewObjectId looks like our augmentation to AtlasObjectId.

    Comment on lines 6088 to 6091
    "properties": {
    "type": "object",
    "additionalProperties": {}
    }

    Choose a reason for hiding this comment

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

    If this is our data, do we really don't know what properties there is?

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Thanks. These are all our data. As PurviewObjectId is shared in many scenarios, it will contain different keys in various scenarios.

    @mikekistler mikekistler added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Aug 23, 2023
    @yifan-zhou922
    Copy link
    Member Author

    Hi @tjprescott could you please help review and signoff the changes. Many thanks.

    @tjprescott tjprescott merged commit 7e1c56e into main Aug 24, 2023
    @tjprescott tjprescott deleted the yifan-zhou922-purview-Azure.Analytics.Purview.Catalog-2023-02-01-preview branch August 24, 2023 15:45
    @openapi-pipeline-app
    Copy link

    Swagger pipeline restarted successfully, please wait for status update in this comment.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. data-plane
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    6 participants