-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathissue32.json
More file actions
1 lines (1 loc) · 11 KB
/
issue32.json
File metadata and controls
1 lines (1 loc) · 11 KB
1
{"url":"https://api.github.com/repos/Smartdevs17/SubTrackr/issues/32","repository_url":"https://api.github.com/repos/Smartdevs17/SubTrackr","labels_url":"https://api.github.com/repos/Smartdevs17/SubTrackr/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Smartdevs17/SubTrackr/issues/32/comments","events_url":"https://api.github.com/repos/Smartdevs17/SubTrackr/issues/32/events","html_url":"https://github.com/Smartdevs17/SubTrackr/issues/32","id":4113272619,"node_id":"I_kwDOPdkJIM71K48r","number":32,"title":"🔧 Remove unsafe any types from API details","user":{"login":"Smartdevs17","id":81881979,"node_id":"MDQ6VXNlcjgxODgxOTc5","avatar_url":"https://avatars.githubusercontent.com/u/81881979?v=4","gravatar_id":"","url":"https://api.github.com/users/Smartdevs17","html_url":"https://github.com/Smartdevs17","followers_url":"https://api.github.com/users/Smartdevs17/followers","following_url":"https://api.github.com/users/Smartdevs17/following{/other_user}","gists_url":"https://api.github.com/users/Smartdevs17/gists{/gist_id}","starred_url":"https://api.github.com/users/Smartdevs17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smartdevs17/subscriptions","organizations_url":"https://api.github.com/users/Smartdevs17/orgs","repos_url":"https://api.github.com/users/Smartdevs17/repos","events_url":"https://api.github.com/users/Smartdevs17/events{/privacy}","received_events_url":"https://api.github.com/users/Smartdevs17/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":9106957626,"node_id":"LA_kwDOPdkJIM8AAAACHtElOg","url":"https://api.github.com/repos/Smartdevs17/SubTrackr/labels/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"},{"id":10486414569,"node_id":"LA_kwDOPdkJIM8AAAACcQn86Q","url":"https://api.github.com/repos/Smartdevs17/SubTrackr/labels/priority-medium","name":"priority-medium","color":"fbca04","default":false,"description":"Medium priority"},{"id":10488323645,"node_id":"LA_kwDOPdkJIM8AAAACcScePQ","url":"https://api.github.com/repos/Smartdevs17/SubTrackr/labels/Stellar%20Wave","name":"Stellar Wave","color":"5555ff","default":false,"description":"Issues in the Stellar wave program"}],"state":"open","locked":false,"assignees":[{"login":"Kristyidu","id":195349056,"node_id":"U_kgDOC6TKQA","avatar_url":"https://avatars.githubusercontent.com/u/195349056?v=4","gravatar_id":"","url":"https://api.github.com/users/Kristyidu","html_url":"https://github.com/Kristyidu","followers_url":"https://api.github.com/users/Kristyidu/followers","following_url":"https://api.github.com/users/Kristyidu/following{/other_user}","gists_url":"https://api.github.com/users/Kristyidu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kristyidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kristyidu/subscriptions","organizations_url":"https://api.github.com/users/Kristyidu/orgs","repos_url":"https://api.github.com/users/Kristyidu/repos","events_url":"https://api.github.com/users/Kristyidu/events{/privacy}","received_events_url":"https://api.github.com/users/Kristyidu/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":3,"created_at":"2026-03-21T18:19:36Z","updated_at":"2026-03-24T20:50:50Z","closed_at":null,"assignee":{"login":"Kristyidu","id":195349056,"node_id":"U_kgDOC6TKQA","avatar_url":"https://avatars.githubusercontent.com/u/195349056?v=4","gravatar_id":"","url":"https://api.github.com/users/Kristyidu","html_url":"https://github.com/Kristyidu","followers_url":"https://api.github.com/users/Kristyidu/followers","following_url":"https://api.github.com/users/Kristyidu/following{/other_user}","gists_url":"https://api.github.com/users/Kristyidu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kristyidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kristyidu/subscriptions","organizations_url":"https://api.github.com/users/Kristyidu/orgs","repos_url":"https://api.github.com/users/Kristyidu/repos","events_url":"https://api.github.com/users/Kristyidu/events{/privacy}","received_events_url":"https://api.github.com/users/Kristyidu/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"OWNER","active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"## Problem\ndetails?: any in api.ts loses type safety for API responses.\n\n## Context\nAPI responses are parsed without type checking, risking runtime errors.\n\n## Proposed Solution\nDefine proper API types:\n1. Create response interfaces for each endpoint\n2. Replace any with specific types\n3. Add JSON schema validation\n4. Consider using zod for runtime validation\n\n## Acceptance Criteria\n- [ ] All API types properly defined\n- [ ] Response parsing type-safe\n- [ ] IDE autocomplete for API data\n- [ ] Build passes without errors\n\n## Technical Notes\n**File:** src/types/api.ts:49\n**Type:** SubscriptionAPIResponse\n\n## Constraints\n- Handle nullable fields\n- Version API responses if needed\n- Document unknown fields","closed_by":null,"reactions":{"url":"https://api.github.com/repos/Smartdevs17/SubTrackr/issues/32/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/Smartdevs17/SubTrackr/issues/32/timeline","performed_via_github_app":null,"state_reason":null,"pinned_comment":null}