Re: [calsify] WGLC JSCalendar

Michael Douglass <mikeadouglass@gmail.com> Mon, 28 October 2019 04:36 UTC

Return-Path: <mikeadouglass@gmail.com>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1B0101200EF for <calsify@ietfa.amsl.com>; Sun, 27 Oct 2019 21:36:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cTcElHZL5zrj for <calsify@ietfa.amsl.com>; Sun, 27 Oct 2019 21:36:17 -0700 (PDT)
Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 949D51200DE for <calsify@ietf.org>; Sun, 27 Oct 2019 21:36:17 -0700 (PDT)
Received: by mail-qt1-x82e.google.com with SMTP id l3so2294086qtp.2 for <calsify@ietf.org>; Sun, 27 Oct 2019 21:36:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=QfKCyuU6DWZkZkHaRaiqBCHOaO8K5MGUKnXzavZsuKc=; b=LOP2PUECoehXWsaxa+Sl+rUwfR4462MWsBllssroqm/otI9/qrc1IlqVvqXW62+HQn llkT7yiKHOlRXjZzONgu1raQmn8SxHJzkHaGzgQvj6sl3nhZM9hxbLa7W5ZELV9tg02u a+jVhVQQgx6798gncboBa7raFxoyRM/BpocgrmCMmG67KEQnJIxKD4GSASkpDc4UNGoi SaJXDz54vsIIBQ3QboY3NpAVc5+Ibsdoru1aFUOiMAZzV8u/3qe6D84IZHEoMGniA2eH FzEgrfV0xaZjUpeJ3IyIWlWam++fHz9rKmUulGaLtN6V09EAceTIG+MWv9L1RiQLURgp XS6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=QfKCyuU6DWZkZkHaRaiqBCHOaO8K5MGUKnXzavZsuKc=; b=OUhI5CUrVHqlnRs5jRxf3afLyKthPz1ac8FVqzjxJubTn2uYYxfgqyK0xNptv394V6 WRMF7RMDIJZ7hK1Cbu1uJCsiVZxUus5SmNqoDPPvtDdCBy6qadANrKbIP0B3gdKYD6ax eRdk6t3DiWWPHHMItT45XbCKI5UbLaqOkczGS77R207WBoVETEpKTw32ASoLl1s2V4L6 ljQ5bxIoxOXglGhQ45ZzqDZUpZ8PHDxB85ohhXL+iz786/xDg15ec8IfZVJ55wxSrDjw fKq3K7N3QF9JJNrMGJ/SN1sSro9zil0nXqhSwL4LvmVAhN8Jm/M8EorZc5uCm61NHSca bC7A==
X-Gm-Message-State: APjAAAUXjEoeabWwD0i7653/LIMqf8tXqK3boDMYB2+SgKEN41/5XeoY 1FAggX99b9DF7NyxVnypmmMt7jOQ
X-Google-Smtp-Source: APXvYqxOQZ+D+VcaCYr5Dm/7dhQ5kckW8n0cMPxWG/vTucCWteIZkYwWpMwmR7SgnsSliVPvjzGrZw==
X-Received: by 2002:a0c:ee26:: with SMTP id l6mr15624139qvs.71.1572237376422; Sun, 27 Oct 2019 21:36:16 -0700 (PDT)
Received: from Michaels-MacBook-Pro.local (cpe-74-70-80-66.nycap.res.rr.com. [74.70.80.66]) by smtp.googlemail.com with ESMTPSA id r1sm5633781qti.4.2019.10.27.21.36.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Oct 2019 21:36:15 -0700 (PDT)
To: Neil Jenkins <neilj@fastmailteam.com>, Daniel Migault <daniel.migault=40ericsson.com@dmarc.ietf.org>, "calsify@ietf.org" <calsify@ietf.org>
References: <DM6PR15MB3531E3B26D3C5294B1D40564E3930@DM6PR15MB3531.namprd15.prod.outlook.com> <6d0fa1f3-5dbe-d4df-821f-a0bddb61546b@gmail.com> <3d216646-0235-0af4-b9ad-1401eea482c4@gmail.com> <c89952c7-90b9-ef17-0c7c-aceacde771e2@gmail.com> <7f83a966-d1e9-464e-acd2-45bb7fd05107@beta.fastmail.com> <98a0f7ca-213d-4be0-9b0c-310dad70c0ab@gmail.com> <595e1efa-97a0-4373-8d5f-d4e5e05a1838@dogfood.fastmail.com> <601a4ef3-d922-71e0-ab4b-8e539ed3f7ae@gmail.com> <669b29a4-1734-4ea1-9ac9-33e590d91762@dogfood.fastmail.com>
From: Michael Douglass <mikeadouglass@gmail.com>
Message-ID: <07d3a19b-5198-e9fa-acbf-94c5161e11fb@gmail.com>
Date: Mon, 28 Oct 2019 00:36:13 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <669b29a4-1734-4ea1-9ac9-33e590d91762@dogfood.fastmail.com>
Content-Type: multipart/alternative; boundary="------------BF63522824C2DC941C16CF0D"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/TqWir7av17TfBDFHNHxe-Akr6GU>
Subject: Re: [calsify] WGLC JSCalendar
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Oct 2019 04:36:20 -0000

On 10/27/19 20:28, Neil Jenkins wrote:
> On Sat, 26 Oct 2019, at 03:01, Michael Douglass wrote:
>> What I meant was that the objects in the list should have a type:
>>       "localizations": {
>>         "de": {
>>           "@type": "PatchObject"                    <------------------- this
>>           "title": "Live von der Music Bowl: The Band!",
>>           "description": "Schau dir das groesste Musikereignis an!",
>>           "virtualLocations/6f3696c6-1e07-47d0-9ce1-f50014b0041a/name":
>>                                   "Gratis Live-Stream aus der Music Bowl"
>>         }
>>       }
>>
>> I think patch objects are the only objects that don't have a type. I 
>> think for simplicity and ease of validation all objects should be 
>> required to have @type
>>
>
> No. The |@type| property is for objects with a named set of attributes 
> (essentially a class). The PatchObject is a primitive datatype, more 
> like Integer etc. There are no predefined keys; each key is a patch to 
> apply. So if you add |@type| there, that's actually a path to 
> overwrite the |@type| property on the object you apply it to!
>
I still don't agree.

There's no way this is a primitive type. It's an object whichever way 
you look at it. The fact there are no predefined keys is an attribute of 
the pathObject class. Without the @type I have to defer any validation 
until the whole structure is parsed - or - for this one case only - I 
have to pass down the expected type.

As for the @path - In section 4.3.3 (version 21) for recurrence 
overrrides we have

    A pointer in the PatchObject MUST be ignored if it starts with one of
    the following prefixes:

    o  @type
and a bunch more

I think we could make that ignoring @path a general rule for pathObjects 
- is there anywhere we want to allow changing the type?