Open amarjandu opened 4 years ago
Related to this issue, if i try to name the resource_type to = projects
I end up with,
{
"detail": "'string' does not match '[A-z]\\\\w*[^\\\\W_]:[A-z]\\\\w*[^\\\\W_]'",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}
I don't see this regex string within the repository, the closest thing seems to be policy_action https://github.com/HumanCellAtlas/fusillade/blob/691b9049e2057f735c4611a6bd1acae752be6149/fusillade-api.yml#L1506
The swagger page, shows a policy document present within the default json object that is sent up with the request. Upon removing the owner_policy
object, the request was created/handled correctly..
I believe the regex used to verify the resource_type_name is verified against the wrong schema... I'm unable to call the command
hca auth post-v1-resource --resource-type-name dss:project
Within the YAML:
i think the ref should change to $ref: '#/components/schemas/resource_name'
But i could be mistaken // not using the api correctly.