Skip to content

Commit

Permalink
Bump org.openapitools:openapi-generator-gradle-plugin from 7.6.0 to 7…
Browse files Browse the repository at this point in the history
….7.0 (#8715)

* Bump org.openapitools:openapi-generator-gradle-plugin

Bumps [org.openapitools:openapi-generator-gradle-plugin](https://github.com/OpenAPITools/openapi-generator) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/OpenAPITools/openapi-generator/releases)
- [Changelog](https://github.com/OpenAPITools/openapi-generator/blob/master/docs/3.0.0-release-note.md)
- [Commits](OpenAPITools/openapi-generator@v7.6.0...v7.7.0)

---
updated-dependencies:
- dependency-name: org.openapitools:openapi-generator-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Steven Sheehy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Sheehy <[email protected]>
  • Loading branch information
dependabot[bot] and steven-sheehy authored Jul 9, 2024
1 parent bc6afa8 commit a753ab8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies {
implementation("org.gradle:test-retry-gradle-plugin:1.5.9")
implementation("org.jooq:jooq-codegen-gradle:$jooqVersion")
implementation("org.jooq:jooq-meta:$jooqVersion")
implementation("org.openapitools:openapi-generator-gradle-plugin:7.6.0")
implementation("org.openapitools:openapi-generator-gradle-plugin:7.7.0")
implementation("org.owasp:dependency-check-gradle:10.0.2")
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:5.1.0.4882")
implementation("org.springframework.boot:spring-boot-gradle-plugin:3.3.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ default Key mapKey(byte[] source) {
var ecdsa = PATTERN_ECDSA.matcher(hex);

if (ecdsa.matches()) {
return new Key().key(ecdsa.group(2)).type(TypeEnum.ECDSA_SECP256K1);
return new Key().key(ecdsa.group(2)).type(TypeEnum.ECDSA_SECP256_K1);
}

return new Key().key(hex).type(TypeEnum.PROTOBUFENCODED);
return new Key().key(hex).type(TypeEnum.PROTOBUF_ENCODED);
}

default TimestampRange mapRange(Range<Long> source) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ void mapKey() {

// Then
assertThat(commonMapper.mapKey(null)).isNull();
assertThat(commonMapper.mapKey(ecdsa.toByteArray())).isEqualTo(toKey(bytesEcdsa, TypeEnum.ECDSA_SECP256K1));
assertThat(commonMapper.mapKey(ecdsaList.toByteArray())).isEqualTo(toKey(bytesEcdsa, TypeEnum.ECDSA_SECP256K1));
assertThat(commonMapper.mapKey(ecdsa.toByteArray())).isEqualTo(toKey(bytesEcdsa, TypeEnum.ECDSA_SECP256_K1));
assertThat(commonMapper.mapKey(ecdsaList.toByteArray()))
.isEqualTo(toKey(bytesEcdsa, TypeEnum.ECDSA_SECP256_K1));
assertThat(commonMapper.mapKey(ed25519.toByteArray())).isEqualTo(toKey(bytesEd25519, TypeEnum.ED25519));
assertThat(commonMapper.mapKey(ed25519.toByteArray())).isEqualTo(toKey(bytesEd25519, TypeEnum.ED25519));
assertThat(commonMapper.mapKey(ed25519List.toByteArray())).isEqualTo(toKey(bytesEd25519, TypeEnum.ED25519));
assertThat(commonMapper.mapKey(protobufEncoded)).isEqualTo(toKey(protobufEncoded, TypeEnum.PROTOBUFENCODED));
assertThat(commonMapper.mapKey(protobufEncoded)).isEqualTo(toKey(protobufEncoded, TypeEnum.PROTOBUF_ENCODED));
}

@Test
Expand Down

0 comments on commit a753ab8

Please sign in to comment.