Giter Club home page Giter Club logo

Comments (11)

EricWittmann avatar EricWittmann commented on June 7, 2024 1

OK no worries. I'm going to transfer this issue over to the Registry GitHub repository for tracking there.

from apicurio-registry.

EricWittmann avatar EricWittmann commented on June 7, 2024 1

@carlesarnal can you have a look at this?

from apicurio-registry.

EricWittmann avatar EricWittmann commented on June 7, 2024

Thanks for the bug report. I'll have to dig into this one to see what options we have in our YAML library...

from apicurio-registry.

teksuo avatar teksuo commented on June 7, 2024

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).
Edit: Basically, if I upload it using the UI, I am able to download it as an InputStream and then convert it to YAML without an issue, what seems broken is the upload.
Thanks in advance

from apicurio-registry.

EricWittmann avatar EricWittmann commented on June 7, 2024

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.

from apicurio-registry.

teksuo avatar teksuo commented on June 7, 2024

from apicurio-registry.

carlesarnal avatar carlesarnal commented on June 7, 2024

Hi @teksuo, first of all, which version of the Registry are you using? We recently released 2.0.0.Final with several changes to the rest client.

from apicurio-registry.

teksuo avatar teksuo commented on June 7, 2024

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

from apicurio-registry.

carlesarnal avatar carlesarnal commented on June 7, 2024

Hi @teksuo, take a look at this. The rest-client has been fully replaced by a new version using the JDK HTTP client. Could you give it a try?

Thanks!

from apicurio-registry.

teksuo avatar teksuo commented on June 7, 2024

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:

var client = RegistryClientFactory.create("http://<server_url>/apis/registry/v2); client.createArtifact(GROUP_ID, API_NAME, ArtifactType.OPENAPI, IfExists.RETURN, schema);

where schema is a validated InputStream from my yaml file.

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

from apicurio-registry.

carlesarnal avatar carlesarnal commented on June 7, 2024

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!

from apicurio-registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.