WARNING: definition is not used anywhere if a definition is used in composition using allOf. #2304
Labels
discriminator
Related to polymorphic types
enhancement
validate spec
Related to github.com/go-openapi/validate
Problem statement
swagger validate returns
WARNING: definition [...] is not used anywhere
if a definition is used in composition usingallOf
.Is this the expected behaviour?
We are getting more strict against warnings in our CI and as far as I understood this is the right way to do things. But then why there is this warning?
Swagger specification
Steps to reproduce
Run
swagger validate
on a file containing the specs above.It gives two warnings:
Environment
swagger version: v0.23.0
go version: go1.12.17 darwin/amd64
OS: MacOS 10.15.4
The text was updated successfully, but these errors were encountered: