Giter VIP home page Giter VIP logo

Comments (18)

github-actions avatar github-actions commented on June 17, 2024

Welcome to AsyncAPI. Thanks a lot for reporting your first issue.

Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

@thomas-weinstein-bosch hi. Will check it

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

@thomas-weinstein-bosch hi. Yes, schema in asyncapi supports oneOf - https://www.asyncapi.com/docs/specifications/2.0.0#schemaObject.

Unfortunately I have released 1.0.0-eap without actualized schema. Will fix it in next release, which is planned before end of this week(31)

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

Hi,
ok, thank you very much!

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

@thomas-weinstein-bosch hi.

Can you build core part from https://github.com/Pakisan/java-asyncapi/tree/feat!/Schema_updation and check that everything works fine for you? If so, I will publish update

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

Hi, sure, I will check it asap.

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

I tried to verify it, but unfortunately the java/lombok/maven environment didn't work out well together with my kotlin/gradle environment. But looking at the properties, I think it should work fine.

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

@thomas-weinstein-bosch

I tried to verify it, but unfortunately the java/lombok/maven environment didn't work out well together with my kotlin/gradle environment. But looking at the properties, I think it should work fine.

With which problems you faced up?

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

Just issues when trying to use the sources in the project directly, like kotlin not using the generated lombok methods but trying to access the properties directly, or jackson not understanding lombok either. I will give it a try to set up the project separately, which is unfortunately always a pain behind our corporate proxy.

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

You can try to use delombok plugin. Looks like it's my failure to not test this case properly. Right now I'm writing kotlin demo to demonstrate usage of core/plugins. So I thing that I will faced with similar problems and will think how to fix it properly

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

When the lib is built and linked as a .jar it worked like a charm, which would be the usual way, so I think no error on your side =) I will give it a try to fix the setup behind our proxy this week, to provide a veririfaction.

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

it's everything ok?

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

Hi, so I finally managed to locally build the branch and import it in the project. There were still some unrelated issues (our corporate proxy, an issue with dokka under windows Kotlin/dokka#656 and the generation of the javadoc somehow threw malformed html errors (from the <br> nodes and the https link inside <>).
But the schema update itself definitely helped, all the unrecognized fields are now known and the jackson deserialization correctly parses all schemas. Unfortunately the oneOf list was empty, so some more configuration or a custom deserializer is needed.

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

Can you provide example of not working oneOf definition. Will check yours example too

from jasyncapi.

thomas-weinstein-bosch avatar thomas-weinstein-bosch commented on June 17, 2024

I'm sorry, after checking again, I found the correctly serialized oneOf properties, it was my fault. So with the feature branch with the updated schema our documentation works (basically the same structure like the example I linked in the first post). 👍

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

Will release new version with fix, on next week. After release I will notify you with mention in this issue and than will close issue

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

@thomas-weinstein-bosch 1.0.0-eap-1 was released.

You can download it from maven central and check it out here - https://search.maven.org/artifact/com.asyncapi/asyncapi-core/1.0.0-EAP-1/jar

from jasyncapi.

Pakisan avatar Pakisan commented on June 17, 2024

I'll close the issue. You are welcome to reopen it at any time in case of issues

from jasyncapi.

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.