hiero-ledger / hiero-ledger/hiero-consensus-node

Config API: Add @PortRange constraint annotation to config API

Open
#5,384 1 comment 0 reactions 1 assignee Claimed by @hendrikebbers View on GitHub
Base Config Platform
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

We often need to configure ports. Today you can define constraints in a `ConfigData` record to have a number within the valid part range like this:

```
@Min(0) @Max(65535) int externalPort
```

It would be cool if we can just do:

```
@PortRange int externalPort
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.