-
Notifications
You must be signed in to change notification settings - Fork 34
No default value defined for base URL in Create Term Definition #375
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
Comments
I'll check, but I believe that the only times that base URL would be used in Create Term Definition it is passed as an option. |
Then I'd suggest adding language for a default value of |
…onLdOptions/base`, which now defaults to `null`. Fixes #375.
Updated in #377. |
See the JsonLdOptions dictionary definition for initializers. |
How is that relevant? This is about a named, optional argument to Create Term Definition, not about a field in a JsonLdOptions structure. Right? |
Step 4 of It should be the case that when the API calls the Context Processing algorithm that the base IRI and original base URL options will always be set from one of these. There's code in the Context Processing algorithm to check if both context and base IRI aren't valid IRIs. |
I'm lost. I still see Create Term Definition saying For example, IRI Expansion 6.3 invokes Create Term Definition without a base URL argument. Now, it may be possible that this invocation cannot reach Create Term Definition 21.3, but that's not obvious to me, which is why I'm concerned about such use of an undefined value. |
So, Create Term Definition is always called with the base URL argument. In Step 5 of In Step 4, original base URL is established either from the documentUrl of the remote document, or the base option, which is initialized to The Create Term Definition algorithm says that the default for base URL is |
This is not true. Please see the example I just included above.
I did not read this as providing a default value for |
Yes, I misread that; it does now. It's also not necessary to pass a base URL from those places in Create Term Definition, as the default |
…onLdOptions/base`, which now defaults to `null`. Fixes #375.
d78d8d2 looks good. Thanks. |
(Related to #265, #356)
Create Term Definition says that
base URL
is an optional input variable, but does not define a default value. It is then used unconditionally in step 21.3 and 21.4.The text was updated successfully, but these errors were encountered: