Add Moderation API and stable response types#14
Merged
Conversation
Regenerated the Java client from the updated OpenAPI spec. - New Moderation API (ModerationApi): 43 moderator-dashboard endpoints covering comment moderation, bans, badges, trust factor, and search. All accept an sso query param. - BREAKING: each operation now returns its success type directly; APIError is a default error response rather than part of a union wrapper type. Response shapes are unchanged.
build.gradle now produced correctly by the generator (Gradle 9 java{} block,
mainClass, spotless 8.4, junit-platform-launcher) instead of being patched
post-generation. update.sh downloads the generator jar and no longer seds the
generated output.
The client module's generated tests are empty stubs; add hand-written SSOTest (token/hash generation) and SSOIntegrationTest (live create+fetch via secure SSO) in the core module, and point CI at core. Also fix a Gradle 9 plugin-ordering error in the hand-written core/pubsub build.gradle (java plugin applied before its DSL is used).
…the client stubs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moderation API
Adds a Moderation API with methods for the moderator dashboard:
All Moderation methods accept an
ssoparameter for SSO-authenticated moderators.Response types (breaking)
Each method now returns its success response type directly, with errors surfaced as a default error response, instead of the previous combined success-or-error return type. The response type names are now stable. Response shapes are unchanged.
Recommend a major version bump.