Given a (possibly) partial xapi path:
Return a map with keys:
:valid? Is the path valid per xapi?
:next-keys - Coll of possible further keys. May contain the special key
'idx
to denote that the current structure is an array.
:leaf-type - One of the following symbols:
'string
'number
'boolean
'null
'json - In the case of extensions, might be any JSON scalar!
:complete? - For the purposes of UI, is the path complete (ie. no further
segments should be offered)? Will be false for extension paths.
Given a (possibly) partial xapi path: Return a map with keys: :valid? Is the path valid per xapi? :next-keys - Coll of possible further keys. May contain the special key `'idx` to denote that the current structure is an array. :leaf-type - One of the following symbols: 'string 'number 'boolean 'null 'json - In the case of extensions, might be any JSON scalar! :complete? - For the purposes of UI, is the path complete (ie. no further segments should be offered)? Will be false for extension paths.
(parent-paths path)
Given a path vector, return a seq of parent paths in reverse order. Does not return the root path [].
Given a path vector, return a seq of parent paths in reverse order. Does not return the root path [].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close