Skip to content

Conversation

nathanfallet
Copy link
Contributor

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:

simpleSchemaGenerator.generate(
    "TestClass",
    serializer<TestClass>(),
    descriptionOverrides = emptyMap(),
    excludedProperties = setOf("TestClass.someProperty")
)

Type of the change

  • New feature
  • Bug fix
  • Documentation fix

Checklist for all pull requests

  • The pull request has a description of the proposed change
  • I read the Contributing Guidelines before opening the pull request
  • The pull request uses develop as the base branch
  • Tests for the changes have been added
  • All new and existing tests passed
Additional steps for pull requests adding a new feature
  • An issue describing the proposed change exists
  • The pull request includes a link to the issue
  • The change was discussed and approved in the issue
  • Docs have been added / updated

@nathanfallet
Copy link
Contributor Author

Checks are all green (except qodana as usual since I don't have the token on my fork), it's ready for review!
I'd recommend @EugeneTheDev for the review since he worked on the refactor of all the schema generator, so he must know this part 😎

Copy link
Contributor

@EugeneTheDev EugeneTheDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks

@nathanfallet
Copy link
Contributor Author

Yeah 🥳
Can't wait for the merge and release. This was the last missing piece for our integration.

@kpavlov kpavlov merged commit e9cea43 into JetBrains:develop Sep 2, 2025
5 of 6 checks passed
Copy link
Collaborator

@kpavlov kpavlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @nathanfallet !

@nathanfallet nathanfallet deleted the feature/schema-exclude-properties-new-way branch September 2, 2025 09:40
karloti pushed a commit to karloti/koog that referenced this pull request Sep 2, 2025
…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
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

Successfully merging this pull request may close these issues.

JSON Schema: Exclude properties
3 participants