EventGrid: Swagger Changes for 2019-02-01-preview#5242
EventGrid: Swagger Changes for 2019-02-01-preview#5242sarangan12 merged 11 commits intoAzure:masterfrom
Conversation
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-jsEncountered an unknown error: (azure-sdk-for-js)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 309, in generate_sdk_from_git_object
sdk_repo.git.push('origin', base_branch, set_upstream=True)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git push --set-upstream origin restapi_auto_eventgrid/resource-manager
stderr: 'remote: Permission to Azure/azure-sdk-for-js.git denied to AutorestCI.
fatal: unable to access 'https://AutorestCI:58ab395c311d1bd75b3e1db1cc8adaf9acc42afe@github.com/Azure/azure-sdk-for-js.git/': The requested URL returned error: 403' |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-rubyThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-javaEncountered an unknown error: (azure-sdk-for-java)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 309, in generate_sdk_from_git_object
sdk_repo.git.push('origin', base_branch, set_upstream=True)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git push --set-upstream origin restapi_auto_eventgrid/resource-manager
stderr: 'remote: Permission to Azure/azure-sdk-for-java.git denied to AutorestCI.
fatal: unable to access 'https://AutorestCI:58ab395c311d1bd75b3e1db1cc8adaf9acc42afe@github.com/Azure/azure-sdk-for-java.git/': The requested URL returned error: 403' |
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
|
Can one of the admins verify this patch? |
…sting example files
sarangan12
left a comment
There was a problem hiding this comment.
Please fix the errors reported at https://travis-ci.org/Azure/azure-rest-api-specs/jobs/496371647
...ion/eventgrid/resource-manager/Microsoft.EventGrid/preview/2019-02-01-preview/EventGrid.json
Outdated
Show resolved
Hide resolved
| "description": "The event delivery schema for the event subscription.", | ||
| "enum": [ | ||
| "EventGridSchema", | ||
| "InputEventSchema", |
There was a problem hiding this comment.
Please remove this value (as this is deprecated and has been replaced by CustomInputSchema.)
| "description": "The event delivery schema for the event subscription.", | ||
| "enum": [ | ||
| "EventGridSchema", | ||
| "InputEventSchema", |
There was a problem hiding this comment.
Please remove this value.
| "EventGridSchema", | ||
| "InputEventSchema", | ||
| "CloudEventV01Schema", | ||
| "GraphApiEventSchema", |
There was a problem hiding this comment.
Please remove this value.
| "type": "string" | ||
| }, | ||
| "isInDefaultSet": { | ||
| "description": "IsInDefaultSet flag of the event type.", |
There was a problem hiding this comment.
Nit: Would be good to have a better description for this one.
| "modelAsString": true | ||
| }, | ||
| "default": "EventGridSchema" | ||
| } |
There was a problem hiding this comment.
Would want to retain the "default": "EventGridSchema" that we have in the previous API version.
|
@sarangan12 Thx . Issue fixed and all tests are passing now. @kalyanaj Thx. all comments are taken care of. |
| "$ref": "#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "name": "$filter", |
There was a problem hiding this comment.
Please consider defining both these new parameters as global parameters (similar to other global parameters defined in the parameters section at the end of this swagger), this will avoid repeating the definition of these values in each list operation and will help the maintainability/future updates.
There was a problem hiding this comment.
Updated. thx for the suggestion
sarangan12
left a comment
There was a problem hiding this comment.
The new version files are not reference in the readme file. As a result, none of the tooling is run on the new files. Please add reference to the json files in the readme file and update the PR
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.