Skip to content

Complete SDK generator with full OpenAPI support #61

Description

@dotunv

Description

The SDK generator currently has basic functionality but several gaps:

  1. Only handles POST operations - GET, PUT, DELETE, PATCH are not supported
  2. Uses hardcoded 'TODO' fallback when OpenAPI properties lack examples
  3. No query parameter support in generated code
  4. No response type inference from schemas

Files:

  • apps/api/src/modules/sdkgen/typescript.generator.ts
  • apps/api/src/modules/sdkgen/python.generator.ts
  • apps/api/src/modules/sdkgen/go.generator.ts
  • apps/api/src/modules/sdkgen/curl.generator.ts

Proposed Improvements

  1. Support all HTTP methods (GET, POST, PUT, DELETE, PATCH)
  2. Generate proper query parameter handling
  3. Infer response types from OpenAPI schema definitions
  4. Remove 'TODO' fallbacks - use descriptive defaults or skip
  5. Add request body type generation from schemas

Acceptance Criteria

  • All HTTP methods are supported
  • Query parameters are included in generated code
  • Response types are inferred from schemas
  • No hardcoded 'TODO' fallbacks remain

Labels

enhancement backend

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26backendBackend / API workenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions