You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature description:
Extend the capabilities of the protovalidate library to include support for performing runtime validation of Protocol Buffers messages in Kotlin projects, for example native Android mobile applications, using native Kotlin constructs instead of the available Java implementation.
Problem it solves or use case:
A Java implementation is available, but the current lack of native Kotlin support in the protovalidate library poses challenges for developers who work with Protocol Buffers and Kotlin--an example would be native Android clients. By introducing native Kotlin support, developers can easily leverage protovalidate with all the conventionally available language features Kotlin developers love--some examples being null safety and abstractions like data classes.
Proposed implementation or solution:
The proposed solution involves extending the existing protovalidate library to incorporate native Kotlin bindings and compatibility. This includes defining Kotlin structures or classes that mirror Protocol Buffers message structures, and implementing runtime validation functions that align with Kotlin's primary language features (eg. null-safety, data classes, etc.).
CEL Interpreter
Unlike the Swift support proposed in #71 , a Java CEL interpreter does exist that may make implementing this solution easier.
Contribution:
I am not a professional Kotlin developer myself (though I've written a little in the past), and am submitting this on behalf of my team, but am happy to contribute by facilitating communication with our Android team, who would be our primary use-case for this tool.
Examples or references:
An applicable example of an ergonomic protobuf codebase in Kotlin that might be used for reference is: square/wire
Additional context:
Related to #71 regarding expanded support for mobile use-cases.
The text was updated successfully, but these errors were encountered:
Feature description:
Extend the capabilities of the
protovalidate
library to include support for performing runtime validation of Protocol Buffers messages in Kotlin projects, for example native Android mobile applications, using native Kotlin constructs instead of the available Java implementation.Problem it solves or use case:
A Java implementation is available, but the current lack of native Kotlin support in the
protovalidate
library poses challenges for developers who work with Protocol Buffers and Kotlin--an example would be native Android clients. By introducing native Kotlin support, developers can easily leverageprotovalidate
with all the conventionally available language features Kotlin developers love--some examples being null safety and abstractions like data classes.Proposed implementation or solution:
The proposed solution involves extending the existing
protovalidate
library to incorporate native Kotlin bindings and compatibility. This includes defining Kotlin structures or classes that mirror Protocol Buffers message structures, and implementing runtime validation functions that align with Kotlin's primary language features (eg. null-safety, data classes, etc.).CEL Interpreter
Unlike the Swift support proposed in #71 , a Java CEL interpreter does exist that may make implementing this solution easier.
Contribution:
I am not a professional Kotlin developer myself (though I've written a little in the past), and am submitting this on behalf of my team, but am happy to contribute by facilitating communication with our Android team, who would be our primary use-case for this tool.
Examples or references:
An applicable example of an ergonomic protobuf codebase in Kotlin that might be used for reference is: square/wire
Additional context:
Related to #71 regarding expanded support for mobile use-cases.
The text was updated successfully, but these errors were encountered: