Adding extension for attachments

So you mean in the cases where contentType is present and set to
multipart/form-data but no attachments are present?

On Wednesday, October 15, 2014, Mike Amundsen <notifications@github.com>
wrote:

> In attachment.md:
>
> > +A client MAY receive a CollectionJson document containing a Write template which accepts attachments which the client can use to send files.
> > +
> > +### Content-type property
> > +This extension defines a new optional property for the template object: `content-type`. The two valid values for `content-type ` are:
> > +
> > +* `multipart/form-data` (this is the one to use for uploading attachments)
> > +* `application/vnd.collection+json` (this is the one to use for sending regular CJ documents) If the content-type property is missing, clients SHOULD use `application/vnd.collection+json` when sending a CJ document. If the content-type property is not supported and/or the provided value is not understood by the client, the client MUST use `application/vnd.collection+json` when sending CJ documents.
> > +
> > +### Attachment property
> > +This extension defines a new property for the data object: `attachment`. This property is only valid for data objects that are children of the template object.
> > +
> > +The two valid values for the `attachment` property:
> > +
> > +* true (treat this data element as an attachment to be uploaded)
> > +* false (treat this data element as a text element) If the client does not support the `attachment` property and/or the value of this property is not understood, the client MUST treat the data element as a text element.
> > +
>
> actually, it should read:
>
> "if the attachment property is missing or set to a value to client does
> not understand, the client SHOULD treat the data element as a text element."
>
> this is to cover future cases where there may be other values for
> attachment or there are changes to the contentType property.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/collection-json/extensions/pull/7/files#r18935874>.
>