Repository navigation
Fix #25725: add dateAnchor option to typescript-fetch (local default, utc legacy) #25738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| generatorName: typescript-fetch | ||
| outputDir: samples/client/petstore/typescript-fetch/builds/date-anchor-utc | ||
| inputSpec: modules/openapi-generator/src/test/resources/3_0/typescript-fetch/date-handling.yaml | ||
| templateDir: modules/openapi-generator/src/main/resources/typescript-fetch | ||
| additionalProperties: | ||
| dateLibrary: date | ||
| dateAnchor: utc | ||
| npmVersion: 1.0.0 | ||
| npmName: '@openapitools/typescript-fetch-petstore' | ||
| npmRepository: https://skimdb.npmjs.com/registry |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -32,6 +32,7 @@ public class TypeScriptFetchClientOptionsProvider implements TypeScriptSharedCli | |||||
| public static final String STRING_ENUMS = "false"; | ||||||
| public static final String FILE_NAMING_VALUE = PASCAL_CASE; | ||||||
| public static final String DATE_LIBRARY_VALUE = TypeScriptFetchClientCodegen.DATE_LIBRARY_STRING; | ||||||
| public static final String DATE_ANCHOR_VALUE = TypeScriptFetchClientCodegen.DATE_ANCHOR_UTC; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: This fixture pairs Prompt for AI agents
Suggested change
|
||||||
|
|
||||||
|
|
||||||
| @Override | ||||||
|
|
@@ -52,6 +53,7 @@ public Map<String, String> createOptions() { | |||||
| .put(TypeScriptFetchClientCodegen.IMPORT_FILE_EXTENSION_SWITCH, IMPORT_FILE_EXTENSION_VALUE) | ||||||
| .put(TypeScriptFetchClientCodegen.FILE_NAMING, FILE_NAMING_VALUE) | ||||||
| .put(TypeScriptFetchClientCodegen.DATE_LIBRARY, DATE_LIBRARY_VALUE) | ||||||
| .put(TypeScriptFetchClientCodegen.DATE_ANCHOR, DATE_ANCHOR_VALUE) | ||||||
| .put(TypeScriptFetchClientCodegen.STRING_ENUMS, STRING_ENUMS) | ||||||
| .put(TypeScriptFetchClientCodegen.USE_SQUARE_BRACKETS_IN_ARRAY_NAMES, Boolean.FALSE.toString()) | ||||||
| .put(TypeScriptFetchClientCodegen.VALIDATION_ATTRIBUTES, Boolean.FALSE.toString()) | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| wwwroot/*.js | ||
| node_modules | ||
| typings | ||
| dist |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| README.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # OpenAPI Generator Ignore | ||
| # Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
|
||
| # Use this file to prevent files from being overwritten by the generator. | ||
| # The patterns follow closely to .gitignore or .dockerignore. | ||
|
|
||
| # As an example, the C# client generator defines ApiClient.cs. | ||
| # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
| #ApiClient.cs | ||
|
|
||
| # You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
| #foo/*/qux | ||
| # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
|
||
| # You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
| #foo/**/qux | ||
| # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
|
||
| # You can also negate patterns with an exclamation (!). | ||
| # For example, you can ignore all files in a docs folder with the file extension .md: | ||
| #docs/*.md | ||
| # Then explicitly reverse the ignore rule for a single file: | ||
| #!docs/README.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| .gitignore | ||
| .npmignore | ||
| README.md | ||
| docs/DefaultApi.md | ||
| docs/Event.md | ||
| docs/Holidays.md | ||
| docs/Venue.md | ||
| package.json | ||
| src/apis/DefaultApi.ts | ||
| src/apis/index.ts | ||
| src/index.ts | ||
| src/models/Event.ts | ||
| src/models/Holidays.ts | ||
| src/models/Venue.ts | ||
| src/models/index.ts | ||
| src/runtime.ts | ||
| tsconfig.esm.json | ||
| tsconfig.json |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 7.28.0-SNAPSHOT |
Uh oh!
There was an error while loading. Please reload this page.