-
Notifications
You must be signed in to change notification settings - Fork 0
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
Michael M
committed
May 10, 2022
1 parent
d93fd36
commit 2126a92
Showing
22 changed files
with
413 additions
and
252 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 |
---|---|---|
|
@@ -30,3 +30,7 @@ indent_size = 2 | |
|
||
[*.{yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.handlebars] | ||
indent_size = 2 | ||
insert_final_newline = false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
import { MediaTypeObject, OpenAPIObject } from 'openapi3-ts'; | ||
|
||
import { OaImport } from './oa-import.js'; | ||
import { Options } from './options.js'; | ||
import { tsType } from './utils/open-api.js'; | ||
import { tsTypeVal } from './utils/open-api.js'; | ||
|
||
export class OaContent { | ||
public type: string; | ||
|
||
constructor( | ||
public mediaType: string, | ||
public spec: MediaTypeObject, | ||
public options: Options, | ||
public openApi: OpenAPIObject, | ||
) { | ||
this.type = tsType(spec.schema, options, openApi); | ||
public options: Options, | ||
) {} | ||
|
||
public updateProperties(imports: Map<string, OaImport>): void { | ||
this.type = tsTypeVal(this.spec.schema, this.openApi, this.options, imports); | ||
} | ||
} |
Oops, something went wrong.