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

Normalizer api specs #12983

Merged
merged 2 commits into from
Mar 5, 2021
Merged

Conversation

ishansrivastava90
Copy link
Contributor

@ishansrivastava90 ishansrivastava90 commented Feb 12, 2021

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

Changelog

Please ensure to add changelog with 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 you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
    Public Preview in March 2021; Generally Available in mid-2021

  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
    March, 2021

  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after 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, no need to refresh 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

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please 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 there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in 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, @ishansrivastava90 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. vsswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 12, 2021

    Swagger Validation Report

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

    Rule Message
    1041 - AddedPropertyInResponse The new version has a new property 'normalizers' in response that was not found in the old version.
    New: Azure.Search/preview/2020-06-30-Preview/searchservice.json#L7035:7
    Old: Azure.Search/preview/2020-06-30-Preview/searchservice.json#L6932:7
    ️️✔️LintDiff succeeded [Detail] [Expand]
    Validation passes for LintDiff.

    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️[Staging] SDK Track2 Validation: 125 Warnings warning [Detail] Only 10 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'AnalyzeRequest' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'AnalyzeResult' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'AnalyzedTokenInfo' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'LexicalAnalyzer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'CustomAnalyzer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'PatternAnalyzer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'LuceneStandardAnalyzer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'StopAnalyzer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'LexicalNormalizer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"search/data-plane/Azure.Search/readme.md",
    "tag":"package-2020-06-searchservice-preview",
    "details":"The schema 'CustomNormalizer' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 12, 2021

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

    @ishansrivastava90
    Copy link
    Contributor Author

    @brjohnstmsft @heaths This PR mimics the one created earlier and was pending the feature to be deployed.

    @brjohnstmsft
    Copy link
    Member

    @ishansrivastava90 Do you have a link to the other PR you mentioned?

    @ishansrivastava90
    Copy link
    Contributor Author

    @ishansrivastava90 Do you have a link to the other PR you mentioned?

    @brjohnstmsft Here's the original PR -
    #11954

    @ishansrivastava90
    Copy link
    Contributor Author

    @Mohit-Chakraborty @heaths Checking in. Are there any updates on this change?

    @Mohit-Chakraborty
    Copy link
    Contributor

    @johanste , what do you think about the breaking nature of this change?

    @ishansrivastava90
    Copy link
    Contributor Author

    ishansrivastava90 commented Mar 4, 2021

    @johanste , what do you think about the breaking nature of this change?

    @Mohit-Chakraborty
    @brjohnstmsft pointed out that this shouldn't be a breaking change since this is an optional parameter in response and is added to a preview API.

    @brjohnstmsft
    Copy link
    Member

    @ishansrivastava90 Per the new breaking change guidelines, this would be considered a breaking change, if it were in a GA version. But since this is a preview version, I'm not sure why the build is even flagging this as anything other than a warning.

    @heaths
    Copy link
    Member

    heaths commented Mar 5, 2021

    New guidelines are that previews must be versioned and continue support for 90 days. That said, I know you've been operating this way "forever". @JeffreyRichter @johanste Search has been updating previews like this and we really haven't heard any customer complaints via the SDK. Is this okay to ignore the breaking change for adding an optional response property in a preview version?

    @JeffreyRichter
    Copy link
    Member

    JeffreyRichter commented Mar 5, 2021 via email

    @lmazuel lmazuel merged commit 47b422a into Azure:master Mar 5, 2021
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants