Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow set enum as json value (#4363) #4434

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Allow set enum as json value (#4363) #4434

wants to merge 1 commit into from

Conversation

aleks-f
Copy link
Member

@aleks-f aleks-f commented Feb 1, 2024

  • fix issue 1.12.4 version Json set enum value failed #4341 add testEnum
    if you set enum as json value then it will be cast to int

  • add behavior for enum into VarHolderImpl add tests for enum classes with different underline integral types

  • replace static_cast with convertTo* methods, they can check types and limits

  • fix missing types for convert methods

  • fix code style add testEnumType to the VarTest.cpp, extract() works

* fix issue #4341
add testEnum
if you set enum as json value then it will be cast to int

* add behavour for enum into VarHolderImpl
add tests for enum classes with differnent underline integral types

* replace static_cast with convertTo* methods, they can chaeck types and
limits

* fix missing types for convert methods

* fix code style
add testEnumType to the VarTest.cpp, extract() works
@matejk matejk deleted the branch main April 15, 2024 11:20
@matejk matejk closed this Apr 15, 2024
@matejk matejk reopened this Apr 22, 2024
@matejk matejk changed the base branch from devel to main April 22, 2024 06:58
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.

None yet

3 participants