fossas / fossas/fossapi

`list issues` is currently unusable: `category` required by API, no flag exposed

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
0
Forks
0
Avg merge
2h 7m
Merged PRs (30d)
2

Description

## What

`fossapi list issues` today always fails:

```
$ fossapi list issues --json --count 1
Error: FOSSA API error: Validation error: Invalid option: expected one of
"licensing"|"vulnerability"|"quality" at "category"
```

The underlying `/api/v2/issues` endpoint requires a `category` query param,
but the CLI neither passes a default nor exposes a flag.

## Proposed fix

Add a `--category` flag (required, or defaulting to `licensing`), and while
you're in there, add filters the v2 endpoint supports:

```
fossapi list issues --category licensing|vulnerability|quality
[--status active|ignored|all]
[--page N] [--count N]
[--json]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.