Skip to content
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

Vertx 4 deprecation fixes #506

Merged
merged 12 commits into from
Feb 17, 2022
Merged

Conversation

siladu
Copy link
Contributor

@siladu siladu commented Feb 7, 2022

Migration from deprecated vertx-web-api-contract module to vertx-web-openapi, see https://vert-x3.github.io/vertx-4-migration-guide/index.html#changes-in-vertx-openapi_changes-in-common-components

Main change was replacing OpenAPI3RouterFactory with RouterBuilder with near one-for-one method replacements.

Fix "format not supported" bug by adding custom string format validator for uint64. This follows same validation rules as the teku UInt64Deserializer.

Make OpenApiSpecsExtractorTest fail upon lack of uint64 validator by calling createRouter() (and registering a noop securityHandler to satisfy the eth2 keymanager openapi spec's security scheme).

…supported" for uint64

Variable names still need updating

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…or uint64

This follows same validation rules as the teku UInt64Deserializer.

Rename variables to match RouterBuilder type.

Make OpenApiSpecsExtractorTest fail upon lack of uint64 validator by calling createRouter() (and registering a noop securityHandler to satisfy the eth2 keymanager openapi spec's security scheme).

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…idator by calling createRouter() (and registering a noop securityHandler to satisfy the eth2 keymanager openapi spec's security scheme).

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…andle relative ref paths

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…ised as absolute paths by vertx

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…nt64 validator by calling createRouter() (and registering a noop securityHandler to satisfy the eth2 keymanager openapi spec's security scheme)."

This reverts commit 5a7f3e7.

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…an now handle relative ref paths"

This reverts commit 34ba00d.

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu requested a review from usmansaleem February 8, 2022 21:09
…on-fixes

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Copy link
Contributor

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu requested a review from jframe February 17, 2022 01:23
@siladu siladu added the TeamCerberus Under active development by TeamCerberus @Consensys label Feb 17, 2022
@siladu siladu merged commit 66616e3 into Consensys:master Feb 17, 2022
@siladu siladu deleted the vertx-4-deprecation-fixes branch February 17, 2022 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TeamCerberus Under active development by TeamCerberus @Consensys
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants