Skip to content

[EGv2] Move EventGrid.json file for Beta#24076

Merged
lmazuel merged 1 commit intoAzure:feature/eventgrid/typespecfrom
l0lawrence:refactor
May 19, 2023
Merged

[EGv2] Move EventGrid.json file for Beta#24076
lmazuel merged 1 commit intoAzure:feature/eventgrid/typespecfrom
l0lawrence:refactor

Conversation

@l0lawrence
Copy link
Member

No description provided.

@openapi-workflow-bot
Copy link

Hi, @l0lawrence 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 19, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️❌Breaking Change(Cross-Version): 1 Errors, 0 Warnings failed [Detail] The following breaking changes are detected by comparison with the latest stable version:
    Rule Message
    Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/59880d1abf520c3b3265e0a47e9d1f43c093d39c/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json",
    "old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json",
    "details":"Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.53/common/temp/node_modules/.pnpm/@Azure+oad@0.10.4/node_modules/autorest/dist/app.js" --v2 --input-file=/mnt/vss/_work/1/cross-version-c93b354fd9c14905bb574a8834c4d69b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=old --output-folder=/tmp\nERROR: Schema violation: Additional properties not allowed: ?overload=customEvent,
    ?overload=cloudEvent,
    ?overload=EventGridEvent\n - file:///mnt/vss/_work/1/cross-version-c93b354fd9c14905bb574a8834c4d69b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json:33:2 ($["x-ms-paths"])\nFATAL: swagger-document/individual/schema-validator - FAILED\nFATAL: Error: [OperationAbortedException] Error occurred. Exiting.\nProcess() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.\n"
    ️️✔️LintDiff succeeded [Detail] [Expand]
    Validation passes for LintDiff.
    compared tags (via openapi-validator v2.1.2) new version base version
    default default(59880d1) default(feature/eventgrid/typespec)
    ️❌Avocado: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    UNREFERENCED_JSON_FILE The swagger JSON file is not referenced from the readme file.
    readme: specification/eventgrid/data-plane/readme.md
    json: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json
    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
    ️❌ModelValidation: 5 Errors, 0 Warnings failed [Detail]
    Rule Message
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ReceiveCloudEvents.
    Url: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L52:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in AcknowledgeCloudEvents.
    Url: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L115:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ReleaseCloudEvents.
    Url: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L172:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in RejectCloudEvents.
    Url: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L229:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in PublishCloudEvents.
    Url: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L288:15
    ️❌SemanticValidation: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    MISSING_PATH_PARAMETER_DEFINITION Path parameter is declared but is not defined: apiVersion
    JsonUrl: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L288:15
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️❌SpellCheck: 4 Errors, 0 Warnings failed [Detail]
    Rule Message
    HowToFix Unknown word (eventsubscriptions), please fix the error or add words to ./custom-words.txt
    path: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L51:26
    HowToFix Unknown word (eventsubscriptions), please fix the error or add words to ./custom-words.txt
    path: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L114:26
    HowToFix Unknown word (eventsubscriptions), please fix the error or add words to ./custom-words.txt
    path: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L171:26
    HowToFix Unknown word (eventsubscriptions), please fix the error or add words to ./custom-words.txt
    path: Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json#L228:26
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 19, 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 inProgress [Detail]
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs] Generate from 859a59ae982c1b5ca401d0d382c52fa17aaf3f77. 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.
      warn		specification/eventgrid/data-plane/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh] npm notice
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.5.1 -> 9.6.7
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.7>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.6.7` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️azure-eventgrid [View full logs]  [Preview SDK Changes]
      info	[Changelog] data-plan skip changelog generation temporarily
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 19, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Python azure-eventgrid https://apiview.dev/Assemblies/Review/4c37c0b30cb74a8090ec953c748999b3
    .Net Azure.Messaging.EventGrid.Namespaces https://apiview.dev/Assemblies/Review/0ebfe8d069934d60897bc8e43c54c70a

    @lmazuel lmazuel marked this pull request as ready for review May 19, 2023 18:58
    @lmazuel lmazuel requested review from Kishp01 and ahamad-MS as code owners May 19, 2023 18:58
    @lmazuel lmazuel merged commit a90210c into Azure:feature/eventgrid/typespec May 19, 2023
    lmazuel added a commit that referenced this pull request May 22, 2023
    * start typespec
    
    * adding eventgrid typespec for api w/ TODOs
    
    * update eventgrid typespec with latest eventgrid v2 operations
    
    * don't require content-type if there is no body
    
    * Update specification/eventgrid/typespec/main.tsp
    
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    
    * Update specification/eventgrid/typespec/main.tsp
    
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    
    * changing naming of cloudevent and added in data_base64
    
    * openapi.json
    
    * Update specification/eventgrid/typespec/main.tsp
    
    Co-authored-by: Libba Lawrence <llawrence@microsoft.com>
    
    * Update specification/eventgrid/typespec/main.tsp
    
    Co-authored-by: Libba Lawrence <llawrence@microsoft.com>
    
    * Update specification/eventgrid/typespec/main.tsp
    
    Co-authored-by: Libba Lawrence <llawrence@microsoft.com>
    
    * lockTokens format, updated json, optional? params
    
    * address code review comments
    
    * name_change
    
    * add @internal for python
    
    * Update specification/eventgrid/Azure.Messaging.EventGrid/main.tsp
    
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    
    * move @internal to client.tsp (#23538)
    
    * rename (#23565)
    
    * [EventGrid Typespec] breaking changes with april release of typespec (#23539)
    
    * breaking changes with april release of typespec
    
    * unknown type
    
    * [EG Typespec] Update Release behavior (#23699)
    
    * update behavior
    
    * just behavior
    
    * Add tspconfig and remove AAD auth (#23717)
    
    * add tspconfig
    
    * add namespace
    
    * remove oauth
    
    * [EG TypeSpec] Archboard Comments (#23696)
    
    * refactoring off of apiview
    
    * keep as int
    
    * no duration
    
    * aligning ack and release
    
    * remove behavioral change
    
    * ack to release
    
    * initial naming changes
    
    * Update ReleaseResult doc
    
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    
    * Update AckResult doc
    
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    
    * versioning twice-- remove one instance
    
    ---------
    
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    
    * Address couple of stewardship team feedback. These include: 1. Rename CloudEventEvent to simply CloudEvent, 2. Add more description to the operations including the possible erorr codes, 3. Add PublishResult with empty Json object as successful response for the Publish operation, 4. Others.
    
    * Add support for missing Reject operation + adding deliveryAttemptCount to BrokerProperties + Adding query parameter for release operation for deliveryDelayInSeconds
    
    * Update failedTokens/SuccessfulTokens Description to address code review comments
    
    * Update to match service behavior (#23754)
    
    * Update to match service behavior
    
    * remove locktoken
    
    * [EGv2] Editing unused variables (#23917)
    
    * event delivery delay not in preview
    
    * remove from url comment
    
    * [EGv2] Version dependency on Azure.Core  (#23936)
    
    * verioning fix
    
    * spacing mishap?
    
    * [EventGrid] Deliveryattempt change (#23960)
    
    * deliveryCount 5/1
    
    * small typo
    
    * [EventGrid] Remove internal (#23995)
    
    * remove internal
    
    * remove client.tsp
    
    * remove waitWaitTime (#24078)
    
    * move location of json file (#24076)
    
    * [Egv2] Encode param (#24080)
    
    * encode
    
    * remove num default on duration
    
    ---------
    
    Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
    
    * [EGv2] Fix pipeline (#24098)
    
    * regen off new commit for encode
    
    * reference preview tag
    
    * ignore word
    
    * update readme to have both apis
    
    * update with next autorest
    
    * change format to int32
    
    ---------
    
    Co-authored-by: Ashraf Hamad <ahamad@ntdev.microsoft.com>
    Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
    Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
    Co-authored-by: Ashraf Hamad <ahamad-MS@users.noreply.github.com>
    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.

    3 participants