-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff3b3c2
commit e3e7bad
Showing
17 changed files
with
2,259 additions
and
0 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
...s/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FooApi.java
This file contains 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,79 @@ | ||
package org.openapitools.api; | ||
|
||
import org.openapitools.model.FooGetDefaultResponse; | ||
|
||
import javax.ws.rs.*; | ||
import javax.ws.rs.core.Response; | ||
|
||
|
||
|
||
|
||
import java.io.InputStream; | ||
import java.util.Map; | ||
import java.util.List; | ||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
|
||
@org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition( | ||
info = @org.eclipse.microprofile.openapi.annotations.info.Info( | ||
title = "", version="1.0.0", description="", | ||
license = @org.eclipse.microprofile.openapi.annotations.info.License(name = "Apache-2.0", url = "https://www.apache.org/licenses/LICENSE-2.0.html") | ||
), | ||
tags = @org.eclipse.microprofile.openapi.annotations.tags.Tag(name="", description="") | ||
) | ||
@org.eclipse.microprofile.openapi.annotations.tags.Tag(name="", description="") | ||
@org.eclipse.microprofile.openapi.annotations.security.SecuritySchemes(value = { | ||
@org.eclipse.microprofile.openapi.annotations.security.SecurityScheme( | ||
securitySchemeName = "petstore_auth", | ||
type = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeType.OAUTH2, | ||
description = "", | ||
flows = @org.eclipse.microprofile.openapi.annotations.security.OAuthFlows( | ||
implicit = @org.eclipse.microprofile.openapi.annotations.security.OAuthFlow(authorizationUrl = "http://petstore.swagger.io/api/oauth/dialog", | ||
tokenUrl = "", | ||
refreshUrl = "", | ||
scopes = { | ||
@org.eclipse.microprofile.openapi.annotations.security.OAuthScope(name = "write:pets", description = "modify pets in your account"), | ||
@org.eclipse.microprofile.openapi.annotations.security.OAuthScope(name = "read:pets", description = "read your pets") | ||
})) | ||
), @org.eclipse.microprofile.openapi.annotations.security.SecurityScheme( | ||
securitySchemeName = "api_key", | ||
type = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeType.APIKEY, | ||
description = "", | ||
apiKeyName = "api_key", | ||
in = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeIn.HEADER | ||
), @org.eclipse.microprofile.openapi.annotations.security.SecurityScheme( | ||
securitySchemeName = "api_key_query", | ||
type = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeType.APIKEY, | ||
description = "", | ||
apiKeyName = "api_key_query", | ||
in = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeIn.QUERY | ||
), @org.eclipse.microprofile.openapi.annotations.security.SecurityScheme( | ||
securitySchemeName = "http_basic_test", | ||
type = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeType.HTTP, | ||
description = "", | ||
scheme = "basic" | ||
), @org.eclipse.microprofile.openapi.annotations.security.SecurityScheme( | ||
securitySchemeName = "bearer_test", | ||
type = org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeType.HTTP, | ||
description = "", | ||
scheme = "bearer", bearerFormat = "JWT" | ||
), | ||
}) | ||
@Path("/foo") | ||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT") | ||
public class FooApi { | ||
|
||
@GET | ||
@Produces({ "application/json" }) | ||
|
||
@org.eclipse.microprofile.openapi.annotations.Operation(operationId = "fooGet", summary = "", description = "") | ||
|
||
@org.eclipse.microprofile.openapi.annotations.responses.APIResponses(value = { | ||
@org.eclipse.microprofile.openapi.annotations.responses.APIResponse(responseCode = "200", description = "response", content = { | ||
@org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="application/json", schema = @org.eclipse.microprofile.openapi.annotations.media.Schema(implementation = FooGetDefaultResponse.class)) | ||
}) | ||
}) | ||
public Response fooGet() { | ||
return Response.ok().entity("magic!").build(); | ||
} | ||
} |
145 changes: 145 additions & 0 deletions
145
...ore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java
This file contains 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,145 @@ | ||
package org.openapitools.model; | ||
|
||
import org.openapitools.model.SingleRefType; | ||
import java.io.Serializable; | ||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
|
||
import java.util.Objects; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
|
||
|
||
|
||
@org.eclipse.microprofile.openapi.annotations.media.Schema(description="") | ||
@JsonTypeName("AllOfWithSingleRef") | ||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT") | ||
public class AllOfWithSingleRef implements Serializable { | ||
private String username; | ||
private SingleRefType singleRefType; | ||
|
||
protected AllOfWithSingleRef(AllOfWithSingleRefBuilder<?, ?> b) { | ||
this.username = b.username; | ||
this.singleRefType = b.singleRefType; | ||
} | ||
|
||
public AllOfWithSingleRef() { | ||
} | ||
|
||
/** | ||
**/ | ||
public AllOfWithSingleRef username(String username) { | ||
this.username = username; | ||
return this; | ||
} | ||
|
||
|
||
@org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") | ||
@JsonProperty("username") | ||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
@JsonProperty("username") | ||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
|
||
/** | ||
**/ | ||
public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { | ||
this.singleRefType = singleRefType; | ||
return this; | ||
} | ||
|
||
|
||
@org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") | ||
@JsonProperty("SingleRefType") | ||
@Valid public SingleRefType getSingleRefType() { | ||
return singleRefType; | ||
} | ||
|
||
@JsonProperty("SingleRefType") | ||
public void setSingleRefType(SingleRefType singleRefType) { | ||
this.singleRefType = singleRefType; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
AllOfWithSingleRef allOfWithSingleRef = (AllOfWithSingleRef) o; | ||
return Objects.equals(this.username, allOfWithSingleRef.username) && | ||
Objects.equals(this.singleRefType, allOfWithSingleRef.singleRefType); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(username, singleRefType); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class AllOfWithSingleRef {\n"); | ||
|
||
sb.append(" username: ").append(toIndentedString(username)).append("\n"); | ||
sb.append(" singleRefType: ").append(toIndentedString(singleRefType)).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 "); | ||
} | ||
|
||
|
||
public static AllOfWithSingleRefBuilder<?, ?> builder() { | ||
return new AllOfWithSingleRefBuilderImpl(); | ||
} | ||
|
||
private static final class AllOfWithSingleRefBuilderImpl extends AllOfWithSingleRefBuilder<AllOfWithSingleRef, AllOfWithSingleRefBuilderImpl> { | ||
|
||
@Override | ||
protected AllOfWithSingleRefBuilderImpl self() { | ||
return this; | ||
} | ||
|
||
@Override | ||
public AllOfWithSingleRef build() { | ||
return new AllOfWithSingleRef(this); | ||
} | ||
} | ||
|
||
public static abstract class AllOfWithSingleRefBuilder<C extends AllOfWithSingleRef, B extends AllOfWithSingleRefBuilder<C, B>> { | ||
private String username; | ||
private SingleRefType singleRefType; | ||
protected abstract B self(); | ||
|
||
public abstract C build(); | ||
|
||
public B username(String username) { | ||
this.username = username; | ||
return self(); | ||
} | ||
public B singleRefType(SingleRefType singleRefType) { | ||
this.singleRefType = singleRefType; | ||
return self(); | ||
} | ||
} | ||
} | ||
|
117 changes: 117 additions & 0 deletions
117
...tore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ChildWithNullable.java
This file contains 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,117 @@ | ||
package org.openapitools.model; | ||
|
||
import org.openapitools.jackson.nullable.JsonNullable; | ||
import org.openapitools.model.ParentWithNullable; | ||
import java.io.Serializable; | ||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
|
||
import java.util.Objects; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
|
||
|
||
|
||
@org.eclipse.microprofile.openapi.annotations.media.Schema(description="") | ||
@JsonTypeName("ChildWithNullable") | ||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT") | ||
public class ChildWithNullable extends ParentWithNullable implements Serializable { | ||
private String otherProperty; | ||
|
||
protected ChildWithNullable(ChildWithNullableBuilder<?, ?> b) { | ||
super(b); | ||
this.otherProperty = b.otherProperty; | ||
} | ||
|
||
public ChildWithNullable() { | ||
} | ||
|
||
/** | ||
**/ | ||
public ChildWithNullable otherProperty(String otherProperty) { | ||
this.otherProperty = otherProperty; | ||
return this; | ||
} | ||
|
||
|
||
@org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") | ||
@JsonProperty("otherProperty") | ||
public String getOtherProperty() { | ||
return otherProperty; | ||
} | ||
|
||
@JsonProperty("otherProperty") | ||
public void setOtherProperty(String otherProperty) { | ||
this.otherProperty = otherProperty; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
ChildWithNullable childWithNullable = (ChildWithNullable) o; | ||
return Objects.equals(this.otherProperty, childWithNullable.otherProperty) && | ||
super.equals(o); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(otherProperty, super.hashCode()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class ChildWithNullable {\n"); | ||
sb.append(" ").append(toIndentedString(super.toString())).append("\n"); | ||
sb.append(" otherProperty: ").append(toIndentedString(otherProperty)).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 "); | ||
} | ||
|
||
|
||
public static ChildWithNullableBuilder<?, ?> builder() { | ||
return new ChildWithNullableBuilderImpl(); | ||
} | ||
|
||
private static final class ChildWithNullableBuilderImpl extends ChildWithNullableBuilder<ChildWithNullable, ChildWithNullableBuilderImpl> { | ||
|
||
@Override | ||
protected ChildWithNullableBuilderImpl self() { | ||
return this; | ||
} | ||
|
||
@Override | ||
public ChildWithNullable build() { | ||
return new ChildWithNullable(this); | ||
} | ||
} | ||
|
||
public static abstract class ChildWithNullableBuilder<C extends ChildWithNullable, B extends ChildWithNullableBuilder<C, B>> extends ParentWithNullableBuilder<C, B> { | ||
private String otherProperty; | ||
|
||
public B otherProperty(String otherProperty) { | ||
this.otherProperty = otherProperty; | ||
return self(); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.