Skip to content

Conversation

@jackdevis
Copy link

@jackdevis jackdevis commented Jan 21, 2026

Summary by cubic

Add anonymous access support to the typescript-axios generator and fix schema naming for content refs. Endpoints that allow anonymous access no longer fail auth setup, and models use referenced component names for clearer, consistent output.

  • Bug Fixes
    • Security: Detect empty security requirements and set allowsAnonymous on operations, pass it through templates, and update auth helpers to gracefully skip auth when anonymous is allowed. Prevents errors on anonymously accessible endpoints.
    • Models: Prefer component schema names when a content schema uses $ref, avoiding operation-based names and reducing duplicate or confusing model names.

Written for commit e2fab1b. Summary will update on new commits.

…unctions (OpenAPITools#22751)

- Add allowsAnonymous field to CodegenOperation to track if endpoint allows anonymous access

- Update DefaultGenerator to detect empty SecurityRequirement (anonymous allowed)

- Pass allowsAnonymous flag through templates to authentication helper functions

- Update auth functions to accept allowsAnonymous parameter

- When allowsAnonymous is true, auth functions gracefully handle failures

Fixes OpenAPITools#22751
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@jackdevis jackdevis force-pushed the typescript-axios-needed-functions branch from 395808e to e2fab1b Compare January 21, 2026 15:36
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

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