Skip to content

Commit

Permalink
fix(bazel): Change metadata.json's model to comply with schema
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>
  • Loading branch information
nnobelis authored and sschuberth committed Aug 23, 2024
1 parent 5228030 commit eb8d2c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clients/bazel-module-registry/src/main/kotlin/Model.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ import io.ks3.java.typealiases.UriAsString
import kotlinx.serialization.Serializable

/**
* E.g. https://bcr.bazel.build/modules/glog/metadata.json.
* See: https://github.com/bazelbuild/bazel-central-registry/blob/3a298e2c3ec7484905d3ad132a60393571912cd1/metadata.schema.json.
*/
@Serializable
data class ModuleMetadata(
val homepage: UriAsString?,
val maintainers: List<Maintainer>? = null,
val homepage: UriAsString,
val maintainers: List<Maintainer>,
val repository: List<String>? = null,
val versions: List<String>,
// The key in the map is the version, the value the reason for yanking it.
val yankedVersions: Map<String, String>
val yankedVersions: Map<String, String>? = null
) {
@Serializable
data class Maintainer(
Expand Down

0 comments on commit eb8d2c8

Please sign in to comment.