Skip to content

Conversation

dev-geddy
Copy link

No description provided.

Copy link

changeset-bot bot commented Aug 26, 2025

🦋 Changeset detected

Latest commit: ccb4fad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@smorimoto
Copy link
Collaborator

bugbot run

// Handle single type
if (typeof typeSchema === "string") {
return {
...(typeof this.schema === "object" ? this.schema : {}),
Copy link

Choose a reason for hiding this comment

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

Bug: Array Spread Error in Schema Parsing

The typeof this.schema === "object" check in JsonLdTypeSchemaParser, JsonLdEntitySchemaParser, and JsonLdContextSchemaParser incorrectly spreads arrays into the returned object. Since arrays are also typeof "object", this results in numeric keys being added, potentially leading to malformed schema representations.

Additional Locations (5)

Fix in Cursor Fix in Web

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.

2 participants