Commit 3e33888f authored by EnesKarakas's avatar EnesKarakas
Browse files

de

parent 5310f102
...@@ -53,7 +53,7 @@ public class CurrentweatherApiController implements CurrentweatherApi { ...@@ -53,7 +53,7 @@ public class CurrentweatherApiController implements CurrentweatherApi {
@NotNull @Parameter(in = ParameterIn.QUERY, description = "For the query value, type the city name and optionally the country code divided by comma; use ISO 3166 country codes.", required = true, schema = @Schema()) @Valid @RequestParam(value = "q", required = true) String q, @NotNull @Parameter(in = ParameterIn.QUERY, description = "For the query value, type the city name and optionally the country code divided by comma; use ISO 3166 country codes.", required = true, schema = @Schema()) @Valid @RequestParam(value = "q", required = true) String q,
@Parameter(in = ParameterIn.QUERY, description = "filter parameter", schema = @Schema()) @Valid @RequestParam(value = "filter", required = false) String filter) { @Parameter(in = ParameterIn.QUERY, description = "filter parameter", schema = @Schema()) @Valid @RequestParam(value = "filter", required = false) String filter) {
try { try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}"; String datafree = "{}";
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate); ApiService apiService = new ApiService(restTemplate);
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -14,9 +17,9 @@ import javax.validation.constraints.*; ...@@ -14,9 +17,9 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Alerts {
public class Alerts {
@JsonProperty("headline") @JsonProperty("headline")
private String headline = null; private String headline = null;
...@@ -63,12 +66,13 @@ public class Alerts { ...@@ -63,12 +66,13 @@ public class Alerts {
/** /**
* Get headline * Get headline
*
* @return headline * @return headline
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getHeadline() { public String getHeadline() {
return headline; return headline;
} }
...@@ -83,11 +87,12 @@ public class Alerts { ...@@ -83,11 +87,12 @@ public class Alerts {
/** /**
* Get msgtype * Get msgtype
*
* @return msgtype * @return msgtype
**/ **/
@Schema(description = "") @Schema(description = "")
public String getMsgtype() { public String getMsgtype() {
return msgtype; return msgtype;
} }
...@@ -102,11 +107,12 @@ public class Alerts { ...@@ -102,11 +107,12 @@ public class Alerts {
/** /**
* Get severity * Get severity
*
* @return severity * @return severity
**/ **/
@Schema(description = "") @Schema(description = "")
public String getSeverity() { public String getSeverity() {
return severity; return severity;
} }
...@@ -121,11 +127,12 @@ public class Alerts { ...@@ -121,11 +127,12 @@ public class Alerts {
/** /**
* Get urgency * Get urgency
*
* @return urgency * @return urgency
**/ **/
@Schema(description = "") @Schema(description = "")
public String getUrgency() { public String getUrgency() {
return urgency; return urgency;
} }
...@@ -140,11 +147,12 @@ public class Alerts { ...@@ -140,11 +147,12 @@ public class Alerts {
/** /**
* Get areas * Get areas
*
* @return areas * @return areas
**/ **/
@Schema(description = "") @Schema(description = "")
public String getAreas() { public String getAreas() {
return areas; return areas;
} }
...@@ -159,12 +167,13 @@ public class Alerts { ...@@ -159,12 +167,13 @@ public class Alerts {
/** /**
* Get category * Get category
*
* @return category * @return category
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getCategory() { public String getCategory() {
return category; return category;
} }
...@@ -179,11 +188,12 @@ public class Alerts { ...@@ -179,11 +188,12 @@ public class Alerts {
/** /**
* Get certainty * Get certainty
*
* @return certainty * @return certainty
**/ **/
@Schema(description = "") @Schema(description = "")
public String getCertainty() { public String getCertainty() {
return certainty; return certainty;
} }
...@@ -198,12 +208,13 @@ public class Alerts { ...@@ -198,12 +208,13 @@ public class Alerts {
/** /**
* Get event * Get event
*
* @return event * @return event
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getEvent() { public String getEvent() {
return event; return event;
} }
...@@ -218,11 +229,12 @@ public class Alerts { ...@@ -218,11 +229,12 @@ public class Alerts {
/** /**
* Get note * Get note
*
* @return note * @return note
**/ **/
@Schema(description = "") @Schema(description = "")
public String getNote() { public String getNote() {
return note; return note;
} }
...@@ -237,13 +249,14 @@ public class Alerts { ...@@ -237,13 +249,14 @@ public class Alerts {
/** /**
* Get effective * Get effective
*
* @return effective * @return effective
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public OffsetDateTime getEffective() { public OffsetDateTime getEffective() {
return effective; return effective;
} }
...@@ -258,13 +271,14 @@ public class Alerts { ...@@ -258,13 +271,14 @@ public class Alerts {
/** /**
* Get expires * Get expires
*
* @return expires * @return expires
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public OffsetDateTime getExpires() { public OffsetDateTime getExpires() {
return expires; return expires;
} }
...@@ -279,12 +293,13 @@ public class Alerts { ...@@ -279,12 +293,13 @@ public class Alerts {
/** /**
* Get desc * Get desc
*
* @return desc * @return desc
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getDesc() { public String getDesc() {
return desc; return desc;
} }
...@@ -299,12 +314,13 @@ public class Alerts { ...@@ -299,12 +314,13 @@ public class Alerts {
/** /**
* Get instruction * Get instruction
*
* @return instruction * @return instruction
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getInstruction() { public String getInstruction() {
return instruction; return instruction;
} }
...@@ -312,7 +328,6 @@ public class Alerts { ...@@ -312,7 +328,6 @@ public class Alerts {
this.instruction = instruction; this.instruction = instruction;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -339,14 +354,15 @@ public class Alerts { ...@@ -339,14 +354,15 @@ public class Alerts {
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective, expires, desc, instruction); return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective,
expires, desc, instruction);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class Alerts {\n"); sb.append("class Alerts {\n");
sb.append(" headline: ").append(toIndentedString(headline)).append("\n"); sb.append(" headline: ").append(toIndentedString(headline)).append("\n");
sb.append(" msgtype: ").append(toIndentedString(msgtype)).append("\n"); sb.append(" msgtype: ").append(toIndentedString(msgtype)).append("\n");
sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -13,9 +16,9 @@ import javax.validation.constraints.*; ...@@ -13,9 +16,9 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Astro {
public class Astro {
@JsonProperty("sunrise") @JsonProperty("sunrise")
private String sunrise = null; private String sunrise = null;
...@@ -41,12 +44,13 @@ public class Astro { ...@@ -41,12 +44,13 @@ public class Astro {
/** /**
* Get sunrise * Get sunrise
*
* @return sunrise * @return sunrise
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getSunrise() { public String getSunrise() {
return sunrise; return sunrise;
} }
...@@ -61,12 +65,13 @@ public class Astro { ...@@ -61,12 +65,13 @@ public class Astro {
/** /**
* Get sunset * Get sunset
*
* @return sunset * @return sunset
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getSunset() { public String getSunset() {
return sunset; return sunset;
} }
...@@ -81,12 +86,13 @@ public class Astro { ...@@ -81,12 +86,13 @@ public class Astro {
/** /**
* Get moonrise * Get moonrise
*
* @return moonrise * @return moonrise
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonrise() { public String getMoonrise() {
return moonrise; return moonrise;
} }
...@@ -101,12 +107,13 @@ public class Astro { ...@@ -101,12 +107,13 @@ public class Astro {
/** /**
* Get moonset * Get moonset
*
* @return moonset * @return moonset
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonset() { public String getMoonset() {
return moonset; return moonset;
} }
...@@ -121,12 +128,13 @@ public class Astro { ...@@ -121,12 +128,13 @@ public class Astro {
/** /**
* Get moonPhase * Get moonPhase
*
* @return moonPhase * @return moonPhase
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonPhase() { public String getMoonPhase() {
return moonPhase; return moonPhase;
} }
...@@ -141,12 +149,13 @@ public class Astro { ...@@ -141,12 +149,13 @@ public class Astro {
/** /**
* Get moonIllumination * Get moonIllumination
*
* @return moonIllumination * @return moonIllumination
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonIllumination() { public String getMoonIllumination() {
return moonIllumination; return moonIllumination;
} }
...@@ -154,7 +163,6 @@ public class Astro { ...@@ -154,7 +163,6 @@ public class Astro {
this.moonIllumination = moonIllumination; this.moonIllumination = moonIllumination;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -181,7 +189,7 @@ public class Astro { ...@@ -181,7 +189,7 @@ public class Astro {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class Astro {\n"); sb.append("class Astro {\n");
sb.append(" sunrise: ").append(toIndentedString(sunrise)).append("\n"); sb.append(" sunrise: ").append(toIndentedString(sunrise)).append("\n");
sb.append(" sunset: ").append(toIndentedString(sunset)).append("\n"); sb.append(" sunset: ").append(toIndentedString(sunset)).append("\n");
sb.append(" moonrise: ").append(toIndentedString(moonrise)).append("\n"); sb.append(" moonrise: ").append(toIndentedString(moonrise)).append("\n");
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -13,9 +16,8 @@ import javax.validation.constraints.*; ...@@ -13,9 +16,8 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class DayCondition {
public class DayCondition {
@JsonProperty("maxtemp_c") @JsonProperty("maxtemp_c")
private Float maxtempC = null; private Float maxtempC = null;
...@@ -68,7 +70,7 @@ public class DayCondition { ...@@ -68,7 +70,7 @@ public class DayCondition {
private Integer dailyChanceOfSnow = null; private Integer dailyChanceOfSnow = null;
@JsonProperty("uv") @JsonProperty("uv")
private Float uv = null; private Float uv_day = null;
public DayCondition maxtempC(Float maxtempC) { public DayCondition maxtempC(Float maxtempC) {
this.maxtempC = maxtempC; this.maxtempC = maxtempC;
...@@ -77,12 +79,13 @@ public class DayCondition { ...@@ -77,12 +79,13 @@ public class DayCondition {
/** /**
* Get maxtempC * Get maxtempC
*
* @return maxtempC * @return maxtempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxtempC() { public Float getMaxtempC() {
return maxtempC; return maxtempC;
} }
...@@ -97,12 +100,13 @@ public class DayCondition { ...@@ -97,12 +100,13 @@ public class DayCondition {
/** /**
* Get maxtempF * Get maxtempF
*
* @return maxtempF * @return maxtempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxtempF() { public Float getMaxtempF() {
return maxtempF; return maxtempF;
} }
...@@ -117,12 +121,13 @@ public class DayCondition { ...@@ -117,12 +121,13 @@ public class DayCondition {
/** /**
* Get mintempC * Get mintempC
*
* @return mintempC * @return mintempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMintempC() { public Float getMintempC() {
return mintempC; return mintempC;
} }
...@@ -137,12 +142,13 @@ public class DayCondition { ...@@ -137,12 +142,13 @@ public class DayCondition {
/** /**
* Get mintempF * Get mintempF
*
* @return mintempF * @return mintempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMintempF() { public Float getMintempF() {
return mintempF; return mintempF;
} }
...@@ -157,12 +163,13 @@ public class DayCondition { ...@@ -157,12 +163,13 @@ public class DayCondition {
/** /**
* Get avgtempC * Get avgtempC
*
* @return avgtempC * @return avgtempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgtempC() { public Float getAvgtempC() {
return avgtempC; return avgtempC;
} }
...@@ -177,12 +184,13 @@ public class DayCondition { ...@@ -177,12 +184,13 @@ public class DayCondition {
/** /**
* Get avgtempF * Get avgtempF
*
* @return avgtempF * @return avgtempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgtempF() { public Float getAvgtempF() {
return avgtempF; return avgtempF;
} }
...@@ -197,12 +205,13 @@ public class DayCondition { ...@@ -197,12 +205,13 @@ public class DayCondition {
/** /**
* Get maxwindMph * Get maxwindMph
*
* @return maxwindMph * @return maxwindMph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxwindMph() { public Float getMaxwindMph() {
return maxwindMph; return maxwindMph;
} }
...@@ -217,12 +226,13 @@ public class DayCondition { ...@@ -217,12 +226,13 @@ public class DayCondition {
/** /**
* Get maxwindKph * Get maxwindKph
*
* @return maxwindKph * @return maxwindKph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxwindKph() { public Float getMaxwindKph() {
return maxwindKph; return maxwindKph;
} }
...@@ -237,12 +247,13 @@ public class DayCondition { ...@@ -237,12 +247,13 @@ public class DayCondition {
/** /**
* Get totalprecipMm * Get totalprecipMm
*
* @return totalprecipMm * @return totalprecipMm
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getTotalprecipMm() { public Float getTotalprecipMm() {
return totalprecipMm; return totalprecipMm;
} }
...@@ -257,12 +268,13 @@ public class DayCondition { ...@@ -257,12 +268,13 @@ public class DayCondition {
/** /**
* Get totalprecipIn * Get totalprecipIn
*
* @return totalprecipIn * @return totalprecipIn
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getTotalprecipIn() { public Float getTotalprecipIn() {
return totalprecipIn; return totalprecipIn;
} }
...@@ -277,12 +289,13 @@ public class DayCondition { ...@@ -277,12 +289,13 @@ public class DayCondition {
/** /**
* Get avgvisKm * Get avgvisKm
*
* @return avgvisKm * @return avgvisKm
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgvisKm() { public Float getAvgvisKm() {
return avgvisKm; return avgvisKm;
} }
...@@ -297,12 +310,13 @@ public class DayCondition { ...@@ -297,12 +310,13 @@ public class DayCondition {
/** /**
* Get avgvisMiles * Get avgvisMiles
*
* @return avgvisMiles * @return avgvisMiles
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgvisMiles() { public Float getAvgvisMiles() {
return avgvisMiles; return avgvisMiles;
} }
...@@ -317,12 +331,13 @@ public class DayCondition { ...@@ -317,12 +331,13 @@ public class DayCondition {
/** /**
* Get avghumidity * Get avghumidity
*
* @return avghumidity * @return avghumidity
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getAvghumidity() { public Integer getAvghumidity() {
return avghumidity; return avghumidity;
} }
...@@ -337,12 +352,13 @@ public class DayCondition { ...@@ -337,12 +352,13 @@ public class DayCondition {
/** /**
* Get dailyWillItRain * Get dailyWillItRain
*
* @return dailyWillItRain * @return dailyWillItRain
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyWillItRain() { public Integer getDailyWillItRain() {
return dailyWillItRain; return dailyWillItRain;
} }
...@@ -357,12 +373,13 @@ public class DayCondition { ...@@ -357,12 +373,13 @@ public class DayCondition {
/** /**
* Get dailyChanceOfRain * Get dailyChanceOfRain
*
* @return dailyChanceOfRain * @return dailyChanceOfRain
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyChanceOfRain() { public Integer getDailyChanceOfRain() {
return dailyChanceOfRain; return dailyChanceOfRain;
} }
...@@ -377,12 +394,13 @@ public class DayCondition { ...@@ -377,12 +394,13 @@ public class DayCondition {
/** /**
* Get dailyWillItSnow * Get dailyWillItSnow
*
* @return dailyWillItSnow * @return dailyWillItSnow
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyWillItSnow() { public Integer getDailyWillItSnow() {
return dailyWillItSnow; return dailyWillItSnow;
} }
...@@ -397,12 +415,13 @@ public class DayCondition { ...@@ -397,12 +415,13 @@ public class DayCondition {
/** /**
* Get dailyChanceOfSnow * Get dailyChanceOfSnow
*
* @return dailyChanceOfSnow * @return dailyChanceOfSnow
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyChanceOfSnow() { public Integer getDailyChanceOfSnow() {
return dailyChanceOfSnow; return dailyChanceOfSnow;
} }
...@@ -410,27 +429,27 @@ public class DayCondition { ...@@ -410,27 +429,27 @@ public class DayCondition {
this.dailyChanceOfSnow = dailyChanceOfSnow; this.dailyChanceOfSnow = dailyChanceOfSnow;
} }
public DayCondition uv(Float uv) { public DayCondition uv_day(Float uv_day) {
this.uv = uv; this.uv_day = uv_day;
return this; return this;
} }
/** /**
* Get uv * Get uv_day
* @return uv *
* @return uv_day
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getUv() { public Float getUv_day() {
return uv; return uv_day;
} }
public void setUv(Float uv) { public void setUv_day(Float uv_day) {
this.uv = uv; this.uv_day = uv_day;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -457,19 +476,21 @@ public class DayCondition { ...@@ -457,19 +476,21 @@ public class DayCondition {
Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) && Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) &&
Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) && Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) &&
Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) && Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) &&
Objects.equals(this.uv, dayCondition.uv); Objects.equals(this.uv_day, dayCondition.uv_day);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph, totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain, dailyWillItSnow, dailyChanceOfSnow, uv); return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph,
totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain,
dailyWillItSnow, dailyChanceOfSnow, uv_day);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class DayCondition {\n"); sb.append("class DayCondition {\n");
sb.append(" maxtempC: ").append(toIndentedString(maxtempC)).append("\n"); sb.append(" maxtempC: ").append(toIndentedString(maxtempC)).append("\n");
sb.append(" maxtempF: ").append(toIndentedString(maxtempF)).append("\n"); sb.append(" maxtempF: ").append(toIndentedString(maxtempF)).append("\n");
sb.append(" mintempC: ").append(toIndentedString(mintempC)).append("\n"); sb.append(" mintempC: ").append(toIndentedString(mintempC)).append("\n");
...@@ -487,7 +508,7 @@ public class DayCondition { ...@@ -487,7 +508,7 @@ public class DayCondition {
sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n"); sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n");
sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n"); sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n");
sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).append("\n"); sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).append("\n");
sb.append(" uv: ").append(toIndentedString(uv)).append("\n"); sb.append(" uv_day: ").append(toIndentedString(uv_day)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.Astro; import io.swagger.model.Astro;
import io.swagger.model.DayCondition; import io.swagger.model.DayCondition;
import io.swagger.model.HourCondition; import io.swagger.model.HourCondition;
...@@ -18,9 +21,8 @@ import javax.validation.constraints.*; ...@@ -18,9 +21,8 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class ForecastDay {
public class ForecastDay {
@JsonProperty("date") @JsonProperty("date")
private String date = null; private String date = null;
...@@ -28,10 +30,10 @@ public class ForecastDay { ...@@ -28,10 +30,10 @@ public class ForecastDay {
private Integer dateEpoch = null; private Integer dateEpoch = null;
@JsonProperty("day") @JsonProperty("day")
private DayCondition day = null; private DayCondition day = new DayCondition();
@JsonProperty("astro") @JsonProperty("astro")
private Astro astro = null; private Astro astro = new Astro();
@JsonProperty("hour") @JsonProperty("hour")
@Valid @Valid
...@@ -44,12 +46,13 @@ public class ForecastDay { ...@@ -44,12 +46,13 @@ public class ForecastDay {
/** /**
* Get date * Get date
*
* @return date * @return date
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getDate() { public String getDate() {
return date; return date;
} }
...@@ -64,12 +67,13 @@ public class ForecastDay { ...@@ -64,12 +67,13 @@ public class ForecastDay {
/** /**
* Get dateEpoch * Get dateEpoch
*
* @return dateEpoch * @return dateEpoch
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDateEpoch() { public Integer getDateEpoch() {
return dateEpoch; return dateEpoch;
} }
...@@ -84,13 +88,14 @@ public class ForecastDay { ...@@ -84,13 +88,14 @@ public class ForecastDay {
/** /**
* Get day * Get day
*
* @return day * @return day
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public DayCondition getDay() { public DayCondition getDay() {
return day; return day;
} }
...@@ -105,13 +110,14 @@ public class ForecastDay { ...@@ -105,13 +110,14 @@ public class ForecastDay {
/** /**
* Get astro * Get astro
*
* @return astro * @return astro
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public Astro getAstro() { public Astro getAstro() {
return astro; return astro;
} }
...@@ -134,12 +140,13 @@ public class ForecastDay { ...@@ -134,12 +140,13 @@ public class ForecastDay {
/** /**
* Get hour * Get hour
*
* @return hour * @return hour
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public List<HourCondition> getHour() { public List<HourCondition> getHour() {
return hour; return hour;
} }
...@@ -147,7 +154,6 @@ public class ForecastDay { ...@@ -147,7 +154,6 @@ public class ForecastDay {
this.hour = hour; this.hour = hour;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -173,7 +179,7 @@ public class ForecastDay { ...@@ -173,7 +179,7 @@ public class ForecastDay {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class ForecastDay {\n"); sb.append("class ForecastDay {\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" dateEpoch: ").append(toIndentedString(dateEpoch)).append("\n"); sb.append(" dateEpoch: ").append(toIndentedString(dateEpoch)).append("\n");
sb.append(" day: ").append(toIndentedString(day)).append("\n"); sb.append(" day: ").append(toIndentedString(day)).append("\n");
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -14,8 +17,8 @@ import javax.validation.constraints.*; ...@@ -14,8 +17,8 @@ import javax.validation.constraints.*;
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-08T14:34:21.706302463Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-08T14:34:21.706302463Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class InlineResponse200 { public class InlineResponse200 {
@JsonProperty("latitude") @JsonProperty("latitude")
private Float latitude = null; private Float latitude = null;
...@@ -56,12 +59,13 @@ public class InlineResponse200 { ...@@ -56,12 +59,13 @@ public class InlineResponse200 {
/** /**
* Get latitude * Get latitude
*
* @return latitude * @return latitude
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getLatitude() { public Float getLatitude() {
return latitude; return latitude;
} }
...@@ -76,12 +80,13 @@ public class InlineResponse200 { ...@@ -76,12 +80,13 @@ public class InlineResponse200 {
/** /**
* Get longitude * Get longitude
*
* @return longitude * @return longitude
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getLongitude() { public Float getLongitude() {
return longitude; return longitude;
} }
...@@ -96,12 +101,13 @@ public class InlineResponse200 { ...@@ -96,12 +101,13 @@ public class InlineResponse200 {
/** /**
* Get generationtimeMs * Get generationtimeMs
*
* @return generationtimeMs * @return generationtimeMs
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getGenerationtimeMs() { public Float getGenerationtimeMs() {
return generationtimeMs; return generationtimeMs;
} }
...@@ -116,12 +122,13 @@ public class InlineResponse200 { ...@@ -116,12 +122,13 @@ public class InlineResponse200 {
/** /**
* Get utcOffsetSeconds * Get utcOffsetSeconds
*
* @return utcOffsetSeconds * @return utcOffsetSeconds
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getUtcOffsetSeconds() { public Integer getUtcOffsetSeconds() {
return utcOffsetSeconds; return utcOffsetSeconds;
} }
...@@ -136,12 +143,13 @@ public class InlineResponse200 { ...@@ -136,12 +143,13 @@ public class InlineResponse200 {
/** /**
* Get timezone * Get timezone
*
* @return timezone * @return timezone
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getTimezone() { public String getTimezone() {
return timezone; return timezone;
} }
...@@ -156,12 +164,13 @@ public class InlineResponse200 { ...@@ -156,12 +164,13 @@ public class InlineResponse200 {
/** /**
* Get timezoneAbbreviation * Get timezoneAbbreviation
*
* @return timezoneAbbreviation * @return timezoneAbbreviation
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getTimezoneAbbreviation() { public String getTimezoneAbbreviation() {
return timezoneAbbreviation; return timezoneAbbreviation;
} }
...@@ -176,12 +185,13 @@ public class InlineResponse200 { ...@@ -176,12 +185,13 @@ public class InlineResponse200 {
/** /**
* Get elevation * Get elevation
*
* @return elevation * @return elevation
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getElevation() { public Integer getElevation() {
return elevation; return elevation;
} }
...@@ -196,12 +206,13 @@ public class InlineResponse200 { ...@@ -196,12 +206,13 @@ public class InlineResponse200 {
/** /**
* Get hourlyUnits * Get hourlyUnits
*
* @return hourlyUnits * @return hourlyUnits
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getHourlyUnits() { public Object getHourlyUnits() {
return hourlyUnits; return hourlyUnits;
} }
...@@ -216,12 +227,13 @@ public class InlineResponse200 { ...@@ -216,12 +227,13 @@ public class InlineResponse200 {
/** /**
* Get hourly * Get hourly
*
* @return hourly * @return hourly
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getHourly() { public Object getHourly() {
return hourly; return hourly;
} }
...@@ -236,12 +248,13 @@ public class InlineResponse200 { ...@@ -236,12 +248,13 @@ public class InlineResponse200 {
/** /**
* Get dailyUnits * Get dailyUnits
*
* @return dailyUnits * @return dailyUnits
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getDailyUnits() { public Object getDailyUnits() {
return dailyUnits; return dailyUnits;
} }
...@@ -256,12 +269,13 @@ public class InlineResponse200 { ...@@ -256,12 +269,13 @@ public class InlineResponse200 {
/** /**
* Get daily * Get daily
*
* @return daily * @return daily
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getDaily() { public Object getDaily() {
return daily; return daily;
} }
...@@ -269,7 +283,6 @@ public class InlineResponse200 { ...@@ -269,7 +283,6 @@ public class InlineResponse200 {
this.daily = daily; this.daily = daily;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -294,14 +307,15 @@ public class InlineResponse200 { ...@@ -294,14 +307,15 @@ public class InlineResponse200 {
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(latitude, longitude, generationtimeMs, utcOffsetSeconds, timezone, timezoneAbbreviation, elevation, hourlyUnits, hourly, dailyUnits, daily); return Objects.hash(latitude, longitude, generationtimeMs, utcOffsetSeconds, timezone, timezoneAbbreviation,
elevation, hourlyUnits, hourly, dailyUnits, daily);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse200 {\n"); sb.append("class InlineResponse200 {\n");
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
sb.append(" generationtimeMs: ").append(toIndentedString(generationtimeMs)).append("\n"); sb.append(" generationtimeMs: ").append(toIndentedString(generationtimeMs)).append("\n");
......
...@@ -18,15 +18,14 @@ import javax.validation.constraints.*; ...@@ -18,15 +18,14 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]")
@JsonInclude(Include.NON_NULL) @JsonInclude(Include.NON_NULL)
public class Model200 { public class Model200 {
@JsonProperty("location") @JsonProperty("location")
private Location location = null; private Location location = new Location();
@JsonProperty("current") @JsonProperty("current")
private Current current = null; private Current current = new Current();
public Model200 location(Location location) { public Model200 location(Location location) {
this.location = location; this.location = location;
......
...@@ -23,16 +23,16 @@ import javax.validation.constraints.*; ...@@ -23,16 +23,16 @@ import javax.validation.constraints.*;
public class Modelforecast { public class Modelforecast {
@JsonProperty("location") @JsonProperty("location")
private Location location = null; private Location location = new Location();
@JsonProperty("current") @JsonProperty("current")
private Current current = null; private Current current = new Current();
@JsonProperty("forecast") @JsonProperty("forecast")
private WeatherResponseForecast forecast = null; private WeatherResponseForecast forecast = new WeatherResponseForecast();
@JsonProperty("alerts") @JsonProperty("alerts")
private WeatherResponseAlerts alerts = null; private WeatherResponseAlerts alerts = new WeatherResponseAlerts();
public Modelforecast location(Location location) { public Modelforecast location(Location location) {
this.location = location; this.location = location;
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.WeatherResponseForecast; import io.swagger.model.WeatherResponseForecast;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -15,8 +18,8 @@ import javax.validation.constraints.*; ...@@ -15,8 +18,8 @@ import javax.validation.constraints.*;
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponse { public class WeatherResponse {
@JsonProperty("forecast") @JsonProperty("forecast")
private WeatherResponseForecast forecast = null; private WeatherResponseForecast forecast = null;
...@@ -27,13 +30,14 @@ public class WeatherResponse { ...@@ -27,13 +30,14 @@ public class WeatherResponse {
/** /**
* Get forecast * Get forecast
*
* @return forecast * @return forecast
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public WeatherResponseForecast getForecast() { public WeatherResponseForecast getForecast() {
return forecast; return forecast;
} }
...@@ -41,7 +45,6 @@ public class WeatherResponse { ...@@ -41,7 +45,6 @@ public class WeatherResponse {
this.forecast = forecast; this.forecast = forecast;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -63,7 +66,7 @@ public class WeatherResponse { ...@@ -63,7 +66,7 @@ public class WeatherResponse {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponse {\n"); sb.append("class WeatherResponse {\n");
sb.append(" forecast: ").append(toIndentedString(forecast)).append("\n"); sb.append(" forecast: ").append(toIndentedString(forecast)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.Alerts; import io.swagger.model.Alerts;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -17,8 +20,8 @@ import javax.validation.constraints.*; ...@@ -17,8 +20,8 @@ import javax.validation.constraints.*;
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T13:05:28.829911948Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T13:05:28.829911948Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponseAlerts { public class WeatherResponseAlerts {
@JsonProperty("alert") @JsonProperty("alert")
@Valid @Valid
private List<Alerts> alert = null; private List<Alerts> alert = null;
...@@ -38,12 +41,13 @@ public class WeatherResponseAlerts { ...@@ -38,12 +41,13 @@ public class WeatherResponseAlerts {
/** /**
* Get alert * Get alert
*
* @return alert * @return alert
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public List<Alerts> getAlert() { public List<Alerts> getAlert() {
return alert; return alert;
} }
...@@ -51,7 +55,6 @@ public class WeatherResponseAlerts { ...@@ -51,7 +55,6 @@ public class WeatherResponseAlerts {
this.alert = alert; this.alert = alert;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -73,7 +76,7 @@ public class WeatherResponseAlerts { ...@@ -73,7 +76,7 @@ public class WeatherResponseAlerts {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponseAlerts {\n"); sb.append("class WeatherResponseAlerts {\n");
sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); sb.append(" alert: ").append(toIndentedString(alert)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.ForecastDay; import io.swagger.model.ForecastDay;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -16,12 +19,11 @@ import javax.validation.constraints.*; ...@@ -16,12 +19,11 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponseForecast {
public class WeatherResponseForecast {
@JsonProperty("forecastday") @JsonProperty("forecastday")
@Valid @Valid
private List<ForecastDay> forecastday = null; private List<ForecastDay> forecastday = new ArrayList<>();
public WeatherResponseForecast forecastday(List<ForecastDay> forecastday) { public WeatherResponseForecast forecastday(List<ForecastDay> forecastday) {
this.forecastday = forecastday; this.forecastday = forecastday;
...@@ -38,12 +40,13 @@ public class WeatherResponseForecast { ...@@ -38,12 +40,13 @@ public class WeatherResponseForecast {
/** /**
* Get forecastday * Get forecastday
*
* @return forecastday * @return forecastday
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public List<ForecastDay> getForecastday() { public List<ForecastDay> getForecastday() {
return forecastday; return forecastday;
} }
...@@ -51,7 +54,6 @@ public class WeatherResponseForecast { ...@@ -51,7 +54,6 @@ public class WeatherResponseForecast {
this.forecastday = forecastday; this.forecastday = forecastday;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -73,7 +75,7 @@ public class WeatherResponseForecast { ...@@ -73,7 +75,7 @@ public class WeatherResponseForecast {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponseForecast {\n"); sb.append("class WeatherResponseForecast {\n");
sb.append(" forecastday: ").append(toIndentedString(forecastday)).append("\n"); sb.append(" forecastday: ").append(toIndentedString(forecastday)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment