Comments (6)
I interpret it the same way. I suspect the python implementation that I maintain expects this to be a literal .
in the name of the variable though. Primarily because this is such a subtle line and as you pointed out, there are no tests to catch this in an implementation
from uritemplate-test.
Great. Assuming this is the correct interpretation, what should the result of {;foo.bar}
be? I think ;bar=baz
makes sense, but since the spec doesn't mention how to expand hierarchical names, I think it would have to be treated like any other name, ;foo.bar=baz
which is not very useful.
from uritemplate-test.
Great
To be clear, I have nothing to do with the spec, so just because I interpret it the same way doesn't make us right. :)
what should the result of
{;foo.bar}
be?
I'd argue that is completely undefined and so both ;foo.bar=baz
and ;bar=baz
are correct expansions here. It's unclear to me if any implementations deal with hierarchical names though so I personally would never rely upon it as any two implementations could handle these differently.
To make sure this does get defined, I would submit errata.
from uritemplate-test.
To be clear, I have nothing to do with the spec
I understood that. At this point it's nice to know I wasn't just missing something obvious.
I'd argue that is completely undefined and so both
;foo.bar=baz
and;bar=baz
are correct expansions here.
Agreed. Unfortunately, that makes names with .
both allowed and completely unreliable/useless.
To make sure this does get defined, I would submit errata.
I was going to submit an errata if I don't manage to get a response from the authors, but I'd rather discuss it with them first in case we're missing something despite our consensus.
from uritemplate-test.
I believe your best way to get the attention of the authors is to file the errata. I don't believe they monitor this repository or issue tracker very closely
from uritemplate-test.
That's not errata material; it's something that we didn't attempt to address in the specification, as it would require defining a data model. Implementations choose how to map identifiers into data.
All that said, a new level could attempt this (as an add-on spec).
Closing this as it's not about the test suite. If you want to pursue this, a few options:
- Send e-mail to [email protected]
- Wait for the proposed HTTP APIs WG to start (should be very soon), and engage there
- Write an Internet-Draft with a proposal
Cheers,
from uritemplate-test.
Related Issues (20)
- Changes to spec-examples-by-section are missing HOT 2
- Strange Variables HOT 1
- Incorrect test case in negative tests? "/vars/:var" , false HOT 8
- Reasoning behind some expansion tests? And probable errors in test files HOT 5
- Prefix values & combinations HOT 6
- Missing test(s) from "spec-examples.json"
- "Reversible" sub-set of tests? HOT 3
- I think Form-Style Query expansion for string value is incorrect. HOT 1
- regex under construction HOT 2
- Missing tests for +/# with pct-encoded characters
- Help understanding some negative tests HOT 1
- spec-examples.json is missing cases HOT 2
- Lists should be ordered? HOT 6
- Declare license in a machine-readable way that Github understands HOT 1
- PCT encoded varname for form style query expansion with list value
- Single Quote in URI Templates is disallowed but reserved in URLs. HOT 15
- Tests with $ sign are missing HOT 1
- Tests for combination of `+` operator, percent-encoded value, and prefix modifier are missing HOT 1
- "negative-tests.json" Too Strict ("{keys:1}", "{+keys:1}") HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uritemplate-test.