Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[W-14846319] Imported Schema or XML Example does not show in Documentation Panel #63

Conversation

alexpmule
Copy link
Contributor

  • Map example from shape external fragment on root references

Here's a step-by-step description:

  1. It first retrieves the @id property from the first element of referenceIdData array and assigns it to referenceId.

  2. It calls the _computeReferences method with this.amf as an argument to get the root references and assigns the result to rootReferences.

  3. It maps over each item in root references, and for each item, it computes references twice in a nested manner. It then gets the second element from externalFragments and computes its encodes. The result of this map operation is an array of encoded external fragments, which is assigned to encodesOfExternalFragments.

  4. It finds an element in encodesOfExternalFragments where the @id property matches referenceId and assigns it to exmapleExternalFragmentByReferenceId.

  5. It gets the raw key by calling the _getAmfKey method with this.ns.aml.vocabularies.document.raw as an argument and assigns it to rawKey.

  6. Finally, it calls the _getValue method with exmapleExternalFragmentByReferenceId and rawKey as arguments and assigns the result to raw.

Testing on API-Console

Screen.Recording.2024-01-30.at.14.10.47.mov

…Panel

- Map example from shape external fragment
@alexpmule alexpmule self-assigned this Jan 30, 2024
@alexpmule alexpmule marked this pull request as ready for review January 30, 2024 17:12
@alexpmule alexpmule merged commit 2866595 into master Jan 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants