Skip to content

fix: hangling default int64 values for integer components of type int64#2287

Open
BorealFeast wants to merge 1 commit intoswagger-api:masterfrom
BorealFeast:master
Open

fix: hangling default int64 values for integer components of type int64#2287
BorealFeast wants to merge 1 commit intoswagger-api:masterfrom
BorealFeast:master

Conversation

@BorealFeast
Copy link

Pull Request

Thank you for contributing to swagger-parser!

Please fill out the following checklist to help us review your PR efficiently.


Description

Bug fix:
When deserializing a default value that is bigger than a int32, the value is returned as null.
This change allows to have default values up to int64 size when the type of the integer is specified as int64.

The change is mostly for the field default, but I took care to cover other fields that could accept int64 values (which were working fine) . See test for details.

Type of Change

  • [X ] 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • [ X] I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • [X ] The PR title is descriptive
  • [ X] The code builds and passes tests locally
  • I have linked related issues (if any)

Screenshots / Additional Context

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