how does webfinger represent numbers

9 переглядів
Перейти до першого непрочитаного повідомлення

Melvin Carvalho

не прочитано,
28 лип. 2013 р., 12:29:3028.07.13
Кому: webf...@googlegroups.com
I've seen two instances:

 "properties" : { "http://webfinger.example/mail/port" : "993" }

and

       "properties" :
       {
         "http://blgx.example.net/ns/version" : 1.3,
         "http://blgx.example.net/ns/ext" : null
       },

One is quoted and one isnt.  Do these correspond to he JSON types of number, string, boolean etc. ?

Will Norris

не прочитано,
28 лип. 2013 р., 22:32:4828.07.13
Кому: webf...@googlegroups.com
yeah, since the document is JSON, they would be the relevant JSON type.  http://tools.ietf.org/html/draft-ietf-appsawg-webfinger-16#section-4.4.3 defines property values as strings or null, so the JSON number would be invalid.


--
 
---
You received this message because you are subscribed to the Google Groups "WebFinger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webfinger+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Melvin Carvalho

не прочитано,
28 лип. 2013 р., 22:41:2428.07.13
Кому: webf...@googlegroups.com
On 29 July 2013 04:32, Will Norris <wi...@willnorris.com> wrote:
yeah, since the document is JSON, they would be the relevant JSON type.  http://tools.ietf.org/html/draft-ietf-appsawg-webfinger-16#section-4.4.3 defines property values as strings or null, so the JSON number would be invalid.

Thanks Will!

So I guess the "1.3" example in the spec should be quoted.

Paul E. Jones

не прочитано,
28 лип. 2013 р., 23:59:3228.07.13
Кому: webf...@googlegroups.com

The 1.3 (without quotes) is an error in the spec.  I’ve already fixed that in the next draft to be published.  These are always either strings or null.

 

Paul

 

--

Відповісти всім
Відповісти автору
Переслати
0 нових повідомлень