Skip to content

Added deep copy to update reflect metadata defensively#19

Merged
AmishFaldu merged 1 commit intomasterfrom
fix/swagger-schema
Jan 9, 2023
Merged

Added deep copy to update reflect metadata defensively#19
AmishFaldu merged 1 commit intomasterfrom
fix/swagger-schema

Conversation

@AmishFaldu
Copy link
Copy Markdown
Owner

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message and branch names follows our guidelines: Contributing guidelines
  • Tests for the changes have been done (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes)
  • Docs improved or updated (no changes in code)
  • Other... Please describe:

What is the current behavior?

Currently when a child DTO class is extending from base DTO class, the properties of child schema are also assigned to base schema
Reference issue link - microsoft/reflect-metadata#62, microsoft/reflect-metadata#53

What is the new behavior?

Now with the fix of deep copy, the base class doesn't have properties of child class when inheriting.

Does this PR introduce a breaking change?

  • Yes
  • No

@AmishFaldu AmishFaldu added the bug Something isn't working label Jan 9, 2023
@AmishFaldu AmishFaldu self-assigned this Jan 9, 2023
@AmishFaldu AmishFaldu merged commit 0c48847 into master Jan 9, 2023
@AmishFaldu AmishFaldu deleted the fix/swagger-schema branch January 9, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant