Open kelvinqian00 opened 3 years ago
Note: there are the following specs in xapi-schema:
(s/def :xapi.common.param/agent
(json (s/nonconforming ::xs/actor)))
(s/def :xapi.statements.GET.request.params/agent
:xapi.common.param/agent)
(s/def :xapi.agents.GET.request.params/agent
:xapi.document.param/agent)
however these do not work as ::xs/actor
covers Anonymous Groups, which do not have IFIs.
this is simply the spec for statement resource queries
I don't get it, it says :xapi.agents.GET.request/params
. did you mean state?
Oh I see what you mean. My mistake I thought ::get-person-params
used :xapi.statements.GET.request/params
. Still, the point in my followup comment stands.
Yep, that last bit seems correct, it should be changed to agent specifically. Make a PR on xapi-schema
for that
The following is the current params spec for
get-person
:~However, this is incorrect, since this is simply the spec for statement resource queries, not agent resource queries. In the former,
agent
is an optional parameter, but in the latter,agent
is required. Therefore, during generative testing,-get-person
would receive missingagent
values, causing unnecessary errors.~EDIT: I likely used these specs wrong in lrsql and incorrectly determined the source of the issue. The followup comment still stands, however.