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. Similarly, the media type for a filtered cost map resource must be alto-costmapfilter+json.
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]> Date: Wed, July 24, 2013 00:02 To: Wendy Roome <[email protected]> Cc: Richard Alimi <[email protected]>, alto <[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
