Skip to content

Added exclude API to DotPathQL, improved design with better SoC#2

Merged
petruki merged 1 commit intomasterfrom
staging
Aug 9, 2025
Merged

Added exclude API to DotPathQL, improved design with better SoC#2
petruki merged 1 commit intomasterfrom
staging

Conversation

@petruki
Copy link
Member

@petruki petruki commented Aug 9, 2025

This pull request introduces a new property exclusion feature to the DotPathQL library, allowing users to exclude specific properties from object extraction. The changes include updates to the documentation, enhancements to the main DotPathQL class, and the addition of supporting classes for exclusion logic. The overall API is now more flexible, supporting both selective inclusion and exclusion of properties.

New Exclusion Feature and API Enhancements:

  • Added support for property exclusion, allowing users to specify fields to omit from extraction using the new exclude method in DotPathQL.

Documentation Updates:

  • Updated the README.md to document the new exclusion feature, including usage examples for both filtering and exclusion, and real-world scenarios such as data privacy and API response customization. [1] [2] [3]

Codebase Refactoring and Simplification:

  • Refactored DotPathQL to delegate filtering and exclusion logic to dedicated classes (PathFilter and PathExclude), removing complex path expansion and property access code from the main class. [1] [2]
  • Simplified imports in DotPathQL.java to only include necessary classes.

@petruki petruki self-assigned this Aug 9, 2025
@petruki petruki merged commit bbadb9f into master Aug 9, 2025
4 checks passed
@petruki petruki deleted the staging branch August 9, 2025 06:14
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.

1 participant