Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BitGo/api-ts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @api-ts/[email protected]
Choose a base ref
...
head repository: BitGo/api-ts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @api-ts/[email protected]
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 23, 2025

  1. refactor: improve the error message for missing external codecs in op…

    …enapi-generator
    
    following principles of 1. What went wrong and 2. how to solve it
    yanxue-22 committed Oct 23, 2025
    Configuration menu
    Copy the full SHA
    96b5e1a View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2025

  1. Merge pull request #1060 from BitGo/DX-688-Improve-Error-Message-for-…

    …External-Codecs
    
    refactor: improve the error message for missing external codecs in openapi-generator
    vmccarty authored Oct 24, 2025
    Configuration menu
    Copy the full SHA
    97d7cee View commit details
    Browse the repository at this point in the history
  2. fix: support BlockStatement arrow functions in codec parser

    Previously, only implicit-return arrow functions were supported:
    
    ```typescript
    const factory = () => t.string;  // ✅ Worked
    
    BlockStatement arrow functions with explicit returns would fail:
      const factory = () => {
      return t.string;  // ❌ Error: "BlockStatement arrow functions are not yet supported"
    };
    ```
    
    This fix:
    - Searches BlockStatement.stmts for ReturnStatement nodes
    - Extracts the return value expression (returnStmt.argument)
    - Passes it to parseCodecInitializer() for recursive parsing
    - Validates that a return statement exists with a non-undefined argument
    
    Both styles now produce identical schemas since they converge on the
    same parseCodecInitializer() call with the return value expression.
    
    Test case added using BooleanFromNullableWithFallback() with explicit
    block syntax to verify the parser handles both arrow function styles.
    yanxue-22 committed Oct 24, 2025
    Configuration menu
    Copy the full SHA
    81ac730 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2025

  1. Merge pull request #1061 from BitGo/DX-2182-openapi-generator-failing…

    …-to-parse-utils
    
    fix: support BlockStatement arrow functions in codec parser
    yanxue-22 authored Oct 27, 2025
    Configuration menu
    Copy the full SHA
    269dada View commit details
    Browse the repository at this point in the history
Loading