hiero-ledger / hiero-ledger/hiero-consensus-node
Config API: Add @PortRange constraint annotation to config API
Open
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
Assessment
This issue has not been assessed yet.