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

Extract avro validator #440

Merged

Conversation

attilakreiner
Copy link
Contributor

@attilakreiner attilakreiner commented Sep 21, 2023

Description

Extract the avro validator from runtime/engine to incubator/validator-avro.

Fixes # (issue)

@attilakreiner attilakreiner changed the title Validator avro Extract avro validator Sep 22, 2023
@attilakreiner attilakreiner marked this pull request as ready for review September 22, 2023 23:16
@@ -180,6 +184,8 @@ public final class Engine implements Collector, AutoCloseable
schemaTypes.addAll(metricGroups.stream().map(MetricGroup::type).filter(Objects::nonNull).collect(toList()));
schemaTypes.addAll(vaults.stream().map(Vault::type).filter(Objects::nonNull).collect(toList()));
schemaTypes.addAll(catalogs.stream().map(Catalog::type).filter(Objects::nonNull).collect(toList()));
schemaTypes.addAll(validatorFactory.validatorSpis().stream().map(ValidatorFactorySpi::schema)
.filter(Objects::nonNull).collect(toList()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, let's make sure to remove the filter when we have core extracted so every validator factory comes with a schema patch.

{
return null;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Also to be removed when core validators are extracted.

@jfallows jfallows merged commit 2a89ef2 into aklivity:feature/schema-registry Sep 23, 2023
@attilakreiner attilakreiner deleted the validator-avro branch September 23, 2023 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants