Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
{{/consumes.0}}

{{/bodyParam}}
{{#hasProduces}}
localVarHeaderParameter['Accept'] = {{#produces}}'{{{mediaType}}}'{{^-last}}; {{/-last}}{{/produces}};
{{/hasProduces}}
{{#headerParams}}
{{#isArray}}
if ({{paramName}}) {
Expand Down
14 changes: 14 additions & 0 deletions samples/client/petstore/java/jersey3/docs/AllOfRefToDouble.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# AllOfRefToDouble

Object with allOf ref to double

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**height** | **Double** | Height as double | [optional] |



Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there shouldn't be changes to the java samples.

i'll clean that up in another pr

14 changes: 14 additions & 0 deletions samples/client/petstore/java/jersey3/docs/AllOfRefToFloat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# AllOfRefToFloat

Object with allOf ref to float

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**weight** | **Float** | Weight as float | [optional] |



14 changes: 14 additions & 0 deletions samples/client/petstore/java/jersey3/docs/AllOfRefToLong.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# AllOfRefToLong

Object with allOf ref to long

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **Long** | Id as long | [optional] |



Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package org.openapitools.client.model;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import java.util.Locale;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.openapitools.client.JSON;


/**
* Object with allOf ref to double
*/
@JsonPropertyOrder({
AllOfRefToDouble.JSON_PROPERTY_HEIGHT
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public class AllOfRefToDouble {
public static final String JSON_PROPERTY_HEIGHT = "height";
@jakarta.annotation.Nullable
private Double height = 32.1d;

public AllOfRefToDouble() {
}

public AllOfRefToDouble height(@jakarta.annotation.Nullable Double height) {
this.height = height;
return this;
}

/**
* Height as double
* @return height
*/
@jakarta.annotation.Nullable

@JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Double getHeight() {
return height;
}


@JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHeight(@jakarta.annotation.Nullable Double height) {
this.height = height;
}


/**
* Return true if this AllOfRefToDouble object is equal to o.
*/
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AllOfRefToDouble {\n");
sb.append(" height: ").append(toIndentedString(height)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package org.openapitools.client.model;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import java.util.Locale;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.openapitools.client.JSON;


/**
* Object with allOf ref to float
*/
@JsonPropertyOrder({
AllOfRefToFloat.JSON_PROPERTY_WEIGHT
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public class AllOfRefToFloat {
public static final String JSON_PROPERTY_WEIGHT = "weight";
@jakarta.annotation.Nullable
private Float weight = 7.89f;

public AllOfRefToFloat() {
}

public AllOfRefToFloat weight(@jakarta.annotation.Nullable Float weight) {
this.weight = weight;
return this;
}

/**
* Weight as float
* @return weight
*/
@jakarta.annotation.Nullable

@JsonProperty(value = JSON_PROPERTY_WEIGHT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Float getWeight() {
return weight;
}


@JsonProperty(value = JSON_PROPERTY_WEIGHT, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWeight(@jakarta.annotation.Nullable Float weight) {
this.weight = weight;
}


/**
* Return true if this AllOfRefToFloat object is equal to o.
*/
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AllOfRefToFloat {\n");
sb.append(" weight: ").append(toIndentedString(weight)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package org.openapitools.client.model;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import java.util.Locale;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.openapitools.client.JSON;


/**
* Object with allOf ref to long
*/
@JsonPropertyOrder({
AllOfRefToLong.JSON_PROPERTY_ID
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public class AllOfRefToLong {
public static final String JSON_PROPERTY_ID = "id";
@jakarta.annotation.Nullable
private Long id = 10l;

public AllOfRefToLong() {
}

public AllOfRefToLong id(@jakarta.annotation.Nullable Long id) {
this.id = id;
return this;
}

/**
* Id as long
* @return id
*/
@jakarta.annotation.Nullable

@JsonProperty(value = JSON_PROPERTY_ID, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Long getId() {
return id;
}


@JsonProperty(value = JSON_PROPERTY_ID, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(@jakarta.annotation.Nullable Long id) {
this.id = id;
}


/**
* Return true if this AllOfRefToLong object is equal to o.
*/
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o, false, null, true);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AllOfRefToLong {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}

Loading