Coder Social home page Coder Social logo

Comments (9)

mkmishra89 avatar mkmishra89 commented on July 18, 2024

Hi Team,

Gentle Reminder !!

Thanks,
Mukesh Kumar Mishra

from amf.

mkmishra89 avatar mkmishra89 commented on July 18, 2024

Hi @arielmirra

Could you please look above request, it is blocker for us.

from amf.

tomsfernandez avatar tomsfernandez commented on July 18, 2024

Hi @mkmishra89 can you share us a code block of how you are accessing the field please ? Please use the issue template as that helps us help you faster.

from amf.

mkmishra89 avatar mkmishra89 commented on July 18, 2024

Hi Tomas,

this is how we are using to parse the file.

final AMFBaseUnitClient asynchclient = AsyncAPIConfiguration.Async20().baseUnitClient();
final BaseUnit asynchUnresolvedModel =
asynchclient.parse("file://src/test/resources/testSchemas/reqRes/Test.json").get().baseUnit();
final BaseUnit asynchResolvedModel = asynchclient.transform(asynchUnresolvedModel).baseUnit();
final Document asynchDocument = (Document) asynchResolvedModel;
AsyncApi encodes = (AsyncApi) asynchDocument.encodes();
encodes.endPoints().forEach(endPoint -> {
endPoint.operations().forEach(operation -> {
System.out.println(operation.method().value());

});

});

And another one also we tried:

final AMFBaseUnitClient client = APIConfiguration.API().baseUnitClient();
final AMFParseResult parseResult = client.parseContent("src/test/resources/testSchemas/reqRes/OP_ALLERGENEVENTS.json").get();
final BaseUnit model = parseResult.baseUnit();
final DomainElement asyncApi = ((Document) model).encodes();

from amf.

mkmishra89 avatar mkmishra89 commented on July 18, 2024

Hi Team,

Gentle Reminder !!

Thanks,
Mukesh Mishra

from amf.

mkmishra89 avatar mkmishra89 commented on July 18, 2024

Hi Team,

Gentle Reminder !!

Thanks,
Mukesh Mishra

from amf.

mkmishra89 avatar mkmishra89 commented on July 18, 2024

Hi Team,

Gentle Reminder !!

Thanks,
Mukesh Mishra

from amf.

mkmishra89 avatar mkmishra89 commented on July 18, 2024

@tomsfernandez ,

Could you please look above issue. We are blocked due this.

Thanks,
Mukesh Mishra

from amf.

tomsfernandez avatar tomsfernandez commented on July 18, 2024

Hi @mkmishra89, accessing encodes.description returns the description. I checked it with your code. I'm closing this issue.

from amf.

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.