-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
86 additions
and
34 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
53 changes: 53 additions & 0 deletions
53
examples/openapi-v3_1-from-object/__snapshots__/index.spec.ts.snap
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,53 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Should be able to process a pure OpenAPI V3.1 object and should log expected output to console 1`] = ` | ||
Array [ | ||
"class TestPost_200ApplicationJson { | ||
private _email?: string; | ||
constructor(input: { | ||
email?: string, | ||
}) { | ||
this._email = input.email; | ||
} | ||
get email(): string | undefined { return this._email; } | ||
set email(email: string | undefined) { this._email = email; } | ||
}", | ||
] | ||
`; | ||
|
||
exports[`Should be able to process a pure OpenAPI V3.1 object and should log expected output to console 2`] = ` | ||
Array [ | ||
"class TestPostMultipartFormMinusData { | ||
private _id?: string; | ||
private _address?: Map<string, any>; | ||
private _profileImage?: string; | ||
private _additionalProperties?: Map<string, any>; | ||
constructor(input: { | ||
id?: string, | ||
address?: Map<string, any>, | ||
profileImage?: string, | ||
additionalProperties?: Map<string, any>, | ||
}) { | ||
this._id = input.id; | ||
this._address = input.address; | ||
this._profileImage = input.profileImage; | ||
this._additionalProperties = input.additionalProperties; | ||
} | ||
get id(): string | undefined { return this._id; } | ||
set id(id: string | undefined) { this._id = id; } | ||
get address(): Map<string, any> | undefined { return this._address; } | ||
set address(address: Map<string, any> | undefined) { this._address = address; } | ||
get profileImage(): string | undefined { return this._profileImage; } | ||
set profileImage(profileImage: string | undefined) { this._profileImage = profileImage; } | ||
get additionalProperties(): Map<string, any> | undefined { return this._additionalProperties; } | ||
set additionalProperties(additionalProperties: Map<string, any> | undefined) { this._additionalProperties = additionalProperties; } | ||
}", | ||
] | ||
`; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.