Repository navigation
Move planetaryPositions to astroapi-8 (adds Vertex) — DV-445 - #2
Merged
Merged
Conversation
DV-445, under DV-433. The astroapi-4 planetary-positions is the older
implementation and omits Vertex; astroapi-8 returns it. Verified
2026-09-25 with a client's chart: the 17 bodies both hosts share have
identical values, fields and types, and astroapi-8 adds Vertex after
MC. house_system and lan behave identically.
This is a behaviour change for SDK consumers, documented in the method
docstring and the README:
- the envelope is now {"status": "success", "code": 200, "message",
"data"}; there is no "success" key, so code checking success == 1
must switch to status == "success" (or just read data);
- invalid input is now an HTTP 422 and raises instead of returning
{"success": 2}.
The data list itself is unchanged apart from the added Vertex.
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.
SDK side of DV-445, under DV-433. Companion PRs in the other two SDKs and
Dinesh-Gahlot/mcp-western-astrology.@anubhav-dir — moves
planetaryPositions/planetary_positionsfrom astroapi-4 to astroapi-8 so the response includes Vertex, per your finding on DV-433.What stays the same
Verified 2026-09-25 against the client's chart from DV-433:
datalist is backward-compatible — the 17 bodies both hosts return have identical values, the same 13 fields, and the same typeshouse_system(letters and friendly names) andlanbehave identically on both hostsThis is a real behaviour change for this one method, documented in the method docblock and in the README:
{"status": "success", "code": 200, "message": ..., "data": [...]}with nosuccesskey. Code that checkssuccess == 1must switch tostatus == "success", or just readdata.ValidationException, instead of returning['success' => 2]. Code that relied on checkingsuccessto detect errors will now see an exception instead.name) shifts by one after MC.Worth noting: this SDK already calls astroapi-8 for around 11 other natal methods, so consumers already see both envelopes across methods. This brings
planetary_positionsin line with them rather than introducing a new pattern.Testing (live)
Envelope is
status="success"with nosuccesskey; 18 bodies incl. Vertex at321.4875176Aquarius;house_systemhonoured (placidus ≠ whole-sign); the error behaviour above verified by sending a request withlatmissing; regression —house_cusps, which stays on astroapi-4, still works.No version field in
composer.json— tagv1.10.0on merge and Packagist picks it up.🤖 Generated with Claude Code