swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
208 stars 85 forks source link

attribute definitions.Dummy.externalDocs is unexpected #97

Open maechler opened 7 years ago

maechler commented 7 years ago

The online validator is throwing an error on the attribute externalDocs on an entity definition, although it is explicitly allowed by the spec: http://swagger.io/specification/#schemaObject

I have an online example to show that issue: http://www.bit9.ch/apiplatform.json

http://online.swagger.io/validator/debug?url=http://www.bit9.ch/apiplatform.json

{
  "messages": [
    "attribute definitions.Dummy.externalDocs is unexpected",
    "attribute definitions.Dummy_be35824b9d92d1dfc6f78fe086649b8f.externalDocs is unexpected"
  ]
}

I also tested it with the release 1.0.4 locally, having the same result.

brendo commented 7 years ago

I have also encountered this issue. The same schema subsequently passed the swagger-tools validator CLI though.