Skip to content

chore(v3/api): Replace arbitrary string types for operator.anonymity, operator.popularity and operator.protocols with proper DTOs#5

Merged
metabrixkt merged 1 commit intomainfrom
chore/types-for-anonymity-popularity-and-protocols
Feb 19, 2026
Merged

chore(v3/api): Replace arbitrary string types for operator.anonymity, operator.popularity and operator.protocols with proper DTOs#5
metabrixkt merged 1 commit intomainfrom
chore/types-for-anonymity-popularity-and-protocols

Conversation

@metabrixkt
Copy link
Copy Markdown
Member

No description provided.

…`, `operator.popularity` and `operator.protocols` with proper DTOs
@metabrixkt metabrixkt requested a review from Copilot February 19, 2026 19:28
@metabrixkt metabrixkt self-assigned this Feb 19, 2026
@metabrixkt metabrixkt added the enhancement New feature or request label Feb 19, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the v3 API response DTOs to replace previously “arbitrary string” fields on Operator (anonymity, popularity, protocols) with stronger, dedicated types to improve type-safety and consistency of serialization/deserialization.

Changes:

  • Introduced OperatorRating enum for operator.anonymity and operator.popularity.
  • Introduced OperatorProtocol DTO for operator.protocols (with caching + codec).
  • Updated Operator fields and its CODEC to use the new DTO types instead of String.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
v3/api/src/main/kotlin/ru/epserv/proxycheck/v3/api/model/response/OperatorRating.kt Adds OperatorRating enum + CODEC for rating fields.
v3/api/src/main/kotlin/ru/epserv/proxycheck/v3/api/model/response/OperatorProtocol.kt Adds OperatorProtocol DTO + CODEC and known protocol constants.
v3/api/src/main/kotlin/ru/epserv/proxycheck/v3/api/model/response/Operator.kt Switches operator fields + codec wiring to the new types.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@metabrixkt metabrixkt force-pushed the chore/types-for-anonymity-popularity-and-protocols branch from 4a45ee1 to e592bd3 Compare February 19, 2026 19:37
@metabrixkt metabrixkt merged commit 17d86a1 into main Feb 19, 2026
1 check passed
@metabrixkt metabrixkt deleted the chore/types-for-anonymity-popularity-and-protocols branch February 19, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants