-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Create RTK Query Code Generator for Open API Changelog #3798
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
Conversation
Create the initial changelog.
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 60a90d2:
|
## [1.1.3] - 10-11-2023 | ||
|
||
### Added | ||
- Support for Read Only Properties in the Open API spec. Previously, this property was ignored. | ||
Now if the readOnly property is present and set to `true` in a schema, it will split the type into two types: one with the read only property suffixed as 'Read' and the other without the read only properties, using the same type name as before. | ||
This may cause issues if you had your OpenAPI spec properly typed/configured, as it will remove the read onyl types from your existing type. You will need to switch to the new type suffixed as 'Read' to avoid missing property names. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a bit more of a change :)
Let me try to get it together:
1.1.0
- Adds the option of generating real TS enums instead of string unions Adds the option of generating real TS enums instead of string unions #2854
- Also ensures compatibility with TypeScript 5.x versions as the codegen relies on the TypeScript AST for code generation - as a result also needs a higher TypeScript version to work with (old version range was 4.1-4.5)
- Also changes depenendcy from a temporarily patched old version of
oazapfts
back to the current upstream version
1.1.1
- Codegen: better handling of duplicate param names (Codegen: better handling of duplicate param names #3780)
If a parameter name is both used in a query and a parameter, it will be prefixed withquery
/param
now to avoid conflicts
1.1.2
- Support OpenAPI readOnly/writeOnly properties (Support OpenAPI readOnly/writeOnly properties #3430)
1.1.3
- adds a temporary workaround for 4.9.0 and 4.10.0 generate circular types oazapfts/oazapfts#491
Missed these details while perusing the commits.
Added the details you provided, I missed the implications of those while reading the commit messages. |
Looking good, thanks a ton! 😊 |
Create the initial changelog.
Other changes are to be included in the future.