-
Notifications
You must be signed in to change notification settings - Fork 199
Add support for excluding properties in JSON schema generation #638
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
Add support for excluding properties in JSON schema generation #638
Conversation
Checks are all green (except qodana as usual since I don't have the token on my fork), it's ready for review! |
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.
Looks good, thanks
Yeah 🥳 |
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.
Thank you, @nathanfallet !
…ains#638) Fixes JetBrains#377 Changes are the same as JetBrains#378, it's just the updated version after the refactor of JetBrains#443 Proposed changes: Add an `excludedProperties` parameter like this: ```kotlin simpleSchemaGenerator.generate( "TestClass", serializer<TestClass>(), descriptionOverrides = emptyMap(), excludedProperties = setOf("TestClass.someProperty") ) ``` --- #### Type of the change - [x] New feature - [ ] Bug fix - [ ] Documentation fix #### Checklist for all pull requests - [x] The pull request has a description of the proposed change - [x] I read the [Contributing Guidelines](https://github.com/JetBrains/koog/blob/main/CONTRIBUTING.md) before opening the pull request - [x] The pull request uses **`develop`** as the base branch - [x] Tests for the changes have been added - [x] All new and existing tests passed ##### Additional steps for pull requests adding a new feature - [x] An issue describing the proposed change exists - [x] The pull request includes a link to the issue - [ ] The change was discussed and approved in the issue - [ ] Docs have been added / updated
Fixes #377
Changes are the same as #378, it's just the updated version after the refactor of #443
Proposed changes:
Add an
excludedProperties
parameter like this:Type of the change
Checklist for all pull requests
develop
as the base branchAdditional steps for pull requests adding a new feature