Re: [web-nfc] Add records depth check (#621)

So the idea is to enforce a depth level hardcoded to 2 when creating NDEF messages from a source.

There is no depth restriction on reads, right? 

Coming from there, I was pondering whether is it worth to expose the max depth to developers (up to a hardcoded ceiling bigger than 2), as a depth of 2 seems a good Gaussian value, but there might be use cases for more. I guess if that is the case, we'd get issues and could extend the API later. I am fine with 2.

If all this is intended, LGTM.


-- 
GitHub Notification of comment by zolkis
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/621#issuecomment-919995598 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 September 2021 12:58:51 UTC