springdoc / springdoc-openapi-maven-plugin

Library for OpenAPI 3 with spring-boot
https://springdoc.org
Apache License 2.0
141 stars 37 forks source link

Can we remove servers path in generated file? #26

Closed poteii closed 2 years ago

poteii commented 3 years ago

Can we remove some line like servers when using springdoc-openapi-maven-plugin?

actual

{ "openapi" : "3.0.1", "info" : { "title" : "Test REST APIs", "description" : "API }, "servers" : [ { "url" : "http://localhost:64994", "description" : "Generated server url" } ], "tags" : ...., "paths" : ... }

expect

{ "openapi" : "3.0.1", "info" : { "title" : "Test REST APIs", "description" : "API }, "tags" : ...., "paths" : ... }

bnasslahsen commented 2 years ago

use OpenApiCustomizer