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

Resolve internal URL references #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madbence
Copy link

@madbence madbence commented Aug 9, 2021

This PR kinda fixes #26 by maintaining an internal map to defined schemas.

I tried it with this schema: https://raw.githubusercontent.com/usnistgov/OSCAL/main/json/schema/oscal_assessment-results_schema.json

The UI renders the schema, but some links are messed up (usually after the second navigation). I guess this happens because navigation depends on the fact that references are supposed to be JSON pointers (?).

I'm not sure about browser support or used polyfills for bundling, but this feature depends on URL.

@robertmassaioli
Copy link
Collaborator

The UI renders the schema, but some links are messed up (usually after the second navigation). I guess this happens because navigation depends on the fact that references are supposed to be JSON pointers (?).

Thank you for this submission, but, as you can see, this change does not solve the problem in its entirety. There still seem to be a few bugs that remain. I'll have a look at this problem holistically and see what is possible.

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.

Support internal non-pointer references
2 participants