-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
feat: make custom accept header is created in appInner.mustache #22299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
samples/client/petstore/java/jersey3/docs/AllOfRefToDouble.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | | ||
|
|
||
|
|
||
|
|
||
14 changes: 14 additions & 0 deletions
14
samples/client/petstore/java/jersey3/docs/AllOfRefToFloat.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
14
samples/client/petstore/java/jersey3/docs/AllOfRefToLong.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | | ||
|
|
||
|
|
||
|
|
109 changes: 109 additions & 0 deletions
109
...t/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 "); | ||
| } | ||
|
|
||
| } | ||
|
|
109 changes: 109 additions & 0 deletions
109
...nt/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 "); | ||
| } | ||
|
|
||
| } | ||
|
|
109 changes: 109 additions & 0 deletions
109
...ent/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AllOfRefToLong.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 "); | ||
| } | ||
|
|
||
| } | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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