-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java): Allow overrides of package prefixes (#5374)
* feat(java): Allow overrides of package prefixes * Make package prefix abstract in ICustomConfig * Begin adding test * add test config * Add test output * update test * update all test * Add changelog entry * chore: update changelog * update ete tests * Reset snapshot to match main --------- Co-authored-by: Alberto <alberto@buildwithfern.com> Co-authored-by: ajgateno <ajgateno@users.noreply.github.com>
- Loading branch information
1 parent
7d877b6
commit 04d1b5c
Showing
51 changed files
with
2,639 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## 2.4.0 | ||
**`(feat):`** We now support overriding sdk package prefixes by adding a "package-prefix" key under the java-sdk generator | ||
configuration. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...a/src/__test__/__snapshots__/java-custom-package-prefix/type_imdb_CreateMovieRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"rating": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"title", | ||
"rating" | ||
], | ||
"additionalProperties": false, | ||
"definitions": {} | ||
} |
25 changes: 25 additions & 0 deletions
25
...-to-jsonschema/src/__test__/__snapshots__/java-custom-package-prefix/type_imdb_Movie.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"$ref": "#/definitions/imdb.MovieId" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"rating": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"title", | ||
"rating" | ||
], | ||
"additionalProperties": false, | ||
"definitions": { | ||
"imdb.MovieId": { | ||
"type": "string" | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...o-jsonschema/src/__test__/__snapshots__/java-custom-package-prefix/type_imdb_MovieId.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type": "string", | ||
"definitions": {} | ||
} |
Oops, something went wrong.