swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

openapi.json is empty

Open michaelwangwangwang opened this issue 3 years ago • 8 comments

i want to generate openapi.json with swagger-maven-plugin,but i found the file is empty like this,so how can i resolve it? image image

michaelwangwangwang avatar Apr 26 '22 11:04 michaelwangwangwang

who can tell me?

michaelwangwangwang avatar Apr 28 '22 03:04 michaelwangwangwang

who can tell me?

michaelwangwangwang avatar Apr 28 '22 10:04 michaelwangwangwang

i use the annotations like this image

michaelwangwangwang avatar Apr 28 '22 11:04 michaelwangwangwang

is there anybody?

michaelwangwangwang avatar May 05 '22 02:05 michaelwangwangwang

The Swagger Maven plugin supports JAX-RS out of the box, for SpringBoot maybe you can look at SpringDoc Openapi Maven plugin

gcatanese avatar May 05 '22 19:05 gcatanese

it does not work,can it generate swagger 2.0 json?

michaelwangwangwang avatar May 06 '22 09:05 michaelwangwangwang

I'm facing the same issue, empty json file with only the openapi version on it. But I'm using the jakarta version of the plugin. Any updates on this?

leandrocotsa avatar Oct 09 '23 18:10 leandrocotsa

Okay, my problem was that I was using spring mvc annotations on my controllers but in order to use this plugin I have to be using jax-rs annotations

leandrocotsa avatar Oct 10 '23 21:10 leandrocotsa