Skip to content

Flatten stopped processing nested directories in v0.26.0 #2743

@nikitakalyanov

Description

@nikitakalyanov

Problem statement

A certain structure of directories and files worked before v0.26.0 and stopped working after this version. It also does not work with the latest version either.

Swagger specification

https://github.com/nikitakalyanov/go-swagger-test

Steps to reproduce

https://github.com/nikitakalyanov/go-swagger-test

Environment

swagger version: 0.26.0
go version: 1.15.6
OS: Docker image

From the error message it seems that relative paths are now resolved differently. Could we document it somewhere then?
The workaround for now is to flatten the structure manually - i.e. remove the 'paths/' directory and put the mypath1.yml and mypath2.yml files at the root level.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions