You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue with quicktype output in C++. Maybe the effect also occurs in other output languages.
Context (Environment, Version, Language)
Input Format: JSON schema, draft-07
Output Language: C++
app.quicktype.io
Version: current
Description
I defined integer properties and expected, that they are checked properly within the generated C++ class. The generated ClassMemberConstraint class allows checking of minimum values for integer. However, it seems that they are not used!
Input Data
This is a little JSON schema showcasing the problem:
Issue Type
This is an issue with quicktype output in C++. Maybe the effect also occurs in other output languages.
Context (Environment, Version, Language)
Input Format: JSON schema, draft-07
Output Language: C++
app.quicktype.io
Version: current
Description
I defined integer properties and expected, that they are checked properly within the generated C++ class. The generated
ClassMemberConstraint
class allows checking of minimum values for integer. However, it seems that they are not used!Input Data
This is a little JSON schema showcasing the problem:
Expected Behaviour / Output
This is what I expected to be generated. Note the content of the first 2 parameters of each
_constraint
constructor call.Current Behaviour / Output
This is what I get: The maximum is correctly placed in the code. However the minimum is always absent!
Steps to Reproduce
Possible Solution
Correctly insert the constraint value in the call of the constraint constructor.
The text was updated successfully, but these errors were encountered: