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

Add News Search API Swagger Spec #2026

Merged
merged 3 commits into from
Dec 11, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions specification/cognitiveservices/data-plane/NewsSearch/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Cognitive Services News Search SDK

> see https://aka.ms/autorest

Configuration for generating News Search SDK.

The current release is `release_1_0`.

``` yaml

tag: release_1_0
add-credentials: true
openapi-type: data-plane
```
# Releases

### Release 1.0
These settings apply only when `--tag=release_1_0` is specified on the command line.

``` yaml $(tag) == 'release_1_0'
input-file: v1.0/NewsSearch.json
```

Copy link
Member

@fearthecowboy fearthecowboy Nov 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a section in the readme.md that looks like this:

## Suppressions 

Suppressing errors due to API design: 
``` yaml 
directive:
  - suppress: R3016
    reason: _type is a polymorphic discriminator that can't be changed. 
```

## CSharp Settings
These settings apply only when `--csharp` is specified on the command line.
``` yaml $(csharp)
csharp:
namespace: Microsoft.Azure.CognitiveServices.Search.NewsSearch
output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/Search/Search/Generated/NewsSearch
sync-methods: none
```

Loading