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
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Describe the issue
I want to fetch all properties of a root data type and all its sub data types recursively from top to bottom. However,
when loading and resolving the root file, cannot traverse to the bottom of the hierarchy.
Assume the following root data type raml file (excerpt):
#%RAML 1.0 DataType
type: object
properties:
company:
displayName: my full company data
type: !include MyCompany-1.0.raml
required: true
availableResources:
type: array
items: !include generic/MyResource-1.0.raml
required: false
Actual behaviour/output/error
For the root file i can access the property names,, types, etc. after casting the properties to the appropriate shapes.
However a call to properties() on the company's nodeShape returns 0 (zero) properties, so i cannot go further.
The output:
2
company
class amf.client.model.domain.NodeShape
0 <--- here i would expect the properties of the MyCompany datatype
availableResources
class amf.client.model.domain.ArrayShape
NodeShape(NodeShape(amf.core.parser.Fields@23348b5d,amf.core.parser.Annotations@70325e14))
Finished
Thank you in advance for any help/feedback.
Danny
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Library version used
0.5.0
Language library used with
Java
Describe the issue
I want to fetch all properties of a root data type and all its sub data types recursively from top to bottom. However,
when loading and resolving the root file, cannot traverse to the bottom of the hierarchy.
Assume the following root data type raml file (excerpt):
The MyCompany-1.0.raml (exerpt):
The generic/MyResource-1.0.raml:
Code you have issues with
I started with the following code:
Actual behaviour/output/error
For the root file i can access the property names,, types, etc. after casting the properties to the appropriate shapes.
However a call to properties() on the company's nodeShape returns 0 (zero) properties, so i cannot go further.
The output:
Thank you in advance for any help/feedback.
Danny
The text was updated successfully, but these errors were encountered: