Sign in | Sign up

Swagger errors

Tagged:

Currently contains 4 posts

Avatar

November 30, 2017 17:15

pierobot

I read the other thread regarding the Swagger doc, but it’s been over a year since then – and looks like the errors are still there.

Will this ever be fixed?
I’d like to generate a C# client using https://editor.swagger.io/ but all I get are a lot of errors.

Avatar

November 30, 2017 20:22

magdiel01

Hi,

Could you please provide more details regarding the errors messages you are getting? if want to attach screenshots or sample files you can send an e-mail to [api at nutritionix dot com].

Magdiel.

Avatar

December 01, 2017 00:26

pierobot

Sure thing.

Swagger validator output:
https://online.swagger.io/validator/debug?url=https://trackapi.nutritionix.com/docs/trackDocs.yaml

And here are the errors from swagger editor
https://pastebin.com/raw/M2NACZZP

I realize the above are not pretty to look at so you could also just open https://editor.swagger.io/ and import from url https://trackapi.nutritionix.com/docs/trackDocs.yaml

If you need any more information, I’d be more than glad to provide it.

(Hey, we have the same name! :) )

Avatar

December 01, 2017 15:53

magdiel01

Hey, glad to know we have the same name :)

We’ll review Swagger Doc code for future releases in order to identify and fix any existing warnings which blocks the Client Generator tool, meanwhile you can generate C# code snippets of the endpoints as needed by using Postman: https://www.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets

I hope this information helps. Please contact us again if you have any further questions.

Magdiel.

Reply to thread