If you have a NSwag file which uses variables and requires some legacy transformation, an exception occurs. I think the reason for that is, because if some transformation is necessary, it tries to parse (https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Commands/NSwagDocumentBase.cs#L179) the JSON file without substituting the variables. This is a problem if one substituted property is not of type string. For example, boolean or if you want to make the runtime configurable.
If you have a NSwag file which uses variables and requires some legacy transformation, an exception occurs. I think the reason for that is, because if some transformation is necessary, it tries to parse (https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Commands/NSwagDocumentBase.cs#L179) the JSON file without substituting the variables. This is a problem if one substituted property is not of type string. For example, boolean or if you want to make the runtime configurable.
The following example leads to errors: