Apicurio-studio: Store examples as strings only for types not representable in JSON/YAML

Created on 1 Mar 2019  路  7Comments  路  Source: Apicurio/apicurio-studio

A regression was introduced while fixing this issue: https://github.com/Apicurio/apicurio-studio/issues/399 causing examples to always be stored as strings.

Instead, examples should only be stored as strings when they cannot be represented in JSON/YAML.

Relevant OpenAPI specification: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#exampleObject

bug

All 7 comments

I'm encountering this issue too

I'm trying to create a json example

image

But it's getting stored as a string

image

And the finished result is quoted without syntax highlighting

image

If I manually edit the json and paste my object in it

image

The end result is as expected

image

Sorry to be a bother, but is there any news concerning this issue?
Right now it's the only one that makes it difficult to use

No bother at all - the more noise that an issue receives in the community, the more likely it is to be prioritized. :) I was out on vacation last week, but am back now and ready to squash some bugs. I'll see if I can carve out some time today for this.

This will be fixed in the next release of Apicurio (which should be done today or tomorrow). I'm very interested to see if the changes work well for you, so if it's possible to provide some feedback here once you've had a chance to try it that'd be awesome!

With pleasure

Seems to work perfectly for me, thanks @EricWittmann for creating the best free OpenAPI editor out there!

Great thanks for the feedback. FYI, watch out for this bug (a use-case I missed when addressing #671):

https://github.com/Apicurio/apicurio-studio/issues/693

Sorry for the delay

It's working great on my end too

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ceefour picture ceefour  路  5Comments

bodograumann picture bodograumann  路  3Comments

daida00 picture daida00  路  3Comments

turutosiya picture turutosiya  路  5Comments

bpeterm picture bpeterm  路  6Comments