Hi Wendy, On Wednesday, July 24, 2013, Wendy Roome wrote:
> Richard, > > We may be talking across each other here. My understanding is that the IRD > resource entry for a full cost map must have the media > type alto-costmap+json -- that's the only indication that this resource is > a full cost map. > Correct. This is the current spec. An issue, as you pointed out, I believe, is that, if the "cost-type-names" of its "capabilities" has multiple names, then the actual return from the server will be an IRD, not alto-costmap+json. Personally, I consider this an inconsistency, as you pointed out. > Similarly, the media type for a filtered cost map resource must > be alto-costmapfilter+json. > The media-type is still alto-costmap+json. alto-costmapfilter+json is for the accept. Right? So, the rule is: If media-type is alto-costmap+json, and no accepts (I.e., unfiltered map), then the cost-type-names in its capabilities can include only one entry. I believe that this is what you propose. If others do not see problems, we say that we reach consensus. Richard > > > So I'd say that if a resource's media-type is alto-costmap+json, its > cost-type-names capability MUST have a single value. Anything else is an > error. > If media-type is alto-costmapfilter+json, then cost-type-names MUST have > one or more values. I don't see any case under which a resource with > media-type alto-costmap+json could legitimately return an IRD. > > Perhaps you're thinking of the old scheme for linking IRDs, where the > resource in the "parent" that pointed to the "child" gave the union of all > the media-types and cost-types that resources in the child IRD could > return? I believe we dropped that, in favor of a simple resource with the > media-type application/alto-directory+json, and no summary of the services > provided by that IRD. > > - Wendy Roome > > > From: "Y. Richard Yang" <[email protected] <javascript:_e({}, 'cvml', > '[email protected]');>> > Date: Wed, July 24, 2013 00:02 > To: Wendy Roome <[email protected] <javascript:_e({}, 'cvml', > '[email protected]');>> > Cc: Richard Alimi <[email protected] <javascript:_e({}, 'cvml', > '[email protected]');>>, alto <[email protected] <javascript:_e({}, 'cvml', > '[email protected]');>> > Subject: Re: [alto] Cost-type names > > > If we apply the principle that media-type in an IRD entry is correct, then > there are two cases for an unfiltered cost map: > > A single cost-type in "cost-type-names" of an unfiltered cost map, then > the IRD of a media type of costmap entry is correct. > > If multiple, then the "correct" media-type is IRD. > > I am fine with either way, but not multiple cost-type-names, but a media > type of costmap. > > Any comments? > > Richard >
_______________________________________________ alto mailing list [email protected] https://www.ietf.org/mailman/listinfo/alto
