Skip to content

Commit

Permalink
experiment with deprecating unnecessary parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed May 29, 2024
1 parent fdfa52b commit c5b2196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.eclipse.microprofile.openapi.annotations.enums.SchemaType
import org.eclipse.microprofile.openapi.annotations.media.Schema

@Schema(type = SchemaType.STRING, enumeration = ["hotspot"])
@Deprecated("This parameter is deprecated, please remove it from your requests.")
internal class AdoptiumJvmImpl {
companion object {
// Duplicate of above array as we cannot referece this in an annotation, keep these lists in sync
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package net.adoptium.api.v3.models

import net.adoptium.api.v3.config.Ecosystem
import org.eclipse.microprofile.openapi.annotations.enums.SchemaType
import org.eclipse.microprofile.openapi.annotations.media.Schema
import java.util.*

@Schema(type = SchemaType.STRING, enumeration = ["normal", "large"], example = "normal")
if (Ecosystem.CURRENT == Ecosystem.adoptium) {
@Deprecated("This parameter is deprecated, please remove it from your requests.")
}
enum class HeapSize : FileNameMatcher {
normal, large(0, "XL", "LinuxLH");

Expand Down

0 comments on commit c5b2196

Please sign in to comment.