-
-
Notifications
You must be signed in to change notification settings - Fork 528
Feature clarification request: multiple schemas #1497
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
Comments
Ah if you’re looking to bundle schemas, then you should use the Redocly CLI bundle command. That needs to be run before openapi-typescript. I’d welcome an addition to the docs that clarifies this (perhaps something like a tip added):
Feel free to adjust the wording 🙂 |
On the same topic what if we have:
Is it possible to make it work? I don't see an example of this use case in the docs. |
@drwpow Thanks for your response. In particular your call out that Current
Updated
Does this make sense to you, or am I still confused on how this is meant to work? |
@melissag yes! Apologies for not even noticing the typo in the docs. Yes that’s confusing, and your proposal is exactly how it should work. Would welcome a PR if you have time! |
Done, thanks for the guidance! Let me know if I goofed on anything in the PR process, not super familiar. |
This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem. |
Hoping to clarify the documentation at https://openapi-ts.pages.dev/cli#multiple-schemas; the example provided in the section specifies the output for both apis to be
./openapi/openapi.ts
, which implies to me that both api schemas would be merged into a single file. However, when I try this with my own api schemas, the output file is overwritten by each subsequent api declaration - the api which is alphabetically last will "win" the output file. Is this the expected behavior? If so, should the documentation be corrected to have distinct output paths?The text was updated successfully, but these errors were encountered: