-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloading / Publishing YAML removes quotes from strings #1447
Comments
Thanks for the bug report. I'll have to dig into this one to see what options we have in our YAML library... |
Hi, any news or workaround on this? I uploaded a YAML using the Java client but the removal of quotes and braces makes the documentation tab not able to render(and the artifact useless). |
Can you confirm which project this actually impacts? From your most recent comment it sounds like this is a problem with Registry? You mention a Documentation tab, which suggests Registry rather than Studio. |
Yes sorry, I was referring to the Registry
El mar., 20 abr. 2021 18:51, Eric Wittmann ***@***.***>
escribió:
… Can you confirm which project this actually impacts? From your most recent
comment it sounds like this is a problem with Registry? You mention a
Documentation tab, which suggests Registry rather than Studio.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/Apicurio/apicurio-studio/issues/1005#issuecomment-823441217>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHHKILZJ5243ZLDTU4JMDDTJWWI7ANCNFSM4J6OKAWQ>
.
|
OK no worries. I'm going to transfer this issue over to the Registry GitHub repository for tracking there. |
@carlesarnal can you have a look at this? |
Hi @teksuo, first of all, which version of the Registry are you using? We recently released |
Hi @carlesarnal , I am using the 1.3.2.Final, as it is the latest available in maven central: https://mvnrepository.com/artifact/io.apicurio/apicurio-registry-rest-client |
Hi @carlesarnal , I have switched the client version and updated the server, also set the new endpoint to ".../apis/registry/v2" as stated in the updated sample (although the docs seems to be still outdated). Current client code would be as simple as:
where The nice part is that now I can download exactly the same file I am uploading, although the rendering of the "documentation" tab still returns a blank page (which I can definitely live with). Thanks a lot |
Hi @teksuo, glad you fixed that problem with the client, since we have a persistent problem with the documentation tab, let's close this and open a new issue to track the progress for that. Could you please create it and describe the situation there? Thanks! |
When downloading or publishing an project api specification, we're seeing previously quoted values being outputted without quotes.
This is in turn leading to a bug with the fields being incorrectly rendered in tooling such as redoc — which typically converts the YAML into a JSON object
A repeatable example can be seen over at https://onlineyamltools.com/convert-yaml-to-json using the following example payloads...
Quoted Date String
— delivery_date results in displaying as "2016-07-26"
Unquoted Date String
— delivery_date results in displaying as "2016-07-26T00:00:00.000Z"
The text was updated successfully, but these errors were encountered: