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

7.2 URI Templating - getApplicableSchemas #12

Open
hrennau opened this issue May 3, 2020 · 0 comments
Open

7.2 URI Templating - getApplicableSchemas #12

hrennau opened this issue May 3, 2020 · 0 comments

Comments

@hrennau
Copy link

hrennau commented May 3, 2020

The explanation is probably not correct:

"getApplicableSchemas()" returns an iterable set of all (sub)schemas that apply to the attachment point in the instance.

The use is this:
getApplicableSchemas(ldo.hrefSchema, "/" + varname)

The function use has nothing to do with the attachment point: it extracts from hrefSchema the schema(s) applicable to variable varname. It seems that getApplicableSchemas() should be thought of as a generic function receiving a schema and a JSON pointer and returning the subschemas applicable to the instance value pointed at. Perhaps the explanation should describe this generic functionality, rather than describe the result of its usage.

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

No branches or pull requests

1 participant