CESNET / rousette

RESTCONF server for sysrepo
https://gerrit.cesnet.cz/q/project:CzechLight/rousette
Apache License 2.0
7 stars 2 forks source link

Check handling list keys in URI #13

Open peckato1 opened 1 month ago

peckato1 commented 1 month ago
  1. What if the list key is an identityref, enum, or leafrefs? Do we handle the prefixes well?
  2. Make a research about where URL encoding is allowed, where is it a must and where it is forbidden.
  3. What if the list key is complicated like it is a compound key of two leafs and one is of int type and the second one is something like union { string, identityref } and there is a when statement like "if the first key is even number, then the second key is string, otherwise it is the identityref (perhaps to an identity from another module)" . Is such YANG even allowed? And if so, do we handle such situations well?
peckato1 commented 1 month ago

Ad 1: Enum values are always specified without the module name (see https://www.rfc-editor.org/rfc/rfc7951#section-6.4)