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

Yaml files are still published as json files #23

Closed maddingo closed 3 years ago

maddingo commented 3 years ago

Even if I modify the apiDocsUrl to http://localhost:8080/v3/api-docs.yaml and the outputFileName to openapi.yaml. The artifact is still attached as a json file

bnasslahsen commented 3 years ago

@maddingo,

please see the answer here https://github.com/springdoc/springdoc-openapi-maven-plugin/issues/12 If you believe you are facing an issue, please make sure you provide a Minimal, Reproducible Example - with HelloController that reproduces the problem

maddingo commented 3 years ago

@bnasslahsen I understand the settings. Please have a lookat the example in https://github.com/maddingo/minimal-spring-boot

The README.md explains what I mean.

bnasslahsen commented 3 years ago

Thank you for your contribution @maddingo. I have merged your PR and made some changes:

You can test with the latest SNAPSHOT, and if you find it OK for your case, we can release it very soon.

maddingo commented 3 years ago

Thanks @bnasslahsen, it works now as expected.I appreciate thatyou want to release a new version soon.

bnasslahsen commented 3 years ago

@maddingo,

Version 1.3 is now available on maven central.