Introduce validators in the http binding#435
Introduce validators in the http binding#435jfallows merged 11 commits intoaklivity:feature/schema-registryfrom
Conversation
caf8317 to
1c9e9c0
Compare
.../aklivity/zilla/runtime/engine/internal/validator/config/AvroValidatorConfigAdapterTest.java
Outdated
Show resolved
Hide resolved
| import io.aklivity.zilla.runtime.binding.http.internal.types.String8FW; | ||
| import io.aklivity.zilla.runtime.engine.internal.validator.config.AvroValidatorConfig; | ||
| import io.aklivity.zilla.runtime.engine.internal.validator.config.CatalogedConfig; | ||
| import io.aklivity.zilla.runtime.engine.internal.validator.config.StringValidatorConfig; |
There was a problem hiding this comment.
In preparation for hoisting out the validators, this should be using a TestValidator instead of specific implementations.
The string validator and avro validator config tests belong closer to those implementations.
|
|
||
| AvroValidatorConfigBuilder( | ||
| Function<AvroValidatorConfig, T> mapper) | ||
| Function<ValidatorConfig, T> mapper) |
There was a problem hiding this comment.
I understand why we did this, but it doesn't feel right for the AvroValidatorConfigBuilder not to build an AvroValdiatorConfig when Function.identity() is passed as the mapper. Instead it will return ValidatorConfig from .build().
Maybe keep this concrete as AvroValidatorConfig, and handle the implicit cast in the AvroValidatorConfig.builder(...) methods by adjusting the mapper before passing in here?
There was a problem hiding this comment.
I think it's fixed 🤔 pls chk
Description
Introduce validators in the http binding.
Fixes # (issue)