unable to add servers object in Swagger editor

12 views
Skip to first unread message

Craig Menard

unread,
Apr 17, 2018, 11:52:38 AM4/17/18
to Swagger
Hi Everyone,

I tried searching for this already, but gave up after so many hits, so apologies is this is already answered. I'm working in the new online Swagger editor https://editor.swagger.io/ and I can't seem to be able to add a servers object though it is clearly defined in the spec.

I keep getting the following error:

Schema error 

should NOT have additional properties

additionalProperty: servers

Jump to line 0



Does anyone know how to use this feature in the editor? It's something my team would like to take advantage of.


Thanks for your help.

Craig Menard

unread,
Apr 17, 2018, 1:14:26 PM4/17/18
to Swagger
Got it. I didn't have openapi: '3.0.0' at the top of my spec.

Thanks!
Reply all
Reply to author
Forward
0 new messages