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
The quicktype documentation seems to indicate that it is an appropriate tool for generating code for commercial purposes, and I recall seeing somewhere that generated code is not considered derivative work (similarly to how the output of a compiler isn't considered derivative of the compiler). However, when generating C++ code with quicktype there are generally helper functions and/or classes generated alongside the "converted" data structures. Here's an example:
inlinevoidCheckConstraint(const std::string& name, const ClassMemberConstraints& c, int64_t value)
{
if (c.getMinIntValue() != boost::none && value < *c.getMinIntValue())
{
throwValueTooLowException("Value too low for " + name + " (" + std::to_string(value) + "<" +
std::to_string(*c.getMinIntValue()) + ")");
}
if (c.getMaxIntValue() != boost::none && value > *c.getMaxIntValue())
{
throwValueTooHighException("Value too high for " + name + " (" + std::to_string(value) + ">" +
std::to_string(*c.getMaxIntValue()) + ")");
}
}
Crucially, these helper functions do not appear to be dependent on the input data at all, except to determine which subset of the entire helper "suite" is included.
Would you please add clarifying language somewhere to indicate whether these helper functions are considered derivative work of quicktype itself?
The text was updated successfully, but these errors were encountered:
RespiteSage
changed the title
Licensing Generated C++ with "Helper" Code
License for Generated C++ with "Helper" Code
Jan 31, 2024
The quicktype documentation seems to indicate that it is an appropriate tool for generating code for commercial purposes, and I recall seeing somewhere that generated code is not considered derivative work (similarly to how the output of a compiler isn't considered derivative of the compiler). However, when generating C++ code with quicktype there are generally helper functions and/or classes generated alongside the "converted" data structures. Here's an example:
Crucially, these helper functions do not appear to be dependent on the input data at all, except to determine which subset of the entire helper "suite" is included.
Would you please add clarifying language somewhere to indicate whether these helper functions are considered derivative work of quicktype itself?
The text was updated successfully, but these errors were encountered: