Repository navigation
update to strict case-sensitive parameter names; issue #21 - #75
Conversation
|
On Mon, Jul 13, 2026 at 03:11:18PM -0700, Patrick Dowler wrote:
Yes, I am proposing we transition to case-sensitive parameter names
in a minor version. A major version should mean something like
I totally agree to move to case-sensitivity in DALI, where "breaking
change" is a somewhat fuzzy term anyway. I don't think any concrete
standard says "case sensitivity is as in DALI", so we won't break
anything *here*.
We *might* complement this with a study of what actually breaks when
we switch in a concrete protocol like, say, TAP, and based on this
say something about what to do with existing standards.
But saying "from here on, stop the silly case insensitivity", that's
a good thing regardless of whether we fix the legacy protocols.
|
|
I also couldn't find it in DALI 1.1, but it is specified in TAP 1.1, in Section 2.7: https://www.ivoa.net/Documents/TAP/20190927/REC-TAP-1.1.html#tth_sEc2.7
|
|
I did re-order the parameters into two sections to clearly denote the deprecated/obsolete params, and then I moved one to put them in alphabetical order (because it was very close). That could have been done in a separate PR, but the need to do it for clarity only became obvious with the other changes. so sorry for making that part of review harder than necessary |
|
About "unknown parameters", @jwfraustro is correct. I think this language might be in other (older) standards as well. In general, DALI was made by refactoring: pull out common things and put them in one place... I guess we didn't do that in this case. Still, the issue remains: in a case-sensitive world, people will make mistakes (I think when doing things more manually with curl, eg) and it would be better to fail rather than silently ignore (as TAP-1.1 says). At least for params that are case-sensitive, it is better to fail than ignore them so that users/clients will know what's happening and be able to fix it... maybe we could limit "must fail" to wrong-case of known parameters as a less extreme measure? This change/addition to DALI is really to support the transition to case-sensitive by making (future) invalid input clear rather than subtle. |
add OpenAPI reference
|
The diff with split view is a little better and making sense of the re-org (Deprecated Parameters section), but I could also put them back in the previous order and simplify the message to some boilerplate, eg: Thoughts? |
|
On Tue, Jul 14, 2026 at 10:51:27AM -0700, Patrick Dowler wrote:
pdowler left a comment (ivoa-std/DALI#75)
Thoughts?
I'm in favour of giving a bit of a rationale in the text *in this
particular case*, and I'm not overly concerned by having that
language in the case-sensitivity commit. So: as far as I am
concerned, this part can stay as it is.
|
|
On Tue, Jul 14, 2026 at 09:24:25AM -0700, Patrick Dowler wrote:
pdowler left a comment (ivoa-std/DALI#75)
About "unknown parameters", @jwfraustro is correct. I think this
language might be in other (older) standards as well. In general,
It is, all over the place.
Still, the issue remains: in a case-sensitive world, people will
make mistakes (I think when doing things more manually with curl,
I'm not sure case sensitivity is the main driver here; in my SCS2
draft, I'm requiring services to reject unknown parameters, too.
This is mainly because I've puzzled a few times too often about
unexpected results only to realise there's an insignificant typo in a
parameter name. Also, clients should be able to "safely" take
requests with custom parameters to a different service and not have to
worry that constraints are sliently ignored.
I could try to write up this line of argument a bit more verbosely on
request.
Mark's concerns about adding parameters in later minor versions is
something we need to think about, though.
I am not *terribly* concerned about it because I'd expect that most
of these additional parameters would request functionality that
old services won't have in the first place and hence them failing is
a good thing; basically, it's like an optional feature that's just
not there.
But I have to admit that I found the detail=min thing in VOSI 1.1 (oh
no! the example for that in the spec uses lower case!) rather
elegant and pleasant in implemenation: tables endpoints that have it
only return stubs, the others just do what they always did, and all
clients have to do later is figure out whether or not they already
have the table bodies and request them if not. I think that's nice
code paths on both sides and in every combination.
In our new world, just blindly sending detail=min would yield an
error on VOSI 1.0 services. However, VOSI 1.1 clients can catch that
with reasonable effort and drop the parameter on the next request.
That's not as satisfying to me as what we have now, but... on
balance, I think that extra complication for clients wanting to use
new features is worth it.
|
|
Right, I was thinking of hint-type parameters where services are allowed to simply ignore them, like VOSI We explicitly jumped the other way in SAMP to support ad-hoc flexibility and experimentation with new optional parameters so e.g. you could send a non-standard colour hint along with your table load message hoping that the service might make sense of it, but not really caring if it didn't. But SAMP is a more hinty kind of protocol than typical DALI-compliant ones.
I dislike that try-fail-catch-retry pattern for client-service interactions quite a lot - it would certainly require parseable error messages with a vocabulary that indicates in some detail what's gone wrong. Some way to determine up front what version the service is implementing would be IMO much preferable, though in some cases would turn a 1-shot into a 2-shot client-server interaction which is also not ideal. One possible way to have it both ways would be to provide a syntactical marker for parameters that may legally be ignored without provoking an error, say by having a prefix like "HINT-", "OPT-" or "IGNORABLE-". Then if we need to introduce, say a verbosity option for VOSI tables in the future it could be controlled with a parameter with a name like HINT-VERB. I'm not necessarily advocating this (it's more complication) but it might be worth considering. |
|
On Wed, Jul 15, 2026 at 01:53:01AM -0700, Mark Taylor wrote:
mbtaylor left a comment (ivoa-std/DALI#75)
I dislike that try-fail-catch-retry pattern for client-service
interactions quite a lot - it would certainly require parseable
Well, there's of course always the capabilities to turn to (DALI
already requires them). SCS2, for instance, will require services to
even declare standard protocol parameters in a vs:ParamHTTP interface
(which has its own idiosyncracies, but ignore this for now). With
this system, clients that don't want to blindly jump and possibly
fall can ascertain up front that they can pass (say) detail=min.
And then we included the minor version in the standardID for when
you don't want to use vs:ParamHTTP.
controlled with a parameter with a name like HINT-VERB. I'm not
necessarily advocating this (it's more complication) but it might
be worth considering.
Ouch :-)
|
|
I don't think hint parameters like VOSI |
|
I have undone the reorg to minimise the diffs so it should be easier to see real changes now. I tweaked the text to clarify the ones that are not getting OpenAPI treatment. In DALI-1.1 we said "VERSION parameter has been removed". Should I use that same langauge for REQUEST and RUNID? It currently says "deprecated" in the PR, but with a ? I think this relates to "unknown parameter" handling because "removed" makes VERSION "unknown"... |
Agreed - the point is that we were able to introduce |
|
I agree that in view of the new unknown parameter policy, parameters from previous versions should be deprecated not removed. The unknown parameter policy should also be noted in the change log. Aside from that and some minor typos, this PR now looks OK to me. |
|
Clarifying the bit about deprecated vs unknown... there is a bit of a gotcha there too. If DALI specifies some parameter and later deprecates it (eg REQUEST, RUNID, VERSION) then this becomes a sort-of permanent list of parameters that services should ignore rather than reject... and maybe as a side effect I think that means no (DALI) service can (ever?) define a parameter with that name and some service-specific meaning. Or do we have to deprecate params to signal that services should stop implementing them and later remove them to free up that name for possible re-use? In which case, VERSION is already removed and in this PR I am deprecating REQUEST and RUNID. Or am I overthinking this? |
|
On Thu, Jul 16, 2026 at 09:06:10PM +0000, Patrick Dowler wrote:
pdowler left a comment (ivoa-std/DALI#75)
Or am I overthinking this?
I think you are. For one, I don't think anyone would want a
parameter called RUNID, and then I think the rough signal "Don't try
to replicate what some early protocol did" is roughly enough for what
DALI does. You see, if some implementing protocol did choose to call
a parameter REQUEST, we can try to talk them out of it, but I don't
expect that interoperability problems would ensue if the authors
didn't listen.
|
|
In the new sub section "Transition to Case-sensitive Parameter Names" there are a couple of statements with TBD: Existing services should ... for a reasonable period of time (TBD) Any thoughts on making that more concrete? "The next version of DALI (1.3) will specify strict case-sensitive..."?? |
|
In the latest commit, I simplified and just went for the most strict statement about case: any parameter defined with OpenAPI is case-sensitive. Since DALI is a common case on which other standards are built, this doesn't come into force until another standard is updated to use/refer to the OpenAPI part. I think the meaning is that this will come into play in TAP-1.2 and in there all parameter names will be case sensitive. That's the place where we need to chose the case soon and then have a long-ish WD->PR stage where clients can be updated. Services would remain as they are until they are updated to TAP-1.2 and TAP-1.2 becomes a REC. I think that is plenty of time to improve clients and minimise pain, but when we discussed other ways to gradually introduce this change they were always more complicated/confusing and didn't actually improve the situation. Does this look OK? |
|
I am mostly OK with the latest text. One comment:
I'd be more comfortable with "... after which they should only support the specified case", but I won't fight it if you feel strongly. |
|
If we say "should" here, that would mean some services could remain lax in param name handling, even after updating to TAP-1.2. That might be ok, or it might allow people to write non-portable client code that works for some services but not others... I am on the fence about this. |
|
On Mon, Aug 24, 2026 at 01:18:18PM -0700, Patrick Dowler wrote:
pdowler left a comment (ivoa-std/DALI#75)
might be ok, or it might allow people to write non-portable client
code that works for some services but not others... I am on the
fence about this.
In that case, can I pull you a little towards the should side? I'm
pretty sure that I'd like to let DaCHS accept wrongly cased
parameters for quite a while (golden rule of interoperability: Be
strict in what you produce, be lenient in what you accept). That
won't hurt me if I get warnings from validators, but I can't really
do it if I then consistently fail validation.
|
mbtaylor
left a comment
There was a problem hiding this comment.
In this PR the Deprecated and Unknown Parameters section has been introduced, and the RUNID and REQUEST parameters have been deprecated. These changes should be noted in the change log in Appendix A.
Also, the uws:runId element should probably be removed from the example in section 2.1 since RUNID is now deprecated.
| Service validation must be able to differentiate between minor versions in order to | ||
| check parameter name handling. |
There was a problem hiding this comment.
I note that this will be problematic. Services usually do not report the DALI version with which they comply, only the service version, and service specifications are typically not written with respect to a fixed DALI version. But I'm not requesting that this text is changed or removed.
There was a problem hiding this comment.
Here I was thinking service (eg TAP) minor version and I think that TAP-1.2 will say "DALI-1.2 or later"... so a minimum DALI version, which still allows for future additions to DALI (eg new xtypes) to be used in TAP service
fix uws runId example use
mbtaylor
left a comment
There was a problem hiding this comment.
See above a query the runId element in the example, but OK. There are some other issues with that job document anyway I could address in a separate PR.
| <uws:job xmlns:uws="http://www.ivoa.net/xml/UWS/v1.0"> | ||
| <uws:jobId>123</uws:jobId> | ||
| <uws:runId>test</uws:runId> | ||
| <uws:runId /> |
There was a problem hiding this comment.
Why delete the text content of the runId element rather than deleting the element altogether (it is declared [0..1])?
There was a problem hiding this comment.
I checked the output of a UWS job without a valuer and it included the empty element; I am pretty sure that means the element is required by the UWS schema (but can be empty) because our xml code generally does not ommit empty elements unless it is required.
check the UWS xsd...
<xs:complexType name="JobSummary">
<xs:annotation>
<xs:documentation>
The complete representation of the state of a job
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="jobId" type="uws:JobIdentifier" />
<xs:element name="runId" type="xs:string" maxOccurs="1"
minOccurs="0"
>
...
I will remove the empty element from the example.
This is currently draft as it needs a little more detail but I wanted to float the general idea as soon as possible.
Yes, I am proposing we transition to case-sensitive parameter names in a minor version. A major version should mean something like "implementors may have to rewrite from scratch" and "users need to learn a different API" and in my opinion neither of those are really true here. It's going to break some things and we will need to consider the impact when we get further along in WD-TAP-1.2, but I think here we can signal the future and should do so as strongly as possible.