You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your issue may already be reported! Please search on Github issues before creating one.
I'm submitting a ...
bug report
feature request
question
other
What is the current behavior?
As far as I understand, AMF already has a built-in way to detect shape recursion. However, is there a specific shape type or method exposed to external users that are utilizing non-transformed model? I saw that there's RecursiveShape type, but none of my shapes seem to be detected as recursive (unless it applies on some transformation stage, but I want raw model specifically).
The sample code I try to use and that falls into infinite loop:
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
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.
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!
Your issue may already be reported! Please search on Github issues before creating one.
I'm submitting a ...
What is the current behavior?
As far as I understand, AMF already has a built-in way to detect shape recursion. However, is there a specific shape type or method exposed to external users that are utilizing non-transformed model? I saw that there's
RecursiveShape
type, but none of my shapes seem to be detected as recursive (unless it applies on some transformation stage, but I want raw model specifically).The sample code I try to use and that falls into infinite loop:
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: