lidofinance / lido-keys-api

Api for fetching node operators keys from modules
MIT License
18 stars 15 forks source link

fix: required field marks in Swagger annotations #266

Closed AlexanderLukin closed 5 months ago

AlexanderLukin commented 5 months ago

In the previous version required and nullable annotations in @ApiProperty decorators were not accurate. Required fields frequently had nullable declarations and vice versa. It created difficulties for maintainers of external services that use Keys API under the hood because it was not possible to understand all the details of Keys API endpoint interfaces by just looking at the Swagger.

Now all annotations are brought into compliance with actual endpoint interfaces that Keys API uses internally.