@ama-sdk/schematics 11.4.0-prerelease.18 → 11.4.0-prerelease.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +9 -9
- package/schematics/java/client-core/swagger-codegen-java-client/target/javaClient-swagger-codegen-tests.jar +0 -0
- package/schematics/java/client-core/swagger-codegen-java-client/target/javaClient-swagger-codegen.jar +0 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator-tests.jar +0 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator.jar +0 -0
- package/schematics/typescript/shell/templates/base/readme.md +8 -4
package/README.md
CHANGED
|
@@ -132,6 +132,10 @@ If your specification file includes dates, there are multiple options for the ge
|
|
|
132
132
|
For more information related to these types, check out this [documentation](https://github.com/AmadeusITGroup/otter/tree/main/packages/%40ama-sdk/schematics/schematics/typescript/shell/templates/base#manage-dates).
|
|
133
133
|
This can be done by adding `--global-property stringifyDate=false` to the generator command or by adding the global property
|
|
134
134
|
to the `openapitools.json`.
|
|
135
|
+
> [!NOTE]
|
|
136
|
+
> An extra type to manage special timezone use cases can be used at property level thanks to the
|
|
137
|
+
> `x-local-timezone` vendor.
|
|
138
|
+
> Please check out the [date documentation](https://github.com/AmadeusITGroup/otter/tree/main/packages/%40ama-sdk/schematics/schematics/typescript/shell/templates/base#manage-dates).
|
|
135
139
|
|
|
136
140
|
Example to use `Date`:
|
|
137
141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "11.4.0-prerelease.
|
|
3
|
+
"version": "11.4.0-prerelease.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@ama-sdk/core": "^11.4.0-prerelease.
|
|
60
|
+
"@ama-sdk/core": "^11.4.0-prerelease.19",
|
|
61
61
|
"@angular-devkit/core": "~18.2.0",
|
|
62
62
|
"@angular-devkit/schematics": "~18.2.0",
|
|
63
63
|
"@angular-devkit/schematics-cli": "^18.0.5",
|
|
64
64
|
"@angular/cli": "~18.2.0",
|
|
65
|
-
"@o3r/schematics": "^11.4.0-prerelease.
|
|
65
|
+
"@o3r/schematics": "^11.4.0-prerelease.19",
|
|
66
66
|
"@openapitools/openapi-generator-cli": "~2.13.0",
|
|
67
67
|
"@schematics/angular": "~18.2.0"
|
|
68
68
|
},
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"tslib": "^2.6.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@ama-sdk/core": "^11.4.0-prerelease.
|
|
82
|
+
"@ama-sdk/core": "^11.4.0-prerelease.19",
|
|
83
83
|
"@angular-devkit/schematics-cli": "^18.0.5",
|
|
84
84
|
"@angular-eslint/eslint-plugin": "~18.3.0",
|
|
85
85
|
"@angular/cli": "~18.2.0",
|
|
86
86
|
"@nx/eslint-plugin": "~19.5.0",
|
|
87
87
|
"@nx/jest": "~19.5.0",
|
|
88
|
-
"@o3r/build-helpers": "^11.4.0-prerelease.
|
|
89
|
-
"@o3r/eslint-plugin": "^11.4.0-prerelease.
|
|
90
|
-
"@o3r/schematics": "^11.4.0-prerelease.
|
|
91
|
-
"@o3r/telemetry": "^11.4.0-prerelease.
|
|
92
|
-
"@o3r/test-helpers": "^11.4.0-prerelease.
|
|
88
|
+
"@o3r/build-helpers": "^11.4.0-prerelease.19",
|
|
89
|
+
"@o3r/eslint-plugin": "^11.4.0-prerelease.19",
|
|
90
|
+
"@o3r/schematics": "^11.4.0-prerelease.19",
|
|
91
|
+
"@o3r/telemetry": "^11.4.0-prerelease.19",
|
|
92
|
+
"@o3r/test-helpers": "^11.4.0-prerelease.19",
|
|
93
93
|
"@openapitools/openapi-generator-cli": "~2.13.0",
|
|
94
94
|
"@schematics/angular": "~18.2.0",
|
|
95
95
|
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -127,10 +127,14 @@ You will need to compute this information with the two timezones -- the airport'
|
|
|
127
127
|
The Otter framework has introduced the `utils.Date` and `utils.DateTime` objects to replace the `Date` implementation and convert the date returned by the API as if it were in the
|
|
128
128
|
timezone of the user.
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
#### Date format
|
|
131
|
+
Dates can be generated as `utils.Date` or string depending on the value of the `stringifyDate` option.
|
|
132
|
+
This ensures that the timezone will not impact the date as the native `Date` object does not handle the 'dd/mm' format well.
|
|
133
|
+
|
|
134
|
+
#### Date-time format
|
|
135
|
+
In the case of `date-time` objects, the default type used is the native string or the native `Date` type depending on the `stringifyDate` option value.
|
|
136
|
+
If you want to generate a date-time using `utils.DateTime` (see the [previous section](#the-timezone-issue)), you can do it at property level thanks to
|
|
137
|
+
the `x-local-timezone` vendor.
|
|
134
138
|
|
|
135
139
|
If you need to keep the timezone information, extend the model and create a new field directly in the SDK.
|
|
136
140
|
As this field does not exist in the specification, it will not be part of the base model but of the core model instead (the first one being completely generated from the API specifications).
|