Skip to content

Commit

Permalink
fix(specs): results is required in GetRecommendationsResponse (#3357)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jul 12, 2024
1 parent 5c412b0 commit 337eea9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/cts/runCts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ async function runCtsOne(
const e2eFolder = toAbsolutePath(
`tests/output/${language}/${getTestOutputFolder(language)}/e2e`,
);
if ((await exists(e2eFolder)) && (await fsp.readdir(e2eFolder)).length > 0) folders.push('e2e');
if (
(await exists(e2eFolder)) &&
(await fsp.readdir(e2eFolder)).filter((f) => f !== '__init__.py' && f !== '__pycache__')
.length > 0
)
folders.push('e2e');
}
if (!excludeUnit) {
folders.push('client', 'requests');
Expand Down
2 changes: 2 additions & 0 deletions specs/recommend/paths/getRecommendations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ post:
type: array
items:
$ref: '../common/schemas/RecommendationsResponse.yml#/recommendationsResults'
required:
- results
'400':
$ref: '../../common/responses/BadRequest.yml'
'402':
Expand Down

0 comments on commit 337eea9

Please sign in to comment.