Forum Discussion

josh14's avatar
josh14
Occasional Contributor
2 years ago

openapi.yaml valid in swagger editor, but won't show fields locally

I'm using jersey 3.0.3, io.swagger.core.v3 v 2.2.9, specifically the jakarta versions.  I have an application that is running. When I navigate chrome to my browser,  I'm able to download the openapi.yaml file that was generated from all my annotations.  When I put the yaml file into swagger editor, everything looks great, I'm able to see the button to upload a file.  However, when I try to use the api directly, there are no fields to input anything, it's only displaying json that I can manipulate.  Is this a known bug in the code?

  • Solved it, just uploaded to the swagger editor and worked through the bugs that popped up.

  • Adamjosh123's avatar
    Adamjosh123
    Occasional Visitor

    It seems like a known issue with some Swagger setups where file upload fields aren't properly displayed when using specific Jakarta versions. Ensure that the `@FormDataParam` or related annotations are correctly configured. For photo editor APK integration, you could reference file upload functionalities in the API to enable image editing features.

  • josh14's avatar
    josh14
    Occasional Contributor

    Solved it, just uploaded to the swagger editor and worked through the bugs that popped up.