Comments (3)
Hi @deiteris
unless it applies on some transformation stage
That is exactly what we do.
If you are using the raw model not only you won't get RecursiveShapes but you might also get links. Some reference we can resolve during parsing but others will be parsed as links that should be resolved in transformation.
Not sure what is your use case but you can consider having a custom pipeline that handles just the things you need
from amf.
Hi @nschejtman. I see... My use case is a custom renderer from RAML, so I only need to read the model. Probably would be nice if I could have a custom pipeline step to detect and make such RecursiveShape before my custom code (in fact, I've already done recursion detection so I check them as I traverse). But is it possible to do in Javascript already? I see the documentation mentions that it's only for Scala and Java.
from amf.
Hi @deiteris, unfortunately it is only for Scala and Java at the moment. You can create an issue as an enhancement request
if you want. I don't know if we will be able to give it priority but at least it will be created.
If you do so, please create it as another github issue. With this comment, I'm closing the issue. Thanks!
from amf.
Related Issues (20)
- Root-level annotations are lost and other are not validated correctly when loading already parsed AMF Graph HOT 2
- Validation stage tampers the parsed model HOT 2
- Validation throws an exception when loading parsed AMF Graph with examples in types HOT 2
- 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 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 7
- 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
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.