-
Notifications
You must be signed in to change notification settings - Fork 2
chore: generate API level classes from KERIA OpenAPI #59
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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
219 changes: 219 additions & 0 deletions
219
src/main/java/org/cardanofoundation/signify/generated/keria/model/ACDCAttributes.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,219 @@ | ||
| /* | ||
| * KERIA Interactive Web Interface API | ||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
| * | ||
| * The version of the OpenAPI document: 1.0.1 | ||
| * | ||
| * | ||
| * 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.cardanofoundation.signify.generated.keria.model; | ||
|
|
||
| import java.util.Map; | ||
| import java.util.HashMap; | ||
| import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
| import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
| import java.util.Objects; | ||
| import java.util.Arrays; | ||
| 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 com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
| import com.fasterxml.jackson.annotation.JsonTypeName; | ||
|
|
||
| /** | ||
| * ACDCAttributes | ||
| */ | ||
| @JsonPropertyOrder({ | ||
| ACDCAttributes.JSON_PROPERTY_DT, | ||
| ACDCAttributes.JSON_PROPERTY_I, | ||
| ACDCAttributes.JSON_PROPERTY_U | ||
| }) | ||
| @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-27T15:07:13.177027+07:00[Asia/Ho_Chi_Minh]", comments = "Generator version: 7.16.0") | ||
| public class ACDCAttributes { | ||
| public static final String JSON_PROPERTY_DT = "dt"; | ||
| @jakarta.annotation.Nullable | ||
| private String dt; | ||
|
|
||
| public static final String JSON_PROPERTY_I = "i"; | ||
| @jakarta.annotation.Nullable | ||
| private String i; | ||
|
|
||
| public static final String JSON_PROPERTY_U = "u"; | ||
| @jakarta.annotation.Nullable | ||
| private String u; | ||
|
|
||
| public ACDCAttributes() { | ||
| } | ||
|
|
||
| public ACDCAttributes dt(@jakarta.annotation.Nullable String dt) { | ||
|
|
||
| this.dt = dt; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get dt | ||
| * @return dt | ||
| */ | ||
| @jakarta.annotation.Nullable | ||
| @JsonProperty(value = JSON_PROPERTY_DT, required = false) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
|
|
||
| public String getDt() { | ||
| return dt; | ||
| } | ||
|
|
||
|
|
||
| @JsonProperty(value = JSON_PROPERTY_DT, required = false) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setDt(@jakarta.annotation.Nullable String dt) { | ||
| this.dt = dt; | ||
| } | ||
|
|
||
| public ACDCAttributes i(@jakarta.annotation.Nullable String i) { | ||
|
|
||
| this.i = i; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get i | ||
| * @return i | ||
| */ | ||
| @jakarta.annotation.Nullable | ||
| @JsonProperty(value = JSON_PROPERTY_I, required = false) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
|
|
||
| public String getI() { | ||
| return i; | ||
| } | ||
|
|
||
|
|
||
| @JsonProperty(value = JSON_PROPERTY_I, required = false) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setI(@jakarta.annotation.Nullable String i) { | ||
| this.i = i; | ||
| } | ||
|
|
||
| public ACDCAttributes u(@jakarta.annotation.Nullable String u) { | ||
|
|
||
| this.u = u; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get u | ||
| * @return u | ||
| */ | ||
| @jakarta.annotation.Nullable | ||
| @JsonProperty(value = JSON_PROPERTY_U, required = false) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
|
|
||
| public String getU() { | ||
| return u; | ||
| } | ||
|
|
||
|
|
||
| @JsonProperty(value = JSON_PROPERTY_U, required = false) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setU(@jakarta.annotation.Nullable String u) { | ||
| this.u = u; | ||
| } | ||
|
|
||
| /** | ||
| * A container for additional, undeclared properties. | ||
| * This is a holder for any undeclared properties as specified with | ||
| * the 'additionalProperties' keyword in the OAS document. | ||
| */ | ||
| private Map<String, Object> additionalProperties; | ||
|
|
||
| /** | ||
| * Set the additional (undeclared) property with the specified name and value. | ||
| * If the property does not already exist, create it otherwise replace it. | ||
| * @param key the name of the property | ||
| * @param value the value of the property | ||
| * @return self reference | ||
| */ | ||
| @JsonAnySetter | ||
| public ACDCAttributes putAdditionalProperty(String key, Object value) { | ||
| if (this.additionalProperties == null) { | ||
| this.additionalProperties = new HashMap<String, Object>(); | ||
| } | ||
| this.additionalProperties.put(key, value); | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Return the additional (undeclared) properties. | ||
| * @return the additional (undeclared) properties | ||
| */ | ||
| @JsonAnyGetter | ||
| public Map<String, Object> getAdditionalProperties() { | ||
| return additionalProperties; | ||
| } | ||
|
|
||
| /** | ||
| * Return the additional (undeclared) property with the specified name. | ||
| * @param key the name of the property | ||
| * @return the additional (undeclared) property with the specified name | ||
| */ | ||
| public Object getAdditionalProperty(String key) { | ||
| if (this.additionalProperties == null) { | ||
| return null; | ||
| } | ||
| return this.additionalProperties.get(key); | ||
| } | ||
|
|
||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| if (o == null || getClass() != o.getClass()) { | ||
| return false; | ||
| } | ||
| ACDCAttributes acDCAttributes = (ACDCAttributes) o; | ||
| return Objects.equals(this.dt, acDCAttributes.dt) && | ||
| Objects.equals(this.i, acDCAttributes.i) && | ||
| Objects.equals(this.u, acDCAttributes.u) && | ||
| Objects.equals(this.additionalProperties, acDCAttributes.additionalProperties); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(dt, i, u, additionalProperties); | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| StringBuilder sb = new StringBuilder(); | ||
| sb.append("class ACDCAttributes {\n"); | ||
| sb.append(" dt: ").append(toIndentedString(dt)).append("\n"); | ||
| sb.append(" i: ").append(toIndentedString(i)).append("\n"); | ||
| sb.append(" u: ").append(toIndentedString(u)).append("\n"); | ||
| sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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.
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.
Uh oh!
There was an error while loading. Please reload this page.