Re: [httpapi] RFC 9512 on YAML Media Type
Orie Steele <orie@transmute.industries> Mon, 19 February 2024 15:07 UTC
Return-Path: <orie@transmute.industries>
X-Original-To: httpapi@ietfa.amsl.com
Delivered-To: httpapi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 083CBC14F70D for <httpapi@ietfa.amsl.com>; Mon, 19 Feb 2024 07:07:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=transmute.industries
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fcKd498-nHvf for <httpapi@ietfa.amsl.com>; Mon, 19 Feb 2024 07:07:44 -0800 (PST)
Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC033C14F5EE for <httpapi@ietf.org>; Mon, 19 Feb 2024 07:07:44 -0800 (PST)
Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d7881b1843so37395245ad.3 for <httpapi@ietf.org>; Mon, 19 Feb 2024 07:07:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=transmute.industries; s=google; t=1708355264; x=1708960064; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ppvs7G7tpPXikxjmQ0kZIxyiXnlPYas8SYez88mgr8E=; b=Ii3PQN/6CE5MI3iXDDYEeZJF0IfWvFNIqwO51TT9gdFcQAJuQKaBjPK52Upecu814t mlicr7axk8LOTT3nI1ZT6TjJg90SIBDmkLvFAjf7jJNfrVZKKr6Seq1Tb3uzoAzqw44c MJiCHTDL+Ki9JPm5y7yeAFsZjSBIy9LL4NTXvjq2LxsJ6Hr6sB6QRlzmczJ8YTlRRoXe c/6jAXbZArgKCk5+mA/uva9vDblH7sXLnxrRuIMBT/SB0TmMZzKZ7HAa3NWvCm3/AYVQ o76B8wM+Ck2Sb75rYnOhm5oMMPm357c9Rc3CocRPTGfgNPZNn3l+vYz6JS5sxemFRNbs EOOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708355264; x=1708960064; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ppvs7G7tpPXikxjmQ0kZIxyiXnlPYas8SYez88mgr8E=; b=aOVOChOTrUDEqVGfM8UqkzZDQBGEffsvvlZEEeMsShd0JvuWtMjHC+yJLvhiHZJgfr kSi7gADh/xo1K+TZ2EW6UvRTKMZVuHk0d/eWdR6hxV8zsczPUAvIKInMpdi8DNjfdJdJ 5EEN9qEPRkQmIj2gYawZQXKGU501lGVxIOGOhniGl4mBik9NTZIabgoZ0jXHUKUzc17N LDdNI3HmdspPD35EmmLprLfV9df6+W8Mfc1MpS+UD3FpFjwYyxQnnl7OxdXwZCVBMUOx jHIbFl8vMIC1OnHpLYII3rFwBLXoe3s0ziVe121bFg4AyrVnkibXOWPqflwYTvZtirRY vWhQ==
X-Forwarded-Encrypted: i=1; AJvYcCVG8jwUgLeoD4q9tjCVUS+8zTa/ETx6mfv7IIeIFORNMw1QgjZkibLrLUNt48wiB9TOoZT+LdLEwbv6i8j/hyd5
X-Gm-Message-State: AOJu0YzilLohqNG1uAETOTZHxHJV2SrY0TPFix5j0jjaB2O67WHvY4aE MjHvjlrjyyINR/2OxAAjaoGpTwqnTbm5hwm2UzthH4VDX03yRww14fLtr2spxfsPDSvw1U2z6Z8 96KWVQhMmrzjKV9Igcrvr/c5oXeUuR0qOySIz8A==
X-Google-Smtp-Source: AGHT+IH19V3pG3/uOKlabAIyzH7dKSkM80JqXUzpKPqMEPhLwXYTQB96TnUamJKj/G5hf5/9f4pi4DAmdn0qC1/r9Fo=
X-Received: by 2002:a17:902:d504:b0:1db:cf64:732b with SMTP id b4-20020a170902d50400b001dbcf64732bmr8014261plg.21.1708355263672; Mon, 19 Feb 2024 07:07:43 -0800 (PST)
MIME-Version: 1.0
References: <20240214220104.2BF101957AE5@rfcpa.amsl.com> <SJ2PR01MB81022C5D9B3BA6FBB43A50D5A3512@SJ2PR01MB8102.prod.exchangelabs.com> <CAP9qbHVZNtM3W36CqD6PVx_BKkVhQCvsy9D7n1GeOxJUgho-jQ@mail.gmail.com> <CAN8C-_K5HvG5TfbzmU6PsucbpfQyX=TwbX41n-nJiC5pyGQm6w@mail.gmail.com> <CAP9qbHWRSrOricmsNcP_yTXkM-ZE0v2SLekjSCWGOo7rrc2Phw@mail.gmail.com>
In-Reply-To: <CAP9qbHWRSrOricmsNcP_yTXkM-ZE0v2SLekjSCWGOo7rrc2Phw@mail.gmail.com>
From: Orie Steele <orie@transmute.industries>
Date: Mon, 19 Feb 2024 09:07:32 -0600
Message-ID: <CAN8C-_+zBDi9to1MGGbhuTsOu_hNGB=+3gSXW26kYpEq4r4waA@mail.gmail.com>
To: Roberto Polli <robipolli@gmail.com>
Cc: Darrel Miller <darrel@tavis.ca>, "httpapi@ietf.org" <httpapi@ietf.org>, Erik Wilde <erik.wilde@dret.net>, "eemeli@gmail.com" <eemeli@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000a451650611bd74dc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/httpapi/K9BZZeeeHRCtINAg4eAjaLnZTvw>
Subject: Re: [httpapi] RFC 9512 on YAML Media Type
X-BeenThere: httpapi@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Building Blocks for HTTP APIs <httpapi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/httpapi>, <mailto:httpapi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/httpapi/>
List-Post: <mailto:httpapi@ietf.org>
List-Help: <mailto:httpapi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/httpapi>, <mailto:httpapi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Feb 2024 15:07:49 -0000
Inline: On Mon, Feb 19, 2024 at 8:40 AM Roberto Polli <robipolli@gmail.com> wrote: > Hi Orie. > > On Mon, 19 Feb 2024 at 15:11, Orie Steele <orie@transmute.industries> > wrote: > > Congratulations to all involved. > > Thanks :) > > > I've seen the structured suffix already being used here: > > > > > https://www.w3.org/community/reports/json-ld/CG-FINAL-yaml-ld-20231206/#application-ld-yaml > > > Yes, the YAML-ld concept started under the IETF but was then delegated > to the json-ld wg. > > > Not sure if I am interpreting the API media type comment correctly... Is > there a plan to do > > > > application/schema+json > We're working on it. See > https://github.com/ietf-wg-httpapi/mediatypes/issues > > > > application/schema+yaml > While I think it's key, we should first finish schema+json > > > > In a single document? > > > Can you please clarify what does "single document" mean? > A document should be either YAML or JSON. > You can use YAML "flow collection style", in order to create > JSON-like YAML. See > https://www.rfc-editor.org/rfc/rfc9512.html#section-3.4 > Still, the content will be either JSON or YAML. > Agreed, I meant that similar to how https://swagger.io/specification/ includes the following comment: "An OpenAPI document that conforms to the OpenAPI Specification is itself a JSON object, which may be represented either in JSON or YAML format." If a document registers media types for OAS (as opposed to vanilla YAML, or vanilla JSON Schema) we might see a sentence like: Representations of an OpenAPI Specification *schema* SHOULD use "application/schema+json" and MAY use "application/schema+yaml", and then explain why YAML is a may or why it is reversed (yaml recommended over JSON). https://github.com/ietf-wg-httpapi/mediatypes/issues/18 FWIW, we've experimented exposing OAS and enabling content type negotiation with the accept header. Our use case was to support YAML and JSON schema for constraining JSON-LD based digital credentials, per: https://w3c.github.io/vc-json-schema/#representations-of-json-schema Recently, YAML has been used to support "selective disclosure" in SD-JWT: https://datatracker.ietf.org/doc/draft-ietf-oauth-selective-disclosure-jwt/ https://github.com/openwallet-foundation-labs/sd-jwt-python/blob/main/examples/w3c-vc_for_slide_deck/specification.yml The same approach is also explored in: https://datatracker.ietf.org/doc/draft-prorock-cose-sd-cwt/ https://github.com/transmute-industries/sd-cwt/blob/main/test/sd-cwt/testcases/scitt-example/spec.yaml TLDR, I see a lot of use cases for yaml based claimsets (with disclosure annotations) and yaml based credential schemas (JSON Schemas in YAML). We've been serving YAML based JSON Schemas for Supply Chain oriented digital credentials in this CG work item: https://w3c-ccg.github.io/traceability-vocab/#open-api https://w3c-ccg.github.io/traceability-vocab/openapi/#get-/schemas/common/AgricultureInspectionGeneric.yml We would like to be able to negotiate for a given "credential schema" like this: GET https://vendor.example/schema/credential-type/v1 --accept application/schema+yaml or application/schema+json If there is a strong reason NOT to do this, critical feedback is also appreciated. Thanks again for your kind words, > R. > > > > On Mon, Feb 19, 2024 at 3:35 AM Roberto Polli <robipolli@gmail.com> > wrote: > >> > >> Hi Darrel + Rich, > >> > >> On Mon, 19 Feb 2024 at 04:48, Darrel Miller <darrel@tavis.ca> wrote: > >> > Congratulations to Roberto, Erik and Eemeli on getting over the > finish line with RFC 9512. It was great to see the deep thinking that went > into getting this document as clear and as comprehensive as possible. I am > confident that the time spent on getting this document right will save many > people from frustration in the future. > >> > >> Thanks to you Rich and all the wonderful IETF, YAML, OAS and > >> JSONSCHEMA communities that make it happen. > >> > >> The road to API mediatype standardization is still long, though :D > >> > >> Have a nice day, > >> R. > >> > >> > >> > ________________________________ > >> > From: httpapi <httpapi-bounces@ietf.org> on behalf of > rfc-editor@rfc-editor.org <rfc-editor@rfc-editor.org> > >> > Sent: Wednesday, February 14, 2024 5:01 PM > >> > To: ietf-announce@ietf.org <ietf-announce@ietf.org>; > rfc-dist@rfc-editor.org <rfc-dist@rfc-editor.org> > >> > Cc: rfc-editor@rfc-editor.org <rfc-editor@rfc-editor.org>; > drafts-update-ref@iana.org <drafts-update-ref@iana.org>; httpapi@ietf.org > <httpapi@ietf.org> > >> > Subject: [httpapi] RFC 9512 on YAML Media Type > >> > > >> > A new Request for Comments is now available in online RFC libraries. > >> > > >> > > >> > RFC 9512 > >> > > >> > Title: YAML Media Type > >> > Author: R. Polli, > >> > E. Wilde, > >> > E. Aro > >> > Status: Informational > >> > Stream: IETF > >> > Date: February 2024 > >> > Mailbox: robipolli@gmail.com, > >> > erik.wilde@dret.net, > >> > eemeli@gmail.com > >> > Pages: 13 > >> > Updates/Obsoletes/SeeAlso: None > >> > > >> > I-D Tag: draft-ietf-httpapi-yaml-mediatypes-10.txt > >> > > >> > URL: https://www.rfc-editor.org/info/rfc9512 > >> > > >> > DOI: 10.17487/RFC9512 > >> > > >> > This document registers the application/yaml media type and the +yaml > >> > structured syntax suffix with IANA. Both identify document > >> > components that are serialized according to the YAML specification. > >> > > >> > This document is a product of the Building Blocks for HTTP APIs > Working Group of the IETF. > >> > > >> > > >> > INFORMATIONAL: This memo provides information for the Internet > community. > >> > It does not specify an Internet standard of any kind. Distribution of > >> > this memo is unlimited. > >> > > >> > This announcement is sent to the IETF-Announce and rfc-dist lists. > >> > To subscribe or unsubscribe, see > >> > https://www.ietf.org/mailman/listinfo/ietf-announce > >> > https://mailman.rfc-editor.org/mailman/listinfo/rfc-dist > >> > > >> > For searching the RFC series, see https://www.rfc-editor.org/search > >> > For downloading RFCs, see https://www.rfc-editor.org/retrieve/bulk > >> > > >> > Requests for special distribution should be addressed to either the > >> > author of the RFC in question, or to rfc-editor@rfc-editor.org. > Unless > >> > specifically noted otherwise on the RFC itself, all RFCs are for > >> > unlimited distribution. > >> > > >> > > >> > The RFC Editor Team > >> > Association Management Solutions, LLC > >> > > >> > > >> > -- > >> > httpapi mailing list > >> > httpapi@ietf.org > >> > https://www.ietf.org/mailman/listinfo/httpapi > >> > >> -- > >> httpapi mailing list > >> httpapi@ietf.org > >> https://www.ietf.org/mailman/listinfo/httpapi > > > > > > > > -- > > > > > > ORIE STEELE > > Chief Technology Officer > > www.transmute.industries > > > > > -- ORIE STEELE Chief Technology Officer www.transmute.industries <https://transmute.industries>
- [httpapi] RFC 9512 on YAML Media Type rfc-editor
- Re: [httpapi] RFC 9512 on YAML Media Type Orie Steele
- Re: [httpapi] RFC 9512 on YAML Media Type Roberto Polli
- Re: [httpapi] RFC 9512 on YAML Media Type Darrel Miller
- Re: [httpapi] RFC 9512 on YAML Media Type Roberto Polli
- Re: [httpapi] RFC 9512 on YAML Media Type Orie Steele
- [httpapi] What is application/schema (was: Re: RF… Martin J. Dürst
- Re: [httpapi] What is application/schema (was: Re… Henry Andrews