JSON Hyper-Schema: A Vocabulary for Hypermedia Annotation of JSON
draft-wright-json-schema-hyperschema-00

Document Type Active Internet-Draft (individual)
Last updated 2016-10-13
Replaces draft-luff-json-hyper-schema
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Internet Engineering Task Force                           A. Wright, Ed.
Internet-Draft
Intended status: Informational                                   G. Luff
Expires: April 16, 2017                                 October 13, 2016

   JSON Hyper-Schema: A Vocabulary for Hypermedia Annotation of JSON
                draft-wright-json-schema-hyperschema-00

Abstract

   JSON Schema is a JSON based format for defining the structure of JSON
   data.  This document specifies hyperlink- and hypermedia-related
   keywords of JSON Schema for annotating JSON documents with hyperlinks
   and instructions for processing and manipulating remote JSON
   resources through hypermedia environments like HTTP.

Note to Readers

   The issues list for this draft can be found at <https://github.com/
   json-schema-org/json-schema-spec/issues>.

   For additional information, see <http://json-schema.org/>.

   To provide feedback, use this issue tracker, the communication
   methods listed on the homepage, or email the document editors.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on April 16, 2017.

Wright & Luff            Expires April 16, 2017                 [Page 1]
Internet-Draft              JSON Hyper-Schema               October 2016

Copyright Notice

   Copyright (c) 2016 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Conventions and Terminology . . . . . . . . . . . . . . . . .   3
   3.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
   4.  Schema keywords . . . . . . . . . . . . . . . . . . . . . . .   5
     4.1.  base  . . . . . . . . . . . . . . . . . . . . . . . . . .   5
     4.2.  links . . . . . . . . . . . . . . . . . . . . . . . . . .   6
     4.3.  media . . . . . . . . . . . . . . . . . . . . . . . . . .   7
       4.3.1.  Properties of "media" . . . . . . . . . . . . . . . .   7
       4.3.2.  Example . . . . . . . . . . . . . . . . . . . . . . .   7
     4.4.  readOnly  . . . . . . . . . . . . . . . . . . . . . . . .   8
   5.  Link Description Object . . . . . . . . . . . . . . . . . . .   8
     5.1.  href  . . . . . . . . . . . . . . . . . . . . . . . . . .   9
       5.1.1.  URI Templating  . . . . . . . . . . . . . . . . . . .   9
     5.2.  rel . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
       5.2.1.  Security Considerations for "self" links  . . . . . .  13
     5.3.  title . . . . . . . . . . . . . . . . . . . . . . . . . .  14
     5.4.  targetSchema  . . . . . . . . . . . . . . . . . . . . . .  15
       5.4.1.  Security Considerations for "targetSchema"  . . . . .  15
     5.5.  mediaType . . . . . . . . . . . . . . . . . . . . . . . .  16
       5.5.1.  Security concerns for "mediaType" . . . . . . . . . .  17
     5.6.  Submission Form Properties  . . . . . . . . . . . . . . .  18
       5.6.1.  method  . . . . . . . . . . . . . . . . . . . . . . .  18
       5.6.2.  encType . . . . . . . . . . . . . . . . . . . . . . .  18
       5.6.3.  schema  . . . . . . . . . . . . . . . . . . . . . . .  19
   6.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  19
     6.1.  Normative References  . . . . . . . . . . . . . . . . . .  19
     6.2.  Informative References  . . . . . . . . . . . . . . . . .  20
   Appendix A.  Acknowledgments  . . . . . . . . . . . . . . . . . .  21
   Appendix B.  Change Log . . . . . . . . . . . . . . . . . . . . .  21
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  22
Show full document text