Skip to content

Commit 944474c

Browse files
authored
Merge pull request #4 from FastComments/optional-date
date is now optional (server can determine)
2 parents be9ae7e + 80a7cd4 commit 944474c

File tree

12 files changed

+19
-23
lines changed

12 files changed

+19
-23
lines changed

client/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.fastcomments</groupId>
4242
<artifactId>client</artifactId>
43-
<version>0.0.20</version>
43+
<version>0.0.21</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.fastcomments:client:0.0.20"
59+
implementation "com.fastcomments:client:0.0.21"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
* `target/client-0.0.20.jar`
73+
* `target/client-0.0.21.jar`
7474
* `target/lib/*.jar`
7575

7676
## Getting Started

client/api/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6277,7 +6277,6 @@ components:
62776277
required:
62786278
- comment
62796279
- commenterName
6280-
- date
62816280
- url
62826281
- urlId
62836282
type: object
@@ -8710,7 +8709,6 @@ components:
87108709
required:
87118710
- comment
87128711
- commenterName
8713-
- date
87148712
- locale
87158713
- url
87168714
- urlId

client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.fastcomments'
7-
version = '0.0.20'
7+
version = '0.0.21'
88

99
buildscript {
1010
repositories {

client/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.fastcomments",
44
name := "client",
5-
version := "0.0.20",
5+
version := "0.0.21",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

client/docs/CommentData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**date** | **Double** | | |
10+
|**date** | **Double** | | [optional] |
1111
|**localDateString** | **String** | | [optional] |
1212
|**localDateHours** | **Double** | | [optional] |
1313
|**commenterName** | **String** | | |

client/docs/CreateCommentParams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**date** | **Double** | | |
10+
|**date** | **Double** | | [optional] |
1111
|**localDateString** | **String** | | [optional] |
1212
|**localDateHours** | **Double** | | [optional] |
1313
|**commenterName** | **String** | | |

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>client</artifactId>
66
<packaging>jar</packaging>
77
<name>client</name>
8-
<version>0.0.20</version>
8+
<version>0.0.21</version>
99
<url>https://fastcomments.com</url>
1010
<description>FastComments API Client - A SDK for interacting with the FastComments API</description>
1111
<scm>

client/src/main/java/com/fastcomments/invoker/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void init() {
141141
json = new JSON();
142142

143143
// Set default User-Agent.
144-
setUserAgent("OpenAPI-Generator/0.0.20/java");
144+
setUserAgent("OpenAPI-Generator/0.0.21/java");
145145

146146
authentications = new HashMap<String, Authentication>();
147147
}

client/src/main/java/com/fastcomments/invoker/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
1717
public class Configuration {
18-
public static final String VERSION = "0.0.20";
18+
public static final String VERSION = "0.0.21";
1919

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

client/src/main/java/com/fastcomments/model/CommentData.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
public class CommentData {
6060
public static final String SERIALIZED_NAME_DATE = "date";
6161
@SerializedName(SERIALIZED_NAME_DATE)
62-
@javax.annotation.Nonnull
62+
@javax.annotation.Nullable
6363
private Double date;
6464

6565
public static final String SERIALIZED_NAME_LOCAL_DATE_STRING = "localDateString";
@@ -180,7 +180,7 @@ public class CommentData {
180180
public CommentData() {
181181
}
182182

183-
public CommentData date(@javax.annotation.Nonnull Double date) {
183+
public CommentData date(@javax.annotation.Nullable Double date) {
184184
this.date = date;
185185
return this;
186186
}
@@ -189,12 +189,12 @@ public CommentData date(@javax.annotation.Nonnull Double date) {
189189
* Get date
190190
* @return date
191191
*/
192-
@javax.annotation.Nonnull
192+
@javax.annotation.Nullable
193193
public Double getDate() {
194194
return date;
195195
}
196196

197-
public void setDate(@javax.annotation.Nonnull Double date) {
197+
public void setDate(@javax.annotation.Nullable Double date) {
198198
this.date = date;
199199
}
200200

@@ -794,7 +794,6 @@ private String toIndentedString(Object o) {
794794

795795
// a set of required properties/fields (JSON key names)
796796
openapiRequiredFields = new HashSet<String>();
797-
openapiRequiredFields.add("date");
798797
openapiRequiredFields.add("commenterName");
799798
openapiRequiredFields.add("comment");
800799
openapiRequiredFields.add("url");

0 commit comments

Comments
 (0)