bugfix create new: eta is not required any more

This commit is contained in:
Daniel Schick 2023-10-13 10:56:47 +02:00 committed by puls200
parent 2d8a895e9f
commit 6079d1dc51
2 changed files with 206 additions and 212 deletions

View File

@ -1,8 +1,8 @@
//----------------------
// <auto-generated>
// Generated REST API Client Code Generator v1.8.4.0 on 09.10.2023 17:46:55
// Using the tool OpenAPI Generator v7.0.0
// Generated REST API Client Code Generator v1.8.7.0 on 13.10.2023 10:51:41
// Using the tool OpenAPI Generator v7.0.1
// </auto-generated>
//----------------------
@ -6623,7 +6623,7 @@ namespace BreCalClient.misc.Model
/// <param name="id">The unique identifier of a ship call (required).</param>
/// <param name="shipId">shipId (required).</param>
/// <param name="type">type (required).</param>
/// <param name="eta">eta (required).</param>
/// <param name="eta">eta.</param>
/// <param name="voyage">voyage.</param>
/// <param name="etd">etd.</param>
/// <param name="arrivalBerthId">arrivalBerthId.</param>
@ -6653,11 +6653,6 @@ namespace BreCalClient.misc.Model
this.Id = id;
this.ShipId = shipId;
this.Type = type;
// to ensure "eta" is required (not null)
if (eta == null)
{
throw new ArgumentNullException("eta is a required property for Shipcall and cannot be null");
}
this.Eta = eta;
this.Voyage = voyage;
this.Etd = etd;
@ -6703,7 +6698,7 @@ namespace BreCalClient.misc.Model
/// <summary>
/// Gets or Sets Eta
/// </summary>
[DataMember(Name = "eta", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "eta", EmitDefaultValue = true)]
public DateTime? Eta { get; set; }
/// <summary>
/// Gets or Sets Voyage

View File

@ -349,7 +349,6 @@ components:
- id
- ship_id
- type
- eta
properties:
id:
$ref: "#/components/schemas/shipcallId"