[art] Re: Alternative representation of URIs in YANG
Martin Thomson <mt@lowentropy.net> Wed, 03 December 2025 01:18 UTC
Return-Path: <mt@lowentropy.net>
X-Original-To: art@mail2.ietf.org
Delivered-To: art@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 41B8994498D6; Tue, 2 Dec 2025 17:18:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.799
X-Spam-Level:
X-Spam-Status: No, score=-2.799 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b="siqcrEj1"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="kwdzMMlm"
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lkg-ofBCpjAq; Tue, 2 Dec 2025 17:18:52 -0800 (PST)
Received: from fhigh-b7-smtp.messagingengine.com (fhigh-b7-smtp.messagingengine.com [202.12.124.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id BB73594498D1; Tue, 2 Dec 2025 17:18:52 -0800 (PST)
Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 173957A01CE; Tue, 2 Dec 2025 20:18:46 -0500 (EST)
Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-04.internal (MEProxy); Tue, 02 Dec 2025 20:18:46 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1764724725; x=1764811125; bh=AqOI1+Mi1kDaulNFvaZaCuMUkJJVk7tO EoDMBvqPU1w=; b=siqcrEj15FyseHaEHpQs1td+oL7xEISQoM8sFB+BtuYvGHnc vCRDr0N4USJtgC0GfINndBRsBVQP6iVXsqb573WV1Zboo0Kh7h7q66EJxjUonJlP QMZ5T4etMSjo92tjDQRP2fkMQi2ARYA1sZz4gFk8p7sDMrOxKQ2b2688bH+27YMV 3yuv+rqxShWAPAYDbjK5fBxrEozAT6MymyMjzEGz41vSQGAJS7KmKZMwRIzBCKos FisHk0xBiG6WG4Qhj8opl0aNec54ZWGcljD91CzSqH4xL7eW9dbjQZKYXt76kHo7 78YrM1HKj7G1ukzLtPqiTMUhORklSuMXj+lJrA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1764724725; x= 1764811125; bh=AqOI1+Mi1kDaulNFvaZaCuMUkJJVk7tOEoDMBvqPU1w=; b=k wdzMMlmSdoWh6Hs1V2zE/2tL/Z8qy+lkmS9pHkHlm9+6Z85VafEIH2jmO+qEb7mD UlIqQgNPYazSqxteitshv1QrvxSbnE9Z34RHsKVr+ng3qji9nSOVMF8Sqvoz9TYT 4cqi3Ri7nkQImTTILaZjf64bFER//YcOOInME5HHc3NV6LbbosPSHUv7AIxfFHzW X0dK0h5YyUDDbEEXCxXU5N99OCTHYLUDSGkj0kgs3IZThRrENZ6QmxRuyk+DuYEg Lt8sEifQ3fGaDlaAfSzE6IaP2YcluqlvrdGLa7GnJQl3VyD4vOqlwOwzHwNbV1Nu RTJAH2C9Alp3Mcaoea2vg==
X-ME-Sender: <xms:9I8vacCXDock_n75BYn0kq5ozgEFDSxo3XcdgS7mFgRyl9L1IbAA0A> <xme:9I8vaZXwG97Eb4CkTJEoROsn6HuymoRk1Y3JDjIE5swmw3kL9MBCo_3fiWMm1NNbU ak3liOkbymFbKBJeIyGuX-A2hk7-P7SpmbECLHeKzfafkeBwmfnKaU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucenucfjughrpefoggffhffvvefkjghfufgtgfesthejredtre dttdenucfhrhhomhepfdforghrthhinhcuvfhhohhmshhonhdfuceomhhtsehlohifvghn thhrohhphidrnhgvtheqnecuggftrfgrthhtvghrnheptddvteejkeegleelleetkeejhf etiedvkefgueejvdevudffhedvfedtveegffdtnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepmhhtsehlohifvghnthhrohhphidrnhgvthdpnh gspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihgvthhf rgessghttghonhhnvggtthdrtghomhdprhgtphhtthhopegrrhhtsehivghtfhdrohhrgh dprhgtphhtthhopehurhhiqdhrvghvihgvfiesihgvthhfrdhorhhgpdhrtghpthhtohep ughuvghrshhtsehithdrrghohigrmhgrrdgrtgdrjhhppdhrtghpthhtohepuhhrihesfi efrdhorhhgpdhrtghpthhtohepkhgvnhhtodhivghtfhesfigrthhsvghnrdhnvght
X-ME-Proxy: <xmx:9Y8vaSClnZ8dIm9trnyUJ6bGptTxbjOhsursR3dl8MxX3shbHxFrCg> <xmx:9Y8vaXctKiHCVkLmbnUPBtjrUJXZ9POzPEIt0ITcgLZvIO_5Lw62jA> <xmx:9Y8vaUm8ii1stMZp7KT-M1FLxVTlLEwHpJNn5AOqsYuBLu1VrvS3-w> <xmx:9Y8vaWHFVelqkv3bkG0juE8EOhJ2Md65JjprkV5c5Pk5vHcjKulIsg> <xmx:9Y8vaXxeHylhwxUssVk0i-qIapN7Urt-d2zOZ7G4DZ9fz0gxB9aaeNrT>
Feedback-ID: ic129442d:Fastmail
Received: by mailuser.phl.internal (Postfix, from userid 501) id DF906780054; Tue, 2 Dec 2025 20:18:44 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
MIME-Version: 1.0
X-ThreadId: AruTPOI_qQOs
Date: Wed, 03 Dec 2025 12:18:24 +1100
From: Martin Thomson <mt@lowentropy.net>
To: Kent Watsen <kent+ietf@watsen.net>, "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Message-Id: <8679986b-f7c5-4621-bd04-b970b90ce426@betaapp.fastmail.com>
In-Reply-To: <0100019ae08ae5d4-27a4240b-c315-4363-b79c-2fb80a81eb9f-000000@email.amazonses.com>
References: <04751771-27b6-4894-81dc-82036aeea5d2@betaapp.fastmail.com> <0100019ab804a507-449eb08e-87a3-4afc-bb98-9b67827bf928-000000@email.amazonses.com> <05d03d11-f140-461e-8a68-0dd6f1bfe465@it.aoyama.ac.jp> <FRWPR07MB106228FC36F536D383AEEE6A5A2DDA@FRWPR07MB10622.eurprd07.prod.outlook.com> <331d1f14-8ae6-41b7-810d-a21c3a5a5041@it.aoyama.ac.jp> <0100019ae08ae5d4-27a4240b-c315-4363-b79c-2fb80a81eb9f-000000@email.amazonses.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-ID-Hash: WTE53IVM2B4FFHW75FND4X6AGWITGCDS
X-Message-ID-Hash: WTE53IVM2B4FFHW75FND4X6AGWITGCDS
X-MailFrom: mt@lowentropy.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-art.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: tom petch <ietfa@btconnect.com>, "art@ietf.org" <art@ietf.org>, "uri@w3.org" <uri@w3.org>, "uri-review@ietf.org" <uri-review@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [art] Re: Alternative representation of URIs in YANG
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/EqlWiA1Zfau5Vj9Y6FYnF-6-IX8>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Owner: <mailto:art-owner@ietf.org>
List-Post: <mailto:art@ietf.org>
List-Subscribe: <mailto:art-join@ietf.org>
List-Unsubscribe: <mailto:art-leave@ietf.org>
The other Martin here... On Wed, Dec 3, 2025, at 06:29, Kent Watsen wrote: > The document previously used the "ietf-inet:uri" typedef from RFC 6991 > (previously RFC 6021). The WG complained that the unstructured format > did not good exhibit YANG-fu (best practice), making it hard to > apply/validate defaults and constraints on individual fields. From a > YANG-outlook perspective, the "ietf-inet:uri" typedef is likely to be > rarely used. URIs are more complicated than your decomposed structure allows for. That's the problem. If you are going to represent a URI, it really has to be a string. If the goal is to only represent an HTTP URI (or an HTTPS URI, ideally), then you can use the structure you describe, but you would name it accordingly. You might also find that you don't need fragment in this context, because HTTP doesn't carry fragments.
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Alternative representation of URIs in YANG Martin Thomson
- [art] Re: Alternative representation of URIs in Y… Martin J. Dürst
- [art] Re: Alternative representation of URIs in Y… tom petch
- [art] Re: Alternative representation of URIs in Y… Martin J. Dürst
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… Martin Thomson
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… Martin Thomson
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… Martin Thomson
- [art] Re: Alternative representation of URIs in Y… Mahesh Jethanandani
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… Martin Thomson
- [art] Re: Alternative representation of URIs in Y… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… worley
- [art] Re: [Uri-review] Re: Alternative representa… Tim Bray
- [art] Re: [Uri-review] Re: Alternative representa… worley
- [art] Re: [Uri-review] Re: Alternative representa… Kent Watsen
- [art] Re: [Uri-review] Re: Alternative representa… worley
- [art] Re: [Uri-review] Alternative representation… Roy T. Fielding
- [art] Re: [Uri-review] Re: Alternative representa… Kent Watsen
- [art] Re: Alternative representation of URIs in Y… Sampo Syreeni
- [art] Re: [Uri-review] Re: Alternative representa… worley
- [art] Re: [Uri-review] Re: Alternative representa… worley
- [art] Re: [Uri-review] Re: Alternative representa… Martin Thomson
- [art] Re: [Uri-review] Re: Alternative representa… worley
- [art] Re: [Uri-review] Re: Alternative representa… Kent Watsen
- [art] Re: [Uri-review] Re: Alternative representa… Martin Thomson
- [art] Re: [Uri-review] Re: Alternative representa… Tim Bray
- [art] Re: [Uri-review] Re: Alternative representa… Mahesh Jethanandani
- [art] Re: [Uri-review] Re: Alternative representa… Martin Thomson
- [art] Re: [Uri-review] Re: Re: Alternative repres… Henry S. Thompson
- [art] Re: [Uri-review] Re: Alternative representa… Kent Watsen
- [art] Re: [Uri-review] Re: Alternative representa… Mahesh Jethanandani
- [art] Re: [Uri-review] Re: Alternative representa… Mark Nottingham
- [art] Re: [Uri-review] Re: Alternative representa… Mahesh Jethanandani
- [art] Re: [Uri-review] Re: Alternative representa… Kent Watsen
- [art] Re: [Uri-review] Re: Alternative representa… Martin Thomson
- [art] Re: [Uri-review] Re: Alternative representa… Kent Watsen
- [art] Re: [Uri-review] Re: Alternative representa… Tim Bray
- [art] Re: [Uri-review] Re: Alternative representa… Orie
- [art] Re: [Uri-review] Re: Alternative representa… Martin Thomson