Describe the bug
In generated files Jetbrains Goland Code Analyzer detects warnings:
in JSON file:
Warning: Missing required property 'version'
in this block:
"info": {
"title": "api",
"contact": {}
},
in YAML file:
Warning: Schema validation: Missing required property 'version'
in this block:
info:
contact: {}
title: api
To Reproduce
Steps to reproduce the behavior:
- Generate JSON/YAML files via swag
- In Goland open Problems tab, then Code Analysis
- See warnings list
Expected behavior
No warnings
Your swag version
v1.16.4
Your go version
go1.25
Desktop (please complete the following information):