-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
* add schema prefix option * Changes from lint:fix * parse properties + required * Changes from lint:fix * fix test * fix * Changes from lint:fix * array has type obj with allOf only * Changes from lint:fix * fixes * lint fix + log * fix message * empty string for prefix * clean up * refactor + tests * Changes from lint:fix * Update packages/openapi-generator/src/generator.ts * regenerate with different name * review remarks * add comments * additionalprop * Changes from lint:fix --------- Co-authored-by: cloud-sdk-js <[email protected]> Co-authored-by: Marika Marszalkowski <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Composition of extended properties (inheritance) and schema-specific properties together with required attribute. | ||
*/ | ||
export type EntityXOfInheritance = TestEntity & { | ||
booleanProperty: boolean; | ||
integerProperty2?: number; | ||
} & Record<string, any>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Composition of extended properties (inheritance) and schema-specific properties together with required attribute. | ||
*/ | ||
export type EntityXOfInheritance = TestEntity & { | ||
booleanProperty: boolean; | ||
integerProperty2?: number; | ||
} & Record<string, any>; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Entity with xOf and schema properties at same level. This is normalized to only xOf with schema properties inside xOf. Also works if only additionalProperties true is used. | ||
*/ | ||
export type EntityXOfNormalizedWithObject = | ||
| TestEntity | ||
| ({ | ||
booleanProperty: boolean; | ||
} & Record<string, any>); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Entity with xOf and schema properties at same level. This is normalized to only xOf with schema properties inside xOf. Also works if only additionalProperties true is used. | ||
*/ | ||
export type EntityXOfNormalizedWithObject = | ||
| TestEntity | ||
| ({ | ||
booleanProperty: boolean; | ||
} & Record<string, any>); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Representation of the 'TestEntity2' schema. | ||
*/ | ||
export type TestEntity2 = TestEntity & { | ||
booleanProperty: boolean; | ||
integerProperty2?: number; | ||
} & Record<string, any>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Representation of the 'TestEntity2' schema. | ||
*/ | ||
export type TestEntity2 = TestEntity & { | ||
booleanProperty: boolean; | ||
integerProperty2?: number; | ||
} & Record<string, any>; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Representation of the 'TestEntity3' schema. | ||
*/ | ||
export type TestEntity3 = | ||
| TestEntity | ||
| ({ | ||
booleanProperty?: boolean; | ||
} & Record<string, any>); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. | ||
* | ||
* This is a generated file powered by the SAP Cloud SDK for JavaScript. | ||
*/ | ||
import type { TestEntity } from './test-entity'; | ||
/** | ||
* Representation of the 'TestEntity3' schema. | ||
*/ | ||
export type TestEntity3 = | ||
| TestEntity | ||
| ({ | ||
booleanProperty?: boolean; | ||
} & Record<string, any>); |