We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When generating a model with this stucture:
Context: title: ApiContextVq additionalProperties: true
the instanceOf... and ...toJSON and FromJSONTyped is not implemented instead of anymap... errormap... it just writes the type
if (instanceOf{ [key: string]: any; }(value)) {
openapi-generator7.10.0
not quite sure what the to json function actually does in javascript.
this is more of an example what the generated code might look like.
function anyHashMapToJSON(value: { [key: string]: any }) { return value; } function instanceOfAnyHashMap(value: ApiResponseV1Context) { return true; } function instanceOfErrorHashMap(value: ApiResponseV1Context) { return value.every( (item: any) => typeof item === "object" && Object.keys(item).every((key) => key === "index" || key === "errors") && (item.index === undefined || typeof item.index === "number") && (item.errors === undefined || (Array.isArray(item.errors) && item.errors.every((err: any) => typeof err === "string"))), ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Description
When generating a model with this stucture:
the instanceOf... and ...toJSON and FromJSONTyped is not implemented instead of anymap... errormap... it just writes the type
openapi-generator version
openapi-generator7.10.0
Suggest a fix
not quite sure what the to json function actually does in javascript.
this is more of an example what the generated code might look like.
The text was updated successfully, but these errors were encountered: