Skip to content

feat(api): add webhook validation and parsing#111

Merged
stainless-app[bot] merged 5 commits into
orbcorp:nextfrom
dtmeadows:main
Nov 18, 2024
Merged

feat(api): add webhook validation and parsing#111
stainless-app[bot] merged 5 commits into
orbcorp:nextfrom
dtmeadows:main

Conversation

@dtmeadows
Copy link
Copy Markdown
Contributor

No description provided.

}
}

@OptIn(ExperimentalStdlibApi::class)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the experimental thing we're using?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My IDE was saying this was needed for toHexString... but it works if I remove it!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately I had to add this back @TomerAberbach. I get compile time warnings without it.

Comment thread orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/WebhookService.kt Outdated
@dtmeadows dtmeadows marked this pull request as ready for review November 14, 2024 17:27
Comment thread README.md Outdated
@@ -0,0 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we actually want this comment? The file wasn't generated I guess. Same for the other added files

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's a good warning since we do plan to generate this code in the future?

}

@Test
fun verifySignature() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

dtmeadows and others added 2 commits November 18, 2024 13:52
Co-authored-by: Tomer Aberbach <tomer@aberba.ch>
@stainless-app stainless-app Bot merged commit 993bd2b into orbcorp:next Nov 18, 2024
@stainless-app stainless-app Bot mentioned this pull request Nov 18, 2024
stainless-app Bot pushed a commit that referenced this pull request Nov 18, 2024
* 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>
@stainless-app stainless-app Bot mentioned this pull request Jan 3, 2025
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