-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 Auto Suggest API specification #2635
Conversation
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
Automation for azure-libraries-for-javaNothing to generate for azure-libraries-for-java |
Automation for azure-sdk-for-pythonEncountered a Subprocess error: (azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmp8gma6yyc/rest/specification/cognitiveservices/data-plane/AutoSuggest/readme.md', '--multiapi', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmp8gma6yyc/sdk', '[email protected]/autorest.python@~3.0', '--version=preview'] AutoRest code generation utility [version: 2.0.4262; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
There is a new version of AutoRest available (2.0.4280).
> You can install the newer version with with npm install -g autorest@latest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4280)
Loading AutoRest extension '@microsoft.azure/autorest.python' (~3.0->3.0.51)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
ERROR: Referenced file 'file:///tmp/tmp8gma6yyc/rest/specification/cognitiveservices/data-plane/AutoSuggest/stable/v1.0/examples/SuccessfulAutoSuggestRequest.json' not found
- file:///tmp/tmp8gma6yyc/rest/specification/cognitiveservices/data-plane/AutoSuggest/stable/v1.0/AutoSuggest.json:137:16 ($.paths["/suggestions"].get["x-ms-examples"]["Successful query"]["$ref"])
FATAL: swagger-document/loader - FAILED
FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting. |
@jwood803 thank you. Just trying to get some context here, saw that you are from Wintellect, are you in touch with anyone from Microsoft cognitive service team? if so can you can tag him/her in this PR so that service team also can take a look. In case you don't know anyone in cognitive team please let me know, i can find the contact and help you to progress this PR. Again thanks for the contribution! |
Thanks for getting back @anuchandy! I don't know anyone at Microsoft myself, but I'm sure some colleagues of mine do. I can ask them if that works. Apologies for the noise in this PR. I kind of figured things out as they went. I'm sure I still have some updates here, too. 😄 |
@jwood803 no worries, i'm checking with cognitive service team to see whether they can take a look at this PR. |
``` yaml $(python) && $(python-mode) == 'update' | ||
python: | ||
no-namespace-folders: true | ||
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-newssearch/azure/cognitiveservices/search/newssearch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change "newssearch" for "autosuggest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Content LGTM, please fix the Python conf. Thanks!
``` yaml $(python) && $(python-mode) == 'create' | ||
python: | ||
basic-setup-py: true | ||
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-newssearch/azure/cognitiveservices/search/newssearch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change "newssearch" for "autosuggest
Automation for azure-sdk-for-nodeNothing to generate for azure-sdk-for-node |
@AutorestCI rebuild azure-sdk-for-python |
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: 💡 Please review potentially introduced Error(s)/Warning(s): Analysis Report 💡 File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
@jwood803 Just to give you update, we need someone from the Autosuggest team to sign-off, but your PR looks good to me |
Thanks a ton, @lmazuel! I think I broke it when fixing the linting errors, but some extra guidance from that team would be very helpful. Thank you again! |
Looks like I've been slacking too much and this has already been implemented. Should this PR be closed? |
Hi @jwood803 that's unfortunate, seems the message was lost at some point and indeed the AutoSuggest team worked on it too :( Did you integrate your Swagger in your applications? Would you mind double-check that this new Swagger checked-in before yours fits your needs? This would be valuable feedback. Sorry again your contribution didn't make it faster :( |
No worries, @lmazuel! I should have fixed the issues in this PR a while ago to help it ready for further review. The other PR looks better than mine, too 😄 I would like to implement the samples in the samples repository, but I'm not sure about the workflow before it becomes a Python package in PyPI. I'm guessing after this PR gets merged the Python package gets auto-generated? |
@jwood803 Yes, I need to configure the "setup.py" and do some testing, but indeed you got it :) |
Awesome, @lmazuel, thanks! I'll wait for the package to be generated and I'll hit up some samples! 😃 I'll close this PR, but thank you for all the help! It's much appreciated! |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Apologies for the WIP pull request, but I'm not exactly sure if I'm on the right track. From my understanding, this is needed to auto-generate the code for the Python Azure SDK.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger