YAML is sensitive to indentation. >From what you shared it seems like a lot is misplaced or poorly indented.
The error actually tells you which keywords cannot exist under the root, hinting you what’s not indented properly. Another point – paths must begin with a ‘/’. From: <[email protected]> on behalf of Olympacs <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Saturday, September 16, 2017 at 03:04 To: Swagger <[email protected]> Subject: Re: Schema error I have just edited the entire code referring to the docs. I am still getting the errors. Errors Hide Schema error should NOT have additional properties additionalProperty: get, datasets/{opec}, -in, database_code, type, required, description, responses:10000, path, datasets/{opec}/{orb} Jump to line 0 Schema error at paths should be object Jump to line 0 On Friday, September 15, 2017 at 6:03:33 AM UTC-4, Ron wrote: Hello, The validation errors pretty much tell you what you’re doing wrong. Please follow the documentation to learn about the structure of an API definition and take it from there. https://swagger.io/docs/specification/2-0/basic-structure/ From: <[email protected]> on behalf of olympacs <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Thursday, September 14, 2017 at 22:21 To: Swagger <[email protected]> Subject: Re: Schema error I am attaching the code On Thursday, September 14, 2017 at 3:20:54 PM UTC-4, Olympacs wrote: I am working on an existing api. Once it loads it shows a set of errors. I googled online but found similar errors when creating api's from scratch when you require path parameters. Please advise. Errors Hide Schema error should NOT have additional properties additionalProperty: dataset Jump to line 0 Schema error should have required property 'info' missingProperty: info Jump to line 0 Schema error should have required property 'paths' missingProperty: paths Jump to line 0 -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
