mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
feat: Remove prepended ampersand and pipe
This commit is contained in:
parent
f6e425b421
commit
0284451d7a
@ -1 +1 @@
|
||||
({{#each properties}} & {{>type}}{{/each}}){{>isNullable}}
|
||||
({{#each properties}}{{#unless @first}} & {{/unless}}{{>type}}{{/each}}){{>isNullable}}
|
||||
|
||||
@ -1 +1 @@
|
||||
({{#each properties}} | {{>type}}{{/each}}){{>isNullable}}
|
||||
({{#each properties}}{{#unless @first}} | {{/unless}}{{>type}}{{/each}}){{>isNullable}}
|
||||
|
||||
@ -2905,7 +2905,7 @@ import type { ModelWithString } from './ModelWithString';
|
||||
/**
|
||||
* This is a model that extends another model
|
||||
*/
|
||||
export type ModelThatExtends = ( & ModelWithString & {
|
||||
export type ModelThatExtends = (ModelWithString & {
|
||||
propExtendsA?: string,
|
||||
propExtendsB?: ModelWithString,
|
||||
});"
|
||||
@ -2922,7 +2922,7 @@ import type { ModelWithString } from './ModelWithString';
|
||||
/**
|
||||
* This is a model that extends another model
|
||||
*/
|
||||
export type ModelThatExtendsExtends = ( & ModelWithString & ModelThatExtends & {
|
||||
export type ModelThatExtendsExtends = (ModelWithString & ModelThatExtends & {
|
||||
propExtendsC?: string,
|
||||
propExtendsD?: ModelWithString,
|
||||
});"
|
||||
@ -2941,7 +2941,7 @@ import type { ModelWithEnum } from './ModelWithEnum';
|
||||
* This is a model with one property with a 'all of' relationship
|
||||
*/
|
||||
export interface ModelWithAllOfAndNullable {
|
||||
propA?: ( & {
|
||||
propA?: ({
|
||||
boolean?: boolean,
|
||||
} & ModelWithEnum & ModelWithArray & ModelWithDictionary) | null;
|
||||
}
|
||||
@ -2962,7 +2962,7 @@ import type { ModelWithString } from './ModelWithString';
|
||||
* This is a model with one property with a 'any of' relationship
|
||||
*/
|
||||
export interface ModelWithAnyOf {
|
||||
propA?: ( | ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
|
||||
propA?: (ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
|
||||
}
|
||||
"
|
||||
`;
|
||||
@ -2980,7 +2980,7 @@ import type { ModelWithEnum } from './ModelWithEnum';
|
||||
* This is a model with one property with a 'any of' relationship
|
||||
*/
|
||||
export interface ModelWithAnyOfAndNullable {
|
||||
propA?: ( | {
|
||||
propA?: ({
|
||||
boolean?: boolean,
|
||||
} | ModelWithEnum | ModelWithArray | ModelWithDictionary) | null;
|
||||
}
|
||||
@ -3245,7 +3245,7 @@ import type { ModelWithString } from './ModelWithString';
|
||||
* This is a model with one property with a 'one of' relationship
|
||||
*/
|
||||
export interface ModelWithOneOf {
|
||||
propA?: ( | ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
|
||||
propA?: (ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
|
||||
}
|
||||
"
|
||||
`;
|
||||
@ -3263,7 +3263,7 @@ import type { ModelWithEnum } from './ModelWithEnum';
|
||||
* This is a model with one property with a 'one of' relationship
|
||||
*/
|
||||
export interface ModelWithOneOfAndNullable {
|
||||
propA?: ( | {
|
||||
propA?: ({
|
||||
boolean?: boolean,
|
||||
} | ModelWithEnum | ModelWithArray | ModelWithDictionary) | null;
|
||||
}
|
||||
@ -4344,7 +4344,7 @@ export class ComplexService {
|
||||
readonly type: 'Monkey' | 'Horse' | 'Bird',
|
||||
listOfModels?: Array<ModelWithString> | null,
|
||||
listOfStrings?: Array<string> | null,
|
||||
parameters: ( | ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary),
|
||||
parameters: (ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary),
|
||||
readonly user?: {
|
||||
readonly id?: number,
|
||||
readonly name?: string | null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user