mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 13:52:46 +00:00
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
This commit is contained in:
@@ -1 +1 @@
|
||||
4.0.1-SNAPSHOT
|
||||
4.1.0-SNAPSHOT
|
||||
@@ -16,8 +16,8 @@ using Swashbuckle.AspNetCore.SwaggerGen;
|
||||
using Newtonsoft.Json;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Org.OpenAPITools.Attributes;
|
||||
using Org.OpenAPITools.Models;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Org.OpenAPITools.Models;
|
||||
|
||||
namespace Org.OpenAPITools.Controllers
|
||||
{
|
||||
@@ -38,10 +38,10 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("AddPet")]
|
||||
public virtual IActionResult AddPet([FromBody]Pet body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(405);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -55,12 +55,12 @@ namespace Org.OpenAPITools.Controllers
|
||||
[Route("/v2/pet/{petId}")]
|
||||
[ValidateModelState]
|
||||
[SwaggerOperation("DeletePet")]
|
||||
public virtual IActionResult DeletePet([FromRoute][Required]long? petId, [FromHeader]string apiKey)
|
||||
public virtual IActionResult DeletePet([FromRoute][Required]long petId, [FromHeader]string apiKey)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -78,12 +78,11 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<Pet>), description: "successful operation")]
|
||||
public virtual IActionResult FindPetsByStatus([FromQuery][Required()]List<string> status)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(List<Pet>));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
@@ -109,12 +108,11 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<Pet>), description: "successful operation")]
|
||||
public virtual IActionResult FindPetsByTags([FromQuery][Required()]List<string> tags)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(List<Pet>));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
@@ -140,17 +138,15 @@ namespace Org.OpenAPITools.Controllers
|
||||
[ValidateModelState]
|
||||
[SwaggerOperation("GetPetById")]
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(Pet), description: "successful operation")]
|
||||
public virtual IActionResult GetPetById([FromRoute][Required]long? petId)
|
||||
public virtual IActionResult GetPetById([FromRoute][Required]long petId)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(Pet));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
@@ -175,16 +171,14 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("UpdatePet")]
|
||||
public virtual IActionResult UpdatePet([FromBody]Pet body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(405);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -199,12 +193,12 @@ namespace Org.OpenAPITools.Controllers
|
||||
[Route("/v2/pet/{petId}")]
|
||||
[ValidateModelState]
|
||||
[SwaggerOperation("UpdatePetWithForm")]
|
||||
public virtual IActionResult UpdatePetWithForm([FromRoute][Required]long? petId, [FromForm]string name, [FromForm]string status)
|
||||
public virtual IActionResult UpdatePetWithForm([FromRoute][Required]long petId, [FromForm]string name, [FromForm]string status)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(405);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -220,11 +214,11 @@ namespace Org.OpenAPITools.Controllers
|
||||
[ValidateModelState]
|
||||
[SwaggerOperation("UploadFile")]
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(ApiResponse), description: "successful operation")]
|
||||
public virtual IActionResult UploadFile([FromRoute][Required]long? petId, [FromForm]string additionalMetadata, [FromForm]System.IO.Stream file)
|
||||
public virtual IActionResult UploadFile([FromRoute][Required]long petId, [FromForm]string additionalMetadata, [FromForm]System.IO.Stream file)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(ApiResponse));
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}";
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ using Swashbuckle.AspNetCore.SwaggerGen;
|
||||
using Newtonsoft.Json;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Org.OpenAPITools.Attributes;
|
||||
using Org.OpenAPITools.Models;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Org.OpenAPITools.Models;
|
||||
|
||||
namespace Org.OpenAPITools.Controllers
|
||||
{
|
||||
@@ -40,13 +40,12 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("DeleteOrder")]
|
||||
public virtual IActionResult DeleteOrder([FromRoute][Required]string orderId)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -60,17 +59,17 @@ namespace Org.OpenAPITools.Controllers
|
||||
[Authorize(Policy = "api_key")]
|
||||
[ValidateModelState]
|
||||
[SwaggerOperation("GetInventory")]
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(Dictionary<string, int?>), description: "successful operation")]
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(Dictionary<string, int>), description: "successful operation")]
|
||||
public virtual IActionResult GetInventory()
|
||||
{
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(Dictionary<string, int?>));
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(Dictionary<string, int>));
|
||||
string exampleJson = null;
|
||||
|
||||
var example = exampleJson != null
|
||||
? JsonConvert.DeserializeObject<Dictionary<string, int?>>(exampleJson)
|
||||
: default(Dictionary<string, int?>);
|
||||
? JsonConvert.DeserializeObject<Dictionary<string, int>>(exampleJson)
|
||||
: default(Dictionary<string, int>);
|
||||
//TODO: Change the data returned
|
||||
return new ObjectResult(example);
|
||||
}
|
||||
@@ -88,17 +87,15 @@ namespace Org.OpenAPITools.Controllers
|
||||
[ValidateModelState]
|
||||
[SwaggerOperation("GetOrderById")]
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(Order), description: "successful operation")]
|
||||
public virtual IActionResult GetOrderById([FromRoute][Required][Range(1, 5)]long? orderId)
|
||||
public virtual IActionResult GetOrderById([FromRoute][Required][Range(1, 5)]long orderId)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(Order));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
@@ -123,12 +120,11 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(Order), description: "successful operation")]
|
||||
public virtual IActionResult PlaceOrder([FromBody]Order body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(Order));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
@@ -16,8 +16,8 @@ using Swashbuckle.AspNetCore.SwaggerGen;
|
||||
using Newtonsoft.Json;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Org.OpenAPITools.Attributes;
|
||||
using Org.OpenAPITools.Models;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Org.OpenAPITools.Models;
|
||||
|
||||
namespace Org.OpenAPITools.Controllers
|
||||
{
|
||||
@@ -39,10 +39,10 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("CreateUser")]
|
||||
public virtual IActionResult CreateUser([FromBody]User body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 0 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(0);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -57,10 +57,10 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("CreateUsersWithArrayInput")]
|
||||
public virtual IActionResult CreateUsersWithArrayInput([FromBody]List<User> body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 0 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(0);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -75,10 +75,10 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("CreateUsersWithListInput")]
|
||||
public virtual IActionResult CreateUsersWithListInput([FromBody]List<User> body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 0 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(0);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -95,13 +95,12 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("DeleteUser")]
|
||||
public virtual IActionResult DeleteUser([FromRoute][Required]string username)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -119,15 +118,13 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(User), description: "successful operation")]
|
||||
public virtual IActionResult GetUserByName([FromRoute][Required]string username)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(User));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}";
|
||||
exampleJson = "<User>\n <id>123456789</id>\n <username>aeiou</username>\n <firstName>aeiou</firstName>\n <lastName>aeiou</lastName>\n <email>aeiou</email>\n <password>aeiou</password>\n <phone>aeiou</phone>\n <userStatus>123</userStatus>\n</User>";
|
||||
@@ -153,12 +150,11 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerResponse(statusCode: 200, type: typeof(string), description: "successful operation")]
|
||||
public virtual IActionResult LoginUser([FromQuery][Required()]string username, [FromQuery][Required()]string password)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(string));
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
string exampleJson = null;
|
||||
|
||||
var example = exampleJson != null
|
||||
@@ -178,10 +174,10 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("LogoutUser")]
|
||||
public virtual IActionResult LogoutUser()
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 0 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(0);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -199,13 +195,12 @@ namespace Org.OpenAPITools.Controllers
|
||||
[SwaggerOperation("UpdateUser")]
|
||||
public virtual IActionResult UpdateUser([FromRoute][Required]string username, [FromBody]User body)
|
||||
{
|
||||
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Org.OpenAPITools.Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Custom string to enum converter
|
||||
/// </summary>
|
||||
public class CustomEnumConverter<T> : TypeConverter
|
||||
{
|
||||
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
|
||||
{
|
||||
if (sourceType == typeof(string))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return base.CanConvertFrom(context, sourceType);
|
||||
}
|
||||
|
||||
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
|
||||
{
|
||||
var s = value as string;
|
||||
if (string.IsNullOrEmpty(s))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return JsonConvert.DeserializeObject<T>(@"""" + value.ToString() + @"""");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,9 +12,11 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Org.OpenAPITools.Converters;
|
||||
|
||||
namespace Org.OpenAPITools.Models
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Code
|
||||
/// </summary>
|
||||
[DataMember(Name="code", EmitDefaultValue=false)]
|
||||
public int? Code { get; set; }
|
||||
public int Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
@@ -91,7 +93,7 @@ namespace Org.OpenAPITools.Models
|
||||
return
|
||||
(
|
||||
Code == other.Code ||
|
||||
Code != null &&
|
||||
|
||||
Code.Equals(other.Code)
|
||||
) &&
|
||||
(
|
||||
@@ -116,7 +118,7 @@ namespace Org.OpenAPITools.Models
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (Code != null)
|
||||
|
||||
hashCode = hashCode * 59 + Code.GetHashCode();
|
||||
if (Type != null)
|
||||
hashCode = hashCode * 59 + Type.GetHashCode();
|
||||
|
||||
@@ -12,9 +12,11 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Org.OpenAPITools.Converters;
|
||||
|
||||
namespace Org.OpenAPITools.Models
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
@@ -84,7 +86,7 @@ namespace Org.OpenAPITools.Models
|
||||
return
|
||||
(
|
||||
Id == other.Id ||
|
||||
Id != null &&
|
||||
|
||||
Id.Equals(other.Id)
|
||||
) &&
|
||||
(
|
||||
@@ -104,7 +106,7 @@ namespace Org.OpenAPITools.Models
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (Id != null)
|
||||
|
||||
hashCode = hashCode * 59 + Id.GetHashCode();
|
||||
if (Name != null)
|
||||
hashCode = hashCode * 59 + Name.GetHashCode();
|
||||
|
||||
@@ -12,9 +12,11 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Org.OpenAPITools.Converters;
|
||||
|
||||
namespace Org.OpenAPITools.Models
|
||||
{
|
||||
@@ -28,30 +30,31 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PetId
|
||||
/// </summary>
|
||||
[DataMember(Name="petId", EmitDefaultValue=false)]
|
||||
public long? PetId { get; set; }
|
||||
public long PetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Quantity
|
||||
/// </summary>
|
||||
[DataMember(Name="quantity", EmitDefaultValue=false)]
|
||||
public int? Quantity { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShipDate
|
||||
/// </summary>
|
||||
[DataMember(Name="shipDate", EmitDefaultValue=false)]
|
||||
public DateTime? ShipDate { get; set; }
|
||||
public DateTime ShipDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Order Status
|
||||
/// </summary>
|
||||
/// <value>Order Status</value>
|
||||
[TypeConverter(typeof(CustomEnumConverter<StatusEnum>))]
|
||||
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public enum StatusEnum
|
||||
{
|
||||
@@ -86,7 +89,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Complete
|
||||
/// </summary>
|
||||
[DataMember(Name="complete", EmitDefaultValue=false)]
|
||||
public bool? Complete { get; set; }
|
||||
public bool Complete { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
@@ -140,17 +143,17 @@ namespace Org.OpenAPITools.Models
|
||||
return
|
||||
(
|
||||
Id == other.Id ||
|
||||
Id != null &&
|
||||
|
||||
Id.Equals(other.Id)
|
||||
) &&
|
||||
(
|
||||
PetId == other.PetId ||
|
||||
PetId != null &&
|
||||
|
||||
PetId.Equals(other.PetId)
|
||||
) &&
|
||||
(
|
||||
Quantity == other.Quantity ||
|
||||
Quantity != null &&
|
||||
|
||||
Quantity.Equals(other.Quantity)
|
||||
) &&
|
||||
(
|
||||
@@ -165,7 +168,7 @@ namespace Org.OpenAPITools.Models
|
||||
) &&
|
||||
(
|
||||
Complete == other.Complete ||
|
||||
Complete != null &&
|
||||
|
||||
Complete.Equals(other.Complete)
|
||||
);
|
||||
}
|
||||
@@ -180,17 +183,17 @@ namespace Org.OpenAPITools.Models
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (Id != null)
|
||||
|
||||
hashCode = hashCode * 59 + Id.GetHashCode();
|
||||
if (PetId != null)
|
||||
|
||||
hashCode = hashCode * 59 + PetId.GetHashCode();
|
||||
if (Quantity != null)
|
||||
|
||||
hashCode = hashCode * 59 + Quantity.GetHashCode();
|
||||
if (ShipDate != null)
|
||||
hashCode = hashCode * 59 + ShipDate.GetHashCode();
|
||||
|
||||
hashCode = hashCode * 59 + Status.GetHashCode();
|
||||
if (Complete != null)
|
||||
|
||||
hashCode = hashCode * 59 + Complete.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
@@ -12,9 +12,11 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Org.OpenAPITools.Converters;
|
||||
|
||||
namespace Org.OpenAPITools.Models
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Category
|
||||
@@ -60,6 +62,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// pet status in the store
|
||||
/// </summary>
|
||||
/// <value>pet status in the store</value>
|
||||
[TypeConverter(typeof(CustomEnumConverter<StatusEnum>))]
|
||||
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public enum StatusEnum
|
||||
{
|
||||
@@ -142,7 +145,7 @@ namespace Org.OpenAPITools.Models
|
||||
return
|
||||
(
|
||||
Id == other.Id ||
|
||||
Id != null &&
|
||||
|
||||
Id.Equals(other.Id)
|
||||
) &&
|
||||
(
|
||||
@@ -184,7 +187,7 @@ namespace Org.OpenAPITools.Models
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (Id != null)
|
||||
|
||||
hashCode = hashCode * 59 + Id.GetHashCode();
|
||||
if (Category != null)
|
||||
hashCode = hashCode * 59 + Category.GetHashCode();
|
||||
|
||||
@@ -12,9 +12,11 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Org.OpenAPITools.Converters;
|
||||
|
||||
namespace Org.OpenAPITools.Models
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
@@ -84,7 +86,7 @@ namespace Org.OpenAPITools.Models
|
||||
return
|
||||
(
|
||||
Id == other.Id ||
|
||||
Id != null &&
|
||||
|
||||
Id.Equals(other.Id)
|
||||
) &&
|
||||
(
|
||||
@@ -104,7 +106,7 @@ namespace Org.OpenAPITools.Models
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (Id != null)
|
||||
|
||||
hashCode = hashCode * 59 + Id.GetHashCode();
|
||||
if (Name != null)
|
||||
hashCode = hashCode * 59 + Name.GetHashCode();
|
||||
|
||||
@@ -12,9 +12,11 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Org.OpenAPITools.Converters;
|
||||
|
||||
namespace Org.OpenAPITools.Models
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public long? Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Username
|
||||
@@ -71,7 +73,7 @@ namespace Org.OpenAPITools.Models
|
||||
/// </summary>
|
||||
/// <value>User Status</value>
|
||||
[DataMember(Name="userStatus", EmitDefaultValue=false)]
|
||||
public int? UserStatus { get; set; }
|
||||
public int UserStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
@@ -127,7 +129,7 @@ namespace Org.OpenAPITools.Models
|
||||
return
|
||||
(
|
||||
Id == other.Id ||
|
||||
Id != null &&
|
||||
|
||||
Id.Equals(other.Id)
|
||||
) &&
|
||||
(
|
||||
@@ -162,7 +164,7 @@ namespace Org.OpenAPITools.Models
|
||||
) &&
|
||||
(
|
||||
UserStatus == other.UserStatus ||
|
||||
UserStatus != null &&
|
||||
|
||||
UserStatus.Equals(other.UserStatus)
|
||||
);
|
||||
}
|
||||
@@ -177,7 +179,7 @@ namespace Org.OpenAPITools.Models
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (Id != null)
|
||||
|
||||
hashCode = hashCode * 59 + Id.GetHashCode();
|
||||
if (Username != null)
|
||||
hashCode = hashCode * 59 + Username.GetHashCode();
|
||||
@@ -191,7 +193,7 @@ namespace Org.OpenAPITools.Models
|
||||
hashCode = hashCode * 59 + Password.GetHashCode();
|
||||
if (Phone != null)
|
||||
hashCode = hashCode * 59 + Phone.GetHashCode();
|
||||
if (UserStatus != null)
|
||||
|
||||
hashCode = hashCode * 59 + UserStatus.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
4.0.3-SNAPSHOT
|
||||
4.1.0-SNAPSHOT
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
|
||||
@@ -30,7 +30,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
|
||||
@@ -31,37 +31,48 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesClass implements Serializable {
|
||||
@JsonProperty("map_string")
|
||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||
private Map<String, String> mapString = null;
|
||||
|
||||
@JsonProperty("map_number")
|
||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||
private Map<String, BigDecimal> mapNumber = null;
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||
private Map<String, Integer> mapInteger = null;
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||
private Map<String, Boolean> mapBoolean = null;
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||
private Map<String, List<Integer>> mapArrayInteger = null;
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
private Map<String, List<Object>> mapArrayAnytype = null;
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
private Map<String, Map<String, String>> mapMapString = null;
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = null;
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
private Object anytype1 = null;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
private Object anytype2 = null;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
private Object anytype3 = null;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
|
||||
@@ -30,7 +30,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
|
||||
@@ -34,10 +34,12 @@ import javax.validation.Valid;
|
||||
})
|
||||
|
||||
public class Animal implements Serializable {
|
||||
@JsonProperty("className")
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
private String color = "red";
|
||||
|
||||
public Animal className(String className) {
|
||||
|
||||
@@ -30,7 +30,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
|
||||
@@ -30,7 +30,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ArrayOfNumberOnly implements Serializable {
|
||||
@JsonProperty("ArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
|
||||
@@ -30,13 +30,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ArrayTest implements Serializable {
|
||||
@JsonProperty("array_of_string")
|
||||
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = null;
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
private List<List<Long>> arrayArrayOfInteger = null;
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
|
||||
@@ -27,22 +27,28 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Capitalization implements Serializable {
|
||||
@JsonProperty("smallCamel")
|
||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Cat extends Animal implements Serializable {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class CatAllOf implements Serializable {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Category implements Serializable {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name = "default-name";
|
||||
|
||||
public Category id(Long id) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||
|
||||
public class ClassModel implements Serializable {
|
||||
@JsonProperty("_class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Client implements Serializable {
|
||||
@JsonProperty("client")
|
||||
public static final String JSON_PROPERTY_CLIENT = "client";
|
||||
@JsonProperty(JSON_PROPERTY_CLIENT)
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Dog extends Animal implements Serializable {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public Dog breed(String breed) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class DogAllOf implements Serializable {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
|
||||
@@ -61,7 +61,8 @@ public class EnumArrays implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@@ -95,7 +96,8 @@ public class EnumArrays implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("array_enum")
|
||||
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||
private List<ArrayEnumEnum> arrayEnum = null;
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
|
||||
@@ -62,7 +62,8 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@@ -98,7 +99,8 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@@ -132,7 +134,8 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@@ -166,10 +169,12 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
public EnumTest enumString(EnumStringEnum enumString) {
|
||||
|
||||
@@ -29,10 +29,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class FileSchemaTestClass implements Serializable {
|
||||
@JsonProperty("file")
|
||||
public static final String JSON_PROPERTY_FILE = "file";
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
private java.io.File file = null;
|
||||
|
||||
@JsonProperty("files")
|
||||
public static final String JSON_PROPERTY_FILES = "files";
|
||||
@JsonProperty(JSON_PROPERTY_FILES)
|
||||
private List<java.io.File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
|
||||
@@ -32,43 +32,56 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class FormatTest implements Serializable {
|
||||
@JsonProperty("integer")
|
||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
||||
@JsonProperty(JSON_PROPERTY_INT32)
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
||||
@JsonProperty(JSON_PROPERTY_INT64)
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
||||
private File binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class HasOnlyReadOnly implements Serializable {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
public static final String JSON_PROPERTY_FOO = "foo";
|
||||
@JsonProperty(JSON_PROPERTY_FOO)
|
||||
private String foo;
|
||||
|
||||
public HasOnlyReadOnly bar(String bar) {
|
||||
|
||||
@@ -31,7 +31,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class MapTest implements Serializable {
|
||||
@JsonProperty("map_map_of_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
||||
|
||||
/**
|
||||
@@ -65,13 +66,16 @@ public class MapTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||
|
||||
@JsonProperty("direct_map")
|
||||
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
|
||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||
private Map<String, Boolean> directMap = null;
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
|
||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||
private Map<String, Boolean> indirectMap = null;
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
|
||||
@@ -33,13 +33,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
public static final String JSON_PROPERTY_MAP = "map";
|
||||
@JsonProperty(JSON_PROPERTY_MAP)
|
||||
private Map<String, Animal> map = null;
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
|
||||
@@ -28,10 +28,12 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing model name starting with number")
|
||||
|
||||
public class Model200Response implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
|
||||
@@ -27,13 +27,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ModelApiResponse implements Serializable {
|
||||
@JsonProperty("code")
|
||||
public static final String JSON_PROPERTY_CODE = "code";
|
||||
@JsonProperty(JSON_PROPERTY_CODE)
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
public static final String JSON_PROPERTY_TYPE = "type";
|
||||
@JsonProperty(JSON_PROPERTY_TYPE)
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
public static final String JSON_PROPERTY_MESSAGE = "message";
|
||||
@JsonProperty(JSON_PROPERTY_MESSAGE)
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing reserved words")
|
||||
|
||||
public class ModelReturn implements Serializable {
|
||||
@JsonProperty("return")
|
||||
public static final String JSON_PROPERTY_RETURN = "return";
|
||||
@JsonProperty(JSON_PROPERTY_RETURN)
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
|
||||
@@ -28,16 +28,20 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing model name same as property name")
|
||||
|
||||
public class Name implements Serializable {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
|
||||
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
public static final String JSON_PROPERTY_PROPERTY = "property";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY)
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
public static final String JSON_PROPERTY_123NUMBER = "123Number";
|
||||
@JsonProperty(JSON_PROPERTY_123NUMBER)
|
||||
private Integer _123number;
|
||||
|
||||
public Name name(Integer name) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class NumberOnly implements Serializable {
|
||||
@JsonProperty("JustNumber")
|
||||
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
|
||||
@@ -29,16 +29,20 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Order implements Serializable {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
public static final String JSON_PROPERTY_PET_ID = "petId";
|
||||
@JsonProperty(JSON_PROPERTY_PET_ID)
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
public static final String JSON_PROPERTY_QUANTITY = "quantity";
|
||||
@JsonProperty(JSON_PROPERTY_QUANTITY)
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
|
||||
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
/**
|
||||
@@ -74,10 +78,12 @@ public class Order implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
public static final String JSON_PROPERTY_COMPLETE = "complete";
|
||||
@JsonProperty(JSON_PROPERTY_COMPLETE)
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order id(Long id) {
|
||||
|
||||
@@ -28,13 +28,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class OuterComposite implements Serializable {
|
||||
@JsonProperty("my_number")
|
||||
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
|
||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
public static final String JSON_PROPERTY_MY_STRING = "my_string";
|
||||
@JsonProperty(JSON_PROPERTY_MY_STRING)
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
|
||||
@@ -32,19 +32,24 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Pet implements Serializable {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
private Category category = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
private List<String> photoUrls = new ArrayList<>();
|
||||
|
||||
@JsonProperty("tags")
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
private List<Tag> tags = null;
|
||||
|
||||
/**
|
||||
@@ -80,7 +85,8 @@ public class Pet implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet id(Long id) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ReadOnlyFirst implements Serializable {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
public static final String JSON_PROPERTY_BAZ = "baz";
|
||||
@JsonProperty(JSON_PROPERTY_BAZ)
|
||||
private String baz;
|
||||
|
||||
public ReadOnlyFirst bar(String bar) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class SpecialModelName implements Serializable {
|
||||
@JsonProperty("$special[property.name]")
|
||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Tag implements Serializable {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
|
||||
@@ -30,19 +30,24 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class TypeHolderDefault implements Serializable {
|
||||
@JsonProperty("string_item")
|
||||
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
|
||||
private String stringItem = "what";
|
||||
|
||||
@JsonProperty("number_item")
|
||||
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
|
||||
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
|
||||
private Boolean boolItem = true;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
public TypeHolderDefault stringItem(String stringItem) {
|
||||
|
||||
@@ -30,19 +30,24 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class TypeHolderExample implements Serializable {
|
||||
@JsonProperty("string_item")
|
||||
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
|
||||
private String stringItem;
|
||||
|
||||
@JsonProperty("number_item")
|
||||
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
|
||||
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
|
||||
private Boolean boolItem;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
public TypeHolderExample stringItem(String stringItem) {
|
||||
|
||||
@@ -27,28 +27,36 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class User implements Serializable {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
|
||||
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
|
||||
@JsonProperty(JSON_PROPERTY_LAST_NAME)
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
public static final String JSON_PROPERTY_EMAIL = "email";
|
||||
@JsonProperty(JSON_PROPERTY_EMAIL)
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
public static final String JSON_PROPERTY_PHONE = "phone";
|
||||
@JsonProperty(JSON_PROPERTY_PHONE)
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
|
||||
@JsonProperty(JSON_PROPERTY_USER_STATUS)
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
|
||||
@@ -30,91 +30,120 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class XmlItem implements Serializable {
|
||||
@JsonProperty("attribute_string")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
|
||||
private String attributeString;
|
||||
|
||||
@JsonProperty("attribute_number")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
||||
private BigDecimal attributeNumber;
|
||||
|
||||
@JsonProperty("attribute_integer")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
|
||||
private Integer attributeInteger;
|
||||
|
||||
@JsonProperty("attribute_boolean")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
|
||||
private Boolean attributeBoolean;
|
||||
|
||||
@JsonProperty("wrapped_array")
|
||||
public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
||||
private List<Integer> wrappedArray = null;
|
||||
|
||||
@JsonProperty("name_string")
|
||||
public static final String JSON_PROPERTY_NAME_STRING = "name_string";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_STRING)
|
||||
private String nameString;
|
||||
|
||||
@JsonProperty("name_number")
|
||||
public static final String JSON_PROPERTY_NAME_NUMBER = "name_number";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
||||
private BigDecimal nameNumber;
|
||||
|
||||
@JsonProperty("name_integer")
|
||||
public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
|
||||
private Integer nameInteger;
|
||||
|
||||
@JsonProperty("name_boolean")
|
||||
public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
|
||||
private Boolean nameBoolean;
|
||||
|
||||
@JsonProperty("name_array")
|
||||
public static final String JSON_PROPERTY_NAME_ARRAY = "name_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
||||
private List<Integer> nameArray = null;
|
||||
|
||||
@JsonProperty("name_wrapped_array")
|
||||
public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
||||
private List<Integer> nameWrappedArray = null;
|
||||
|
||||
@JsonProperty("prefix_string")
|
||||
public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
|
||||
private String prefixString;
|
||||
|
||||
@JsonProperty("prefix_number")
|
||||
public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
||||
private BigDecimal prefixNumber;
|
||||
|
||||
@JsonProperty("prefix_integer")
|
||||
public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
|
||||
private Integer prefixInteger;
|
||||
|
||||
@JsonProperty("prefix_boolean")
|
||||
public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
|
||||
private Boolean prefixBoolean;
|
||||
|
||||
@JsonProperty("prefix_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
||||
private List<Integer> prefixArray = null;
|
||||
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
||||
private List<Integer> prefixWrappedArray = null;
|
||||
|
||||
@JsonProperty("namespace_string")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
|
||||
private String namespaceString;
|
||||
|
||||
@JsonProperty("namespace_number")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
||||
private BigDecimal namespaceNumber;
|
||||
|
||||
@JsonProperty("namespace_integer")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
|
||||
private Integer namespaceInteger;
|
||||
|
||||
@JsonProperty("namespace_boolean")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
|
||||
private Boolean namespaceBoolean;
|
||||
|
||||
@JsonProperty("namespace_array")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
||||
private List<Integer> namespaceArray = null;
|
||||
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
||||
private List<Integer> namespaceWrappedArray = null;
|
||||
|
||||
@JsonProperty("prefix_ns_string")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
|
||||
private String prefixNsString;
|
||||
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
||||
private BigDecimal prefixNsNumber;
|
||||
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
|
||||
private Integer prefixNsInteger;
|
||||
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
|
||||
private Boolean prefixNsBoolean;
|
||||
|
||||
@JsonProperty("prefix_ns_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
||||
private List<Integer> prefixNsArray = null;
|
||||
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
||||
private List<Integer> prefixNsWrappedArray = null;
|
||||
|
||||
public XmlItem attributeString(String attributeString) {
|
||||
|
||||
@@ -29,10 +29,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
@JsonProperty("map_property")
|
||||
public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
||||
private Map<String, String> mapProperty = null;
|
||||
|
||||
@JsonProperty("map_of_map_property")
|
||||
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
||||
private Map<String, Map<String, String>> mapOfMapProperty = null;
|
||||
|
||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||
|
||||
@@ -33,10 +33,12 @@ import javax.validation.Valid;
|
||||
})
|
||||
|
||||
public class Animal {
|
||||
@JsonProperty("className")
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
private String color = "red";
|
||||
|
||||
public Animal className(String className) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
|
||||
@@ -29,13 +29,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ArrayTest {
|
||||
@JsonProperty("array_of_string")
|
||||
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = null;
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
private List<List<Long>> arrayArrayOfInteger = null;
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
|
||||
@@ -26,22 +26,28 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Capitalization {
|
||||
@JsonProperty("smallCamel")
|
||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Cat extends Animal {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
|
||||
@@ -26,7 +26,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class CatAllOf {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
|
||||
@@ -26,10 +26,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Category {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name = "default-name";
|
||||
|
||||
public Category id(Long id) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||
|
||||
public class ClassModel {
|
||||
@JsonProperty("_class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
|
||||
@@ -26,7 +26,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Client {
|
||||
@JsonProperty("client")
|
||||
public static final String JSON_PROPERTY_CLIENT = "client";
|
||||
@JsonProperty(JSON_PROPERTY_CLIENT)
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Dog extends Animal {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public Dog breed(String breed) {
|
||||
|
||||
@@ -26,7 +26,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class DogAllOf {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
|
||||
@@ -60,7 +60,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@@ -94,7 +95,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("array_enum")
|
||||
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||
private List<ArrayEnumEnum> arrayEnum = null;
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
|
||||
@@ -64,7 +64,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@@ -100,7 +101,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@@ -134,7 +136,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@@ -168,19 +171,24 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
@JsonProperty("outerEnumInteger")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
||||
private OuterEnumInteger outerEnumInteger;
|
||||
|
||||
@JsonProperty("outerEnumDefaultValue")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
||||
private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
|
||||
|
||||
@JsonProperty("outerEnumIntegerDefaultValue")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
||||
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
|
||||
|
||||
public EnumTest enumString(EnumStringEnum enumString) {
|
||||
|
||||
@@ -28,10 +28,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class FileSchemaTestClass {
|
||||
@JsonProperty("file")
|
||||
public static final String JSON_PROPERTY_FILE = "file";
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
private java.io.File file = null;
|
||||
|
||||
@JsonProperty("files")
|
||||
public static final String JSON_PROPERTY_FILES = "files";
|
||||
@JsonProperty(JSON_PROPERTY_FILES)
|
||||
private List<java.io.File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
|
||||
@@ -26,7 +26,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Foo {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar = "bar";
|
||||
|
||||
public Foo bar(String bar) {
|
||||
|
||||
@@ -30,49 +30,64 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class FormatTest {
|
||||
@JsonProperty("integer")
|
||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
||||
@JsonProperty(JSON_PROPERTY_INT32)
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
||||
@JsonProperty(JSON_PROPERTY_INT64)
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
||||
private File binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
private Date date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private Date dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
@JsonProperty("pattern_with_digits")
|
||||
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
||||
private String patternWithDigits;
|
||||
|
||||
@JsonProperty("pattern_with_digits_and_delimiter")
|
||||
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
|
||||
private String patternWithDigitsAndDelimiter;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
|
||||
@@ -26,10 +26,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class HasOnlyReadOnly {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
public static final String JSON_PROPERTY_FOO = "foo";
|
||||
@JsonProperty(JSON_PROPERTY_FOO)
|
||||
private String foo;
|
||||
|
||||
public HasOnlyReadOnly bar(String bar) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.")
|
||||
|
||||
public class HealthCheckResult {
|
||||
@JsonProperty("NullableMessage")
|
||||
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
|
||||
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
||||
private String nullableMessage;
|
||||
|
||||
public HealthCheckResult nullableMessage(String nullableMessage) {
|
||||
|
||||
@@ -26,10 +26,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class InlineObject {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private String status;
|
||||
|
||||
public InlineObject name(String name) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class InlineObject1 {
|
||||
@JsonProperty("additionalMetadata")
|
||||
public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata";
|
||||
@JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA)
|
||||
private String additionalMetadata;
|
||||
|
||||
@JsonProperty("file")
|
||||
public static final String JSON_PROPERTY_FILE = "file";
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
private File file;
|
||||
|
||||
public InlineObject1 additionalMetadata(String additionalMetadata) {
|
||||
|
||||
@@ -60,7 +60,8 @@ public class InlineObject2 {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_form_string_array")
|
||||
public static final String JSON_PROPERTY_ENUM_FORM_STRING_ARRAY = "enum_form_string_array";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING_ARRAY)
|
||||
private List<EnumFormStringArrayEnum> enumFormStringArray = null;
|
||||
|
||||
/**
|
||||
@@ -96,7 +97,8 @@ public class InlineObject2 {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_form_string")
|
||||
public static final String JSON_PROPERTY_ENUM_FORM_STRING = "enum_form_string";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_FORM_STRING)
|
||||
private EnumFormStringEnum enumFormString = EnumFormStringEnum._EFG;
|
||||
|
||||
public InlineObject2 enumFormStringArray(List<EnumFormStringArrayEnum> enumFormStringArray) {
|
||||
|
||||
@@ -29,46 +29,60 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class InlineObject3 {
|
||||
@JsonProperty("integer")
|
||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
||||
@JsonProperty(JSON_PROPERTY_INT32)
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
||||
@JsonProperty(JSON_PROPERTY_INT64)
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
private String string;
|
||||
|
||||
@JsonProperty("pattern_without_delimiter")
|
||||
public static final String JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER = "pattern_without_delimiter";
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER)
|
||||
private String patternWithoutDelimiter;
|
||||
|
||||
@JsonProperty("byte")
|
||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
||||
private File binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
private Date date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private Date dateTime;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
@JsonProperty("callback")
|
||||
public static final String JSON_PROPERTY_CALLBACK = "callback";
|
||||
@JsonProperty(JSON_PROPERTY_CALLBACK)
|
||||
private String callback;
|
||||
|
||||
public InlineObject3 integer(Integer integer) {
|
||||
|
||||
@@ -26,10 +26,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class InlineObject4 {
|
||||
@JsonProperty("param")
|
||||
public static final String JSON_PROPERTY_PARAM = "param";
|
||||
@JsonProperty(JSON_PROPERTY_PARAM)
|
||||
private String param;
|
||||
|
||||
@JsonProperty("param2")
|
||||
public static final String JSON_PROPERTY_PARAM2 = "param2";
|
||||
@JsonProperty(JSON_PROPERTY_PARAM2)
|
||||
private String param2;
|
||||
|
||||
public InlineObject4 param(String param) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class InlineObject5 {
|
||||
@JsonProperty("additionalMetadata")
|
||||
public static final String JSON_PROPERTY_ADDITIONAL_METADATA = "additionalMetadata";
|
||||
@JsonProperty(JSON_PROPERTY_ADDITIONAL_METADATA)
|
||||
private String additionalMetadata;
|
||||
|
||||
@JsonProperty("requiredFile")
|
||||
public static final String JSON_PROPERTY_REQUIRED_FILE = "requiredFile";
|
||||
@JsonProperty(JSON_PROPERTY_REQUIRED_FILE)
|
||||
private File requiredFile;
|
||||
|
||||
public InlineObject5 additionalMetadata(String additionalMetadata) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class InlineResponseDefault {
|
||||
@JsonProperty("string")
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
private Foo string = null;
|
||||
|
||||
public InlineResponseDefault string(Foo string) {
|
||||
|
||||
@@ -30,7 +30,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class MapTest {
|
||||
@JsonProperty("map_map_of_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
||||
|
||||
/**
|
||||
@@ -64,13 +65,16 @@ public class MapTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||
|
||||
@JsonProperty("direct_map")
|
||||
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
|
||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||
private Map<String, Boolean> directMap = null;
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
|
||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||
private Map<String, Boolean> indirectMap = null;
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
|
||||
@@ -32,13 +32,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private Date dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
public static final String JSON_PROPERTY_MAP = "map";
|
||||
@JsonProperty(JSON_PROPERTY_MAP)
|
||||
private Map<String, Animal> map = null;
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
|
||||
@@ -27,10 +27,12 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing model name starting with number")
|
||||
|
||||
public class Model200Response {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
|
||||
@@ -26,13 +26,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ModelApiResponse {
|
||||
@JsonProperty("code")
|
||||
public static final String JSON_PROPERTY_CODE = "code";
|
||||
@JsonProperty(JSON_PROPERTY_CODE)
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
public static final String JSON_PROPERTY_TYPE = "type";
|
||||
@JsonProperty(JSON_PROPERTY_TYPE)
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
public static final String JSON_PROPERTY_MESSAGE = "message";
|
||||
@JsonProperty(JSON_PROPERTY_MESSAGE)
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing reserved words")
|
||||
|
||||
public class ModelReturn {
|
||||
@JsonProperty("return")
|
||||
public static final String JSON_PROPERTY_RETURN = "return";
|
||||
@JsonProperty(JSON_PROPERTY_RETURN)
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
|
||||
@@ -27,16 +27,20 @@ import javax.validation.Valid;
|
||||
@ApiModel(description = "Model for testing model name same as property name")
|
||||
|
||||
public class Name {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
|
||||
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
public static final String JSON_PROPERTY_PROPERTY = "property";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY)
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
public static final String JSON_PROPERTY_123NUMBER = "123Number";
|
||||
@JsonProperty(JSON_PROPERTY_123NUMBER)
|
||||
private Integer _123number;
|
||||
|
||||
public Name name(Integer name) {
|
||||
|
||||
@@ -32,40 +32,52 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class NullableClass extends HashMap<String, Object> {
|
||||
@JsonProperty("integer_prop")
|
||||
public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
||||
private Integer integerProp;
|
||||
|
||||
@JsonProperty("number_prop")
|
||||
public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
||||
private BigDecimal numberProp;
|
||||
|
||||
@JsonProperty("boolean_prop")
|
||||
public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop";
|
||||
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
||||
private Boolean booleanProp;
|
||||
|
||||
@JsonProperty("string_prop")
|
||||
public static final String JSON_PROPERTY_STRING_PROP = "string_prop";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
||||
private String stringProp;
|
||||
|
||||
@JsonProperty("date_prop")
|
||||
public static final String JSON_PROPERTY_DATE_PROP = "date_prop";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
||||
private Date dateProp;
|
||||
|
||||
@JsonProperty("datetime_prop")
|
||||
public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop";
|
||||
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
||||
private Date datetimeProp;
|
||||
|
||||
@JsonProperty("array_nullable_prop")
|
||||
public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
||||
private List<Object> arrayNullableProp = null;
|
||||
|
||||
@JsonProperty("array_and_items_nullable_prop")
|
||||
public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
||||
private List<Object> arrayAndItemsNullableProp = null;
|
||||
|
||||
@JsonProperty("array_items_nullable")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
||||
private List<Object> arrayItemsNullable = null;
|
||||
|
||||
@JsonProperty("object_nullable_prop")
|
||||
public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
||||
private Map<String, Object> objectNullableProp = null;
|
||||
|
||||
@JsonProperty("object_and_items_nullable_prop")
|
||||
public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop";
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
||||
private Map<String, Object> objectAndItemsNullableProp = null;
|
||||
|
||||
@JsonProperty("object_items_nullable")
|
||||
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
||||
private Map<String, Object> objectItemsNullable = null;
|
||||
|
||||
public NullableClass integerProp(Integer integerProp) {
|
||||
|
||||
@@ -27,7 +27,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class NumberOnly {
|
||||
@JsonProperty("JustNumber")
|
||||
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
|
||||
@@ -28,16 +28,20 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Order {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
public static final String JSON_PROPERTY_PET_ID = "petId";
|
||||
@JsonProperty(JSON_PROPERTY_PET_ID)
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
public static final String JSON_PROPERTY_QUANTITY = "quantity";
|
||||
@JsonProperty(JSON_PROPERTY_QUANTITY)
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
|
||||
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
|
||||
private Date shipDate;
|
||||
|
||||
/**
|
||||
@@ -73,10 +77,12 @@ public class Order {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
public static final String JSON_PROPERTY_COMPLETE = "complete";
|
||||
@JsonProperty(JSON_PROPERTY_COMPLETE)
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order id(Long id) {
|
||||
|
||||
@@ -27,13 +27,16 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class OuterComposite {
|
||||
@JsonProperty("my_number")
|
||||
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
|
||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
public static final String JSON_PROPERTY_MY_STRING = "my_string";
|
||||
@JsonProperty(JSON_PROPERTY_MY_STRING)
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
|
||||
@@ -31,19 +31,24 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Pet {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
private Category category = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
private List<String> photoUrls = new ArrayList<String>();
|
||||
|
||||
@JsonProperty("tags")
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
private List<Tag> tags = null;
|
||||
|
||||
/**
|
||||
@@ -79,7 +84,8 @@ public class Pet {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet id(Long id) {
|
||||
|
||||
@@ -26,10 +26,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class ReadOnlyFirst {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
public static final String JSON_PROPERTY_BAZ = "baz";
|
||||
@JsonProperty(JSON_PROPERTY_BAZ)
|
||||
private String baz;
|
||||
|
||||
public ReadOnlyFirst bar(String bar) {
|
||||
|
||||
@@ -26,7 +26,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class SpecialModelName {
|
||||
@JsonProperty("$special[property.name]")
|
||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
|
||||
@@ -26,10 +26,12 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class Tag {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
|
||||
@@ -26,28 +26,36 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class User {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
|
||||
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
|
||||
@JsonProperty(JSON_PROPERTY_LAST_NAME)
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
public static final String JSON_PROPERTY_EMAIL = "email";
|
||||
@JsonProperty(JSON_PROPERTY_EMAIL)
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
public static final String JSON_PROPERTY_PHONE = "phone";
|
||||
@JsonProperty(JSON_PROPERTY_PHONE)
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
|
||||
@JsonProperty(JSON_PROPERTY_USER_STATUS)
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
|
||||
@@ -29,7 +29,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
|
||||
@@ -28,7 +28,8 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
|
||||
@@ -30,37 +30,48 @@ import javax.validation.Valid;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
@JsonProperty("map_string")
|
||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||
private Map<String, String> mapString = null;
|
||||
|
||||
@JsonProperty("map_number")
|
||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||
private Map<String, BigDecimal> mapNumber = null;
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||
private Map<String, Integer> mapInteger = null;
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||
private Map<String, Boolean> mapBoolean = null;
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||
private Map<String, List<Integer>> mapArrayInteger = null;
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
private Map<String, List<Object>> mapArrayAnytype = null;
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
private Map<String, Map<String, String>> mapMapString = null;
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = null;
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
private Object anytype1 = null;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
private Object anytype2 = null;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
private Object anytype3 = null;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user