Skip to content

Feature/#5#14

Merged
naoki-00-ito merged 7 commits intodevelopfrom
feature/#5
Jul 18, 2025
Merged

Feature/#5#14
naoki-00-ito merged 7 commits intodevelopfrom
feature/#5

Conversation

@naoki-00-ito
Copy link
Member

This pull request introduces significant updates to integrate OpenAPI specifications into the mobile app project. It includes changes to the API client, screens, configurations, and tooling to support a more structured and type-safe approach to handling API interactions. Below is a summary of the most important changes grouped by theme.

OpenAPI Integration

  • Added openapi-fetch library to mobile-app/package.json for API client creation.
  • Created mobile-app/api-client/example.ts to define an API client using OpenAPI specifications.
  • Added OpenAPI specifications (openapi-specifications/example.swagger.json) and TypeScript definitions for API schema (mobile-app/schema/example.d.ts). [1] [2] [3]

New Screens for API Data

  • Implemented ItemsScreen and ItemDetailsScreen to display and interact with API data. These screens use the OpenAPI client for fetching data. [1] [2]
  • Added navigation setup (mobile-app/app/example/index.tsx) and constants/types for screen parameters. [1] [2] [3]

Configuration and Tooling Updates

  • Updated mobile-app/package.json with new scripts for mocking (mock:example) and generating TypeScript definitions (gen-schema:example) from OpenAPI specifications.
  • Added schema directory to .gitignore and ESLint ignores to exclude generated files. [1] [2]
  • Enhanced tsconfig.json with stricter type-checking options (noUncheckedIndexedAccess) and updated module resolution settings.

Documentation and Recommendations

  • Updated README.md to include details about OpenAPI specifications and their usage.
  • Added a recommended VS Code extension for OpenAPI (42crunch.vscode-openapi) to .vscode/extensions.json.

Workflow Enhancements

  • Modified .github/workflows/mobile-app-test.yml to include steps for generating API schema and running TypeScript type-checking. [1] [2]

close #5

@naoki-00-ito naoki-00-ito self-assigned this Jul 18, 2025
@naoki-00-ito naoki-00-ito merged commit 7c9d62d into develop Jul 18, 2025
2 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.

リクエスト処理自動生成

1 participant

Comments