You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The automatically generated openapi specification file for Hangars API contains an error for the Platform type.
It is defined the following way:
Platform:
maxLength: 3minLength: 1type: stringdescription: Server platformexample: PAPERenum:
- PAPER
- WATERFALL
- VELOCITY
The problem here are: maxLength and minLength.
These two properties simply do not belong here.
It also makes it impossible to use the download endpoint (/api/v1/projects/{slug}/versions/{name}/{platform}/download) using the ui for the api-docs (https://hangar.papermc.io/api-docs#/Versions/downloadVersion).
See the attached screenshot:
Expected behavior
I should be able to choose all 3 platforms (PAPER, WATERFALL or VELOCITY) on the UI and don't get an error.
The properties maxLength and minLength for Platform should not be in the generated open api specification file.
Observed/problematic behavior
The automatically generated openapi specification file for Hangars API contains an error for the Platform type.
It is defined the following way:
The problem here are:
maxLength
andminLength
.These two properties simply do not belong here.
It also makes it impossible to use the download endpoint (/api/v1/projects/{slug}/versions/{name}/{platform}/download) using the ui for the api-docs (https://hangar.papermc.io/api-docs#/Versions/downloadVersion).
See the attached screenshot:
Expected behavior
I should be able to choose all 3 platforms (PAPER, WATERFALL or VELOCITY) on the UI and don't get an error.
The properties
maxLength
andminLength
forPlatform
should not be in the generated open api specification file.Steps to reproduce
Other
No response
The text was updated successfully, but these errors were encountered: