Hi FND

> I've had some scenic train time to think about this today, or perhaps it
> was the wind tunnel clearing my pathways


Wind tunnel?!? Sounds like that could be helpful for my occasional mental
befuddlement.


> - either way, I've come to the
> conclusion that a tiddler's `type` refers exclusively to that tiddler's
> `text`.


If I understood cdent correctly, it was to suggest the distinction between
the type of the tiddler (which is to say the type that should be used to
interpret it's body text) and the type of the representation that is PUT to
change it.


> Thus PUTing a tiddler with `type: text/x-tiddler` is not only
> redundant, it also eliminates the standard mechanism for describing the
> content type of the tiddler body. IOW, it's a hack.


At the moment, the content-type for the HTTP PUT to write a tiddler is
"application/json"; the type field of the tiddler is in the JSON body of
the request. cdent is suggesting that we change it to something else, which
would be an application specific json content type.

>
> In short: If the body is $contentType, then `type` should say so.
>

I think we agree, if `type` is the `type` field of the tiddler, not the
content-type of the HTTP request.


>
> Where `text/x-tiddler` (or whatever) makes perfect sense is on GET, as
> that's where the client states what it expects to receive - and clearly
> in the case of tiddler editors, that's a tiddler rather than "some
> JSON".
>
> (Note that `text/x-tiddler` on PUT would make sense if the HTTP
> Content-Type header didn't end up as the respective tiddler's `type`
> attribute - but that's a different, probably unhelpful discussion.)
>

I think that is the problem right there: at the moment TiddlyWeb conflates
the two types in the special case of application/json.

Best wishes

Jeremy



> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to