cancel
Showing results for 
Search instead for 
Did you mean: 

What happened to my API

SOLVED
Highlighted
Occasional Contributor

What happened to my API

I wrote an API in pure YAML format but this seems to have been altered overnight. Quotes have been added around the attribute values, slashes have been added to multi-line descriptions and the object description field has moved to the last attribute of the object (rather than the first where I had it).

 

The last saved time still showed as when I saved it the previous day but the API definition looks vastly different. IS there some background processing that Swagger-Hub does we should be aware of?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

Re: What happened to my API

Hi,

When we parse the definitions on the back-end, the formatting of the YAML does indeed get reformatted to use quotes and multi-line text strings.  But this should only happen when exporting the data from the back-end when pushing to github, etc.  It shouldn’t affect the editor.

 

Can you share the full path to the definition so we can look at the events that could have triggered this?

Tony

-----
Tony Tam
SmartBear VP of Swagger Products

View solution in original post

2 REPLIES 2
Highlighted
Staff

Re: What happened to my API

Hi,

When we parse the definitions on the back-end, the formatting of the YAML does indeed get reformatted to use quotes and multi-line text strings.  But this should only happen when exporting the data from the back-end when pushing to github, etc.  It shouldn’t affect the editor.

 

Can you share the full path to the definition so we can look at the events that could have triggered this?

Tony

-----
Tony Tam
SmartBear VP of Swagger Products

View solution in original post

Highlighted
Occasional Contributor

Re: What happened to my API

I've discussed this with Tony outside of the community posts and the re-formatting happens when the API is published, in my case published to Azure API management.

 

This behavior is going to change with the next, imminent, release.

 

Closing the thread

New Here?
Join us and watch the welcome video:
Announcements