Repository navigation
Detect available endpoints from the API spec (works without an admin key) - #76
Open
AndreaV-Lsi wants to merge 1 commit into
Open
AndreaV-Lsi wants to merge 1 commit into
AndreaV-Lsi wants to merge 1 commit into
Conversation
OpenProject reports coreVersion only to admin API keys, so the version check can't run for most users. The server's OpenAPI spec lists every endpoint it offers; compat now reads it once per client (api_paths / has_endpoint) and version-gated features use it when the version is hidden: sprint tools refuse up front with "not available on this server: its API doesn't offer them" instead of calling and interpreting a 404. Order in require(): version (admin keys, names the server version), then the spec (any key), then the server's own answer (404 fallback). Matrix checks: a non-admin key can read the spec, and the spec lists the sprint endpoints exactly on 17.3+. Closes #75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #75. Description follows once the matrix shows whether non-admin keys can read the spec on 14–17.
🤖 Generated with Claude Code