Skip to content

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

@icueth

Description

@icueth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions