-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(open-api-typescript): generate path params flag
generate path params flag
- Loading branch information
1 parent
7d6e896
commit 0afeb62
Showing
9 changed files
with
247 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
--- | ||
"openapi-typescript": minor | ||
--- | ||
|
||
Support generating path params for flaky schemas using --generate-path-params option |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
28 changes: 28 additions & 0 deletions
28
packages/openapi-typescript/test/fixtures/generate-params-test.yaml
This file contains 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,28 @@ | ||
openapi: "3.0" | ||
info: | ||
title: Test | ||
version: "1.0" | ||
paths: | ||
/{id}/get-item-undefined-path-param: | ||
description: Remote Ref | ||
$ref: "_path-object-refs-paths.yaml#/GetItemOperation" | ||
/{id}/get-item-undefined-nested-path-param/{secondId}: | ||
description: Remote Ref | ||
$ref: "_path-object-refs-paths.yaml#/GetItemOperation" | ||
parameters: | ||
- | ||
name: id | ||
in: path | ||
required: true | ||
schema: | ||
type: number | ||
/{id}/get-item-defined-path-param: | ||
description: Remote Ref | ||
$ref: "_path-object-refs-paths.yaml#/GetItemOperation" | ||
parameters: | ||
- | ||
name: id | ||
in: path | ||
required: true | ||
schema: | ||
type: number |
This file contains 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
This file contains 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