Skip to content

Commit 4794347

Browse files
xiaojinghealvadb
authored andcommitted
Add News Search API Swagger Spec (#2026)
* Add News Search API Swagger Spec * Add News Search API Swagger Spec * Add NewsArticle into Spec * Add miss comma before x-ms-examples * suppress _type error, fix 'OBJECT_ADDITIONAL_PROPERTIES' error, add … (#2) Suppress _type error, fix 'OBJECT_ADDITIONAL_PROPERTIES' error, add required parameters * Update description and Remove some internal properties (#3) Update description and Remove some internal properties
1 parent 36731b0 commit 4794347

5 files changed

Lines changed: 1500 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Cognitive Services News Search SDK
2+
3+
> see https://aka.ms/autorest
4+
5+
Configuration for generating News Search SDK.
6+
7+
The current release is `release_1_0`.
8+
9+
``` yaml
10+
11+
tag: release_1_0
12+
add-credentials: true
13+
openapi-type: data-plane
14+
```
15+
# Releases
16+
17+
### Release 1.0
18+
These settings apply only when `--tag=release_1_0` is specified on the command line.
19+
20+
``` yaml $(tag) == 'release_1_0'
21+
input-file: v1.0/NewsSearch.json
22+
```
23+
24+
## Suppressions
25+
26+
Suppressing errors due to API design:
27+
``` yaml
28+
directive:
29+
- suppress: R3016
30+
reason: _type is a polymorphic discriminator that can't be changed.
31+
```
32+
33+
## CSharp Settings
34+
These settings apply only when `--csharp` is specified on the command line.
35+
``` yaml $(csharp)
36+
csharp:
37+
namespace: Microsoft.Azure.CognitiveServices.Search.NewsSearch
38+
output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/Search/Search/Generated/NewsSearch
39+
sync-methods: none
40+
```
41+

0 commit comments

Comments
 (0)