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

[BUG] Unable to render this definition (production) #232

Open
icueth opened this issue Nov 8, 2022 · 2 comments
Open

[BUG] Unable to render this definition (production) #232

icueth opened this issue Nov 8, 2022 · 2 comments

Comments

@icueth
Copy link

icueth commented Nov 8, 2022

Lunch localhost is no problem
but
on production
Unable to render this definition
The provided definition does not specify a valid version field.

Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).

Screen Shot 2022-11-08 at 17 00 59

config:
const options = {
info: {
version: '1.0.0',
title: 'My Docs',
description: 'API (Staging)',
},
servers: [
{
"url": siteUrl + '/dev/app1/',
"description": "(App1)"
},
{
"url": siteUrl + '/dev/app2/',
"description": "(App2)"
},
],
baseDir: __dirname,
filesPattern: './**/*.js',
swaggerUIPath: '/api/docs',
}

how to fixed?

Thaks,
iCue

@orhanayd
Copy link

I have same problem.

@Ashwith-Madikonda
Copy link

Even i have same issue.

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

3 participants