Comments (7)
Hi @mkmishra89 can you share a code example with us of how you are attempting to read this? Please remember to use the bug template so that we can help you faster.
from amf.
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.
Hi Team,
Gentle Reminder !!
Thanks,
Mukesh Mishra
from amf.
Hi Team,
Gentle Reminder !!
Thanks,
Mukesh Mishra
from amf.
Hi Team,
Gentle Reminder !!
Thanks,
Mukesh Mishra
from amf.
Could you please look above issue. We are blocked due this.
Thanks,
Mukesh Mishra
from amf.
Duplicate of #1848. Closing
from amf.
Related Issues (20)
- How to distinguish NilShape and AnyShape? HOT 2
- Recursive union type silently breaks union structure HOT 6
- Cannot compute inheritance from union when specializing a union property with the `type` keyword HOT 2
- Windows version keeps using relative paths when parser accepts absolute path HOT 2
- Recursive shapes and manual traverse on raw model HOT 3
- Recursive object property HOT 2
- Using functionConstraint in validations HOT 3
- Using an Array in a custom extension HOT 4
- Trying to parse async specification file through java HOT 2
- Please provide the link for AMF playground HOT 4
- Not Able to read description for asyncApi HOT 9
- Not able to find readable object for Channels,Components and payloads HOT 1
- Conversion of payload removes required array HOT 1
- inconsistency for validate spec || When using the playground for testing, the file appears valid but, when using the validate method, it appears invalid. HOT 3
- draft
- Parsing support for OAS 3.1
- RAML file references are not resolved on Windows
- Annotations are not validated for types in referenced files
- RAML Extension causes object arrays within resource type examples to contain duplicate members
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amf.