feat(api): add webhook validation and parsing#111
Conversation
| } | ||
| } | ||
|
|
||
| @OptIn(ExperimentalStdlibApi::class) |
There was a problem hiding this comment.
What is the experimental thing we're using?
There was a problem hiding this comment.
My IDE was saying this was needed for toHexString... but it works if I remove it!
There was a problem hiding this comment.
Unfortunately I had to add this back @TomerAberbach. I get compile time warnings without it.
f3be701 to
d56a0d4
Compare
| @@ -0,0 +1,13 @@ | |||
| // File generated from our OpenAPI spec by Stainless. | |||
There was a problem hiding this comment.
Do we actually want this comment? The file wasn't generated I guess. Same for the other added files
There was a problem hiding this comment.
I think it's a good warning since we do plan to generate this code in the future?
| } | ||
|
|
||
| @Test | ||
| fun verifySignature() { |
There was a problem hiding this comment.
It's better practice to separate tests into separate cases, even for the same method, instead of testing all the cases in a single test. Can we split this up?
See these for some guidance:
Co-authored-by: Tomer Aberbach <tomer@aberba.ch>
* add webhook helpers * add webhook helpers * pr comments * Apply suggestions from code review Co-authored-by: Tomer Aberbach <tomer@aberba.ch> * refactor tests --------- Co-authored-by: David Meadows <dtmeadows@stainlessapi.com> Co-authored-by: Tomer Aberbach <tomer@aberba.ch>
No description provided.