Skip to content

Commit

Permalink
added format: date-time to for in Usage: openapi-generator [options] …
Browse files Browse the repository at this point in the history
…[command]

Options:
  -V, --version                      output the version number
  -d, --sdkDir <sdkDir>              sdkDir, default: process.cwd()/service
  -t, --templatePath <templatePath>  templatePath
  -t, --type <type>                  ts/js, default ts
  -c, --camelCase <camelCase>        filename style, true 为大驼峰,lower 为小驼峰
  -d, --sdkDir <sdkDir>              sdkDir, default: process.cwd()/service
  -t, --templatePath <templatePath>  templatePath
  -t, --type <type>                  ts/js, default ts
  -c, --camelCase <camelCase>        filename style, true 为大驼峰,lower 为小驼峰
  -h, --help                         output usage information

Commands:
  url <url>                          swagger2/oas3 json data url
  data <filePath>                    swagger2/oas3 json data file
  config <cfgPath>                   config path
  *
  • Loading branch information
shaikegross committed Nov 6, 2023
1 parent 81d16d5 commit 5dac8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/openapi-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ export class OpenAPIGenerator {
return {
...this.mapNullableType('string', isNullable),
default: defaultValue,
format: 'date-time',
};
}

Expand Down

0 comments on commit 5dac8b5

Please sign in to comment.