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

de

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