-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: adds support for duration in java (#1604)
- Loading branch information
1 parent
9df2ef4
commit e76e394
Showing
4 changed files
with
79 additions
and
1 deletion.
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,62 @@ | ||
# Migration from v2 to v3 | ||
|
||
This document contains all the breaking changes and migrations guidelines for adapting your code to the new version. | ||
|
||
### TypeScript | ||
|
||
Is not affected by this change. | ||
|
||
### JavaScript | ||
|
||
Is not affected by this change. | ||
|
||
### C# | ||
|
||
Is not affected by this change. | ||
|
||
### Java | ||
|
||
#### java.time.Duration is used when format is duration | ||
|
||
This example used to generate a `String`, but is now instead using `java.time.Duration`. | ||
|
||
```yaml | ||
type: object | ||
properties: | ||
duration: | ||
type: string | ||
format: duration | ||
``` | ||
will generate | ||
```java | ||
public class TestClass { | ||
private java.time.Duration duration; | ||
... | ||
} | ||
``` | ||
|
||
### Kotlin | ||
|
||
Is not affected by this change. | ||
|
||
### Rust | ||
|
||
Is not affected by this change. | ||
|
||
### Python | ||
|
||
Is not affected by this change. | ||
|
||
### Go | ||
|
||
Is not affected by this change. | ||
|
||
### Dart | ||
|
||
Is not affected by this change. | ||
|
||
### C++ | ||
|
||
Is not affected by this change. |
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