DependencyTrack / DependencyTrack/dependency-track

OpenAPI spec. wrong for PUT /api/v1/project return

Open
#4,979 2 comments 1 reaction 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.