Skip to content
New issue

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

Failed to generate types when schemas are not in a reticular structure #306

Open
C-ra-ZY opened this issue Sep 2, 2024 · 0 comments
Open

Comments

@C-ra-ZY
Copy link
Contributor

C-ra-ZY commented Sep 2, 2024

Describe the bug
If there are no $ref in schemas, current code would skip the procedure of generating types, whereas the other outputs are normal, like schemas and endpoint.
Although is not a common demand, spliting types info into a single file would take effect on decoupling and customization.

Minimal reproduction
please see this page

Expected behavior
the output should contain types information anyway like:

type DemoInformation = {
  issuedTo: string;
  token: string;
  expirationDate: string;
  group: string;
  identityId: string;
};

Additional context
I have drafted fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant