Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs.go is generated as swagger 2.0 #1

Open
F1bonacc1 opened this issue Sep 26, 2024 · 0 comments
Open

docs.go is generated as swagger 2.0 #1

F1bonacc1 opened this issue Sep 26, 2024 · 0 comments

Comments

@F1bonacc1
Copy link

Hi,

Thanks for this project the swagger.yaml and swagger.json are generated as Open API 3.0.
However, the docs.go file looks like Swagger 2.0.

    "schemes": {{ marshal .Schemes }},
    "swagger": "2.0",
    "info": {
        "description": "{{escape .Description}}",
        "title": "{{.Title}}",
        "contact": {
            "name": "Eugene Berger",
            "url": "https://f1bonacc1.github.io/process-compose/"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        },
        "version": "{{.Version}}"
    },
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
....

Is this intentional?
I couldn't find a flag to convert it to OpanAPI 3.0.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant