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
In Modelina for TypeScript, you can make it generate the models generate functions that return a basic instance example, this should be possible through the CLI.
To do this I suggest we add a flag called tsExampleInstance as a boolean. If true the generator should include the following options:
Hey @jonaslagoni , I was working on this issue and I have almost completed it but when I added the test script for the functionality it gives an error
for every toEqual it is giving this error what should I do? Earlier it used to work fine.
Reason/Context
In Modelina for TypeScript, you can make it generate the models generate functions that return a basic instance example, this should be possible through the CLI.
To do this I suggest we add a flag called
tsExampleInstance
as a boolean. If true the generator should include the following options:Which should be added here:
cli/src/commands/generate/models.ts
Line 118 in 438de07
These will be the generated results: https://github.com/asyncapi/modelina/blob/master/examples/typescript-generate-example/__snapshots__/index.spec.ts.snap
Remember to also add a test here:
cli/test/commands/generate/models.test.ts
Line 39 in 438de07
Related documentation: https://github.com/asyncapi/modelina/blob/master/docs/languages/TypeScript.md#generate-example-data-function
Feel free to reach out if you have any questions or get stuck!
The text was updated successfully, but these errors were encountered: