-
Hi, i may be missing something trivial here, but i was unable to locate any sort of constructor for
points to the Any suggestions as to how to proceed from here without serde Deserializer involvement ? i can also see that the test in admission.rs does just that thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey there! Yeah, you are right, this is quite possibly an oversight when constructing the api. We could just make it public to make unit testing easier 🤔 The normal flow pattern here (
|
Beta Was this translation helpful? Give feedback.
Hey there! Yeah, you are right, this is quite possibly an oversight when constructing the api. We could just make it public to make unit testing easier 🤔
The normal flow pattern here (
AdmissionReview
input ->AdmissionRequest
viaTryInto
->AdmissionResponse
viaFrom
/::invalid
->AdmissionReview
via::into_review
) is not super practical for unit testing since it would just emulate what the function would do.Going to move this to an issueGoing to open a quick PR for more review. Thanks for the question!