Skip to content

main -> development #1649

Merged
andrew-bierman merged 181 commits intodevelopmentfrom
main
Aug 25, 2025
Merged

main -> development #1649
andrew-bierman merged 181 commits intodevelopmentfrom
main

Conversation

@andrew-bierman
Copy link
Collaborator

No description provided.

andrew-bierman and others added 30 commits August 12, 2025 06:36
- Add OpenAPI schemas for all API endpoints with Zod validation
- Create schema definitions for auth, catalog, packs, users, templates, guides, weather, chat, search, and upload
- Add tags for route categorization (Authentication, Catalog, Packs, Users, etc.)
- Document security requirements with Bearer authentication
- Include comprehensive error responses (401, 403, 404, 500)
- Add request/response validation schemas with examples and descriptions
- Create central OpenAPI configuration in utils/openapi.ts
- Update all routes to use createRoute from @hono/zod-openapi
- Convert routes to OpenAPIHono type for proper typing
- Add drizzle-zod schemas for potential future use

Note: Response formats remain unchanged to maintain frontend compatibility
Only documentation and type safety improvements in this commit

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add explicit status codes to all c.json() responses (200 for success)
- Fix schema type mismatch: catalog item ID changed from string to number
- Cast weather API response to any to avoid unknown type error
- Maintain backward compatibility with existing response formats

All TypeScript errors in API source code now resolved.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Replace all Response.json() with c.json() for Hono compatibility
- Replace unauthorizedResponse() with inline c.json({ error: 'Unauthorized' }, 401)
- Add explicit HTTP status codes to all route responses
- Fix schema type mismatches (catalog item ID: string to number)
- Standardize error handling across all routes

Changes applied to:
- auth routes: fixed Response.json and added status codes
- catalog routes: removed unauthorizedResponse dependency
- pack routes: added explicit status codes
- guide routes: fixed response patterns
- weather routes: added status codes
- chat routes: updated response methods
- user routes: standardized responses

Note: Some schema mismatches remain between DB models and OpenAPI schemas
that will need to be addressed in a follow-up PR.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Isthisanmol and others added 27 commits August 24, 2025 21:03
…-temp

Chore/Diisable ENV Validation Temp 2
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com>
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com>
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com>
Co-authored-by: andrew-bierman <94939237+andrew-bierman@users.noreply.github.com>
…loop handover for gc opportuinities to prevent memory bloat
@cloudflare-workers-and-pages
Copy link
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
packrat-api 42605d8 Aug 25 2025, 04:22 AM

@andrew-bierman andrew-bierman marked this pull request as ready for review August 25, 2025 04:23
@andrew-bierman andrew-bierman merged commit f42b393 into development Aug 25, 2025
7 of 11 checks passed
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.

5 participants