-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[CognitiveServices] LUIS Runtime API Spec #2051
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
Merged
fearthecowboy
merged 10 commits into
Azure:current
from
southworks:cognitiveservices-luis-runtime-spec
Dec 1, 2017
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ed96a5c
Add LUIS Runtime API Spec
pcostantini da83d01
Change AzureRegion parameter to use ExtendedRegions template
pcostantini 84c120e
API Info Title - better description for API
pcostantini aa673f0
Operation Ids and Description update
pcostantini 8a945c6
Remove x-nullable: true
pcostantini cefe9b4
Add description to parameters and attributes
pcostantini c3ea0c8
Description field for LuisResult
pcostantini 8663698
Remove Prediction_Resolve2 operation
pcostantini 5d0af83
Represent "q" parameter as "query" argument
pcostantini bb87a56
modelAsExtensible
pcostantini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # Cognitive Services LUIS SDKs | ||
|
|
||
| > see https://aka.ms/autorest | ||
|
|
||
| Configuration for generating LUIS Runtime SDK. | ||
|
|
||
| ``` yaml | ||
| tag: runtime_2_0 | ||
| add-credentials: true | ||
| openapi-type: data-plane | ||
| ``` | ||
|
|
||
| The current release for the Runtime Endpoint is `runtime_2_0`. | ||
|
|
||
| # Releases | ||
|
|
||
| ## Runtime 2.0 | ||
| These settings apply only when `--tag=runtime_2_0` is specified on the command line. | ||
|
|
||
| ``` yaml $(tag) == 'runtime_2_0' | ||
| input-file: v2.0/LUIS-Runtime.json | ||
|
|
||
| # remove Resolve2 from code-generation (since the POST and GET operations are functionally identical) | ||
| directive: | ||
| remove-operation: Prediction_Resolve2 | ||
| ``` | ||
|
|
||
| ### Runtime 2.0 - CSharp Settings | ||
| These settings apply only when `--csharp` is specified on the command line. | ||
| ``` yaml $(csharp) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And, let's change this (uses new feature!) csharp:
override-client-name: LuisRuntimeAPI
sync-methods: None
license-header: MICROSOFT_MIT_NO_VERSION
azure-arm: false
namespace: Microsoft.Azure.CognitiveServices.Language.LUIS
output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated
clear-output-folder: true
# csharp has support for modelAsExtensible now; replace modelAsString with that.
directive:
from: swagger-document
where: $..['x-ms-enum']
transform: >
if( $['modelAsString'] ) {
$['modelAsExtensible'] = true;
$['modelAsString'] = false;
}
|
||
| csharp: | ||
| override-client-name: LuisRuntimeAPI | ||
| sync-methods: None | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| azure-arm: false | ||
| namespace: Microsoft.Azure.CognitiveServices.Language.LUIS | ||
| output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/Language/LUIS-Runtime/Generated | ||
| clear-output-folder: true | ||
|
|
||
| # csharp has support for modelAsExtensible now; replace modelAsString with that. | ||
| directive: | ||
| from: swagger-document | ||
| where: $..['x-ms-enum'] | ||
| transform: > | ||
| if( $['modelAsString'] ) { | ||
| $['modelAsExtensible'] = true; | ||
| $['modelAsString'] = false; | ||
| } | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Change this section to this:
It will suppress
Resolve2from getting code generation