DependencyTrack / DependencyTrack/dependency-track
OpenAPI spec. wrong for PUT /api/v1/project return
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior
While creating a project using PUT /api/v1/project with a client generated from OpenAPI spec. (here nswag), without an existing SBOM, `lastBomImport` is not returned. (omitted when null)
Return spec. for `Project` state `lastBomImport` is a required and present even if null.
DT: v4.13.2
### Proposed Behavior
PUT /api/v1/project return `Project` specification should set `lastBomImport` as omitted when null or ignored when not set. (or set to null)
### Checklist
- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this enhancement was already requested
Contributor guide
Assessment
This issue has not been assessed yet.