Fix relative server URI generation
- The previous implementation was based on the Swagger-style approach
used in OpenAPI Specification 2.0.
In OpenAPI 2.0, a server is defined using:
host: 127.0.0.1:10300
basePath: /v2
The mustache file used the {{{scheme}}}://{{{host}}}{{{basePath}}}
construction accordingly with OpenAPI 2.0 syntax.
However, this approach is not compatible with OpenAPI 3.0 and
produces an incorrect output such as:
http://127.0.0.1http://127.0.0.1:20202/v2
- So I suggest to use more up to date variant:
{{#openAPI}}
{{#servers}}
{{url}}
{{/servers}}
{{/openAPI}}
- Also, we can add GENERATE_DOCUMENTATION to the openapi2.0.yaml for
generating documentation for OpenAPI 2.0.
Pick-to: 6.11
Change-Id: Ia9aa69f9d8f645100b7be87f830d2aff3b8c618f
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>