Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit b1d827a

Browse files
authored
Java, adds string to datetime and date converter (#270)
* Change java templates to lowercase, switches java client to use handlebars * Removes a lot of java client process opts code * Generates a class that can parse strings into datetimes and dates * Sets build source directory * Adds isoparser date and datetime tests * Fixes AuthorTemplateTest * Fixes java test * Fixes another java test * Shortens test run time * Fixes java test * Sets java generator to experimental * Removes regen files zipping * Samples updated
1 parent a0d2776 commit b1d827a

File tree

353 files changed

+1812
-43143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+1812
-43143
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java
3+
inputSpec: src/test/resources/3_0/python/petstore_customized.yaml
4+
additionalProperties:
5+
booleanGetterPrefix: is
6+
artifactId: petstore
7+
hideGenerationTimestamp: "true"

bin/utils/ensure-up-to-date

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ if [ -n "$(git status --porcelain)" ]; then
5757
echo "When you see unexpected files here, it likely means that there are newer commits in master that you need to "
5858
echo -e "rebase or merge into your branch.\n"
5959
echo "Please run 'bin/utils/ensure-up-to-date' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
60-
zip -r /tmp/circleci-artifacts/samples.zip samples
6160
exit 1
6261
else
6362
echo "Git working tree is clean"

docs/generators/java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ title: Documentation for the java generator
77
| Property | Value | Notes |
88
| -------- | ----- | ----- |
99
| generator name | java | pass this to the generate command after -g |
10-
| generator stability | STABLE | |
10+
| generator stability | EXPERIMENTAL | |
1111
| generator type | CLIENT | |
1212
| generator language | Java | |
13-
| generator default templating engine | mustache | |
13+
| generator default templating engine | handlebars | |
1414
| helpTxt | Generates a Java client library (HTTP lib: Jersey (1.x, 2.x), Retrofit (2.x), OpenFeign (10.x) and more. | |
1515

1616
## CONFIG OPTIONS
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
README.md
2+
pom.xml
3+
src/main/java/org/openapijsonschematools/schemas/CustomIsoparser.java
4+
src/test/java/org/openapijsonschematools/schemas/CustomIsoparserTest.java
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unset

0 commit comments

Comments
 (0)