Skip to content

feat: API fidelity — error format, headers, 18-char IDs, describe - #17

Merged
razkevich merged 1 commit into
mainfrom
010-api-fidelity
Apr 9, 2026
Merged

razkevich merged 1 commit into
mainfrom
010-api-fidelity

Conversation

@razkevich

Copy link
Copy Markdown
Owner

Summary

  • Consistent SF error array format across all controllers
  • Sforce-Limit-Info header on all /services/* responses
  • SOAP responses use text/xml;charset=utf-8
  • Proper 18-char Salesforce IDs with case-fold suffix algorithm
  • Describe: recordTypeInfos (Master), childRelationships
  • Accept both 15 and 18-char IDs in lookups

Test plan

  • 150 tests pass (135 existing + 15 new API fidelity tests)
  • Error format verified with fields array
  • Sforce-Limit-Info header verified present/absent
  • 18-char ID format and suffix computation verified
  • Describe recordTypeInfos and childRelationships verified

🤖 Generated with Claude Code

Error format: all controllers now use consistent SF error array format
Sforce-Limit-Info: header added to all /services/* responses
Content-Type: SOAP responses use text/xml;charset=utf-8
Salesforce IDs: proper 18-char format with case-fold suffix algorithm
  - SalesforceIdGenerator with standard 5-bit chunk suffix computation
  - OrgStateService accepts both 15 and 18-char IDs in lookups
Describe: added recordTypeInfos (Master), childRelationships (Account→Contacts/Opportunities)

150 tests pass (135 existing + 15 new API fidelity tests)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@razkevich
razkevich merged commit 63b101e into main Apr 9, 2026
1 check passed
@razkevich
razkevich deleted the 010-api-fidelity branch April 9, 2026 11:40
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