Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/app/models/repository_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class RepoLibrary(BaseModel):
library_name: str = Field(..., description='Discovered library name')
library_version: str = Field(..., description='Discovered library version')
ecosystem: str = Field(..., description='Ecosystem of the library (e.g., npm, pip, maven, etc.)')
ecosystem: Optional[str] = Field(None, description='Ecosystem of the library (e.g., npm, pip, maven, etc.). May be null for legacy records')
model_config = ConfigDict(populate_by_name=True)


Expand Down
2 changes: 1 addition & 1 deletion backend/app/views/library_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ async def handle_repo_scan_highest_risk(payload: dict):
lib_entry = {
"library_name": d.get('name'),
"library_version": normalize_version(d.get('version')) or d.get('version') or "unknown",
"ecosystem": d.get('ecosystem')
"ecosystem": d.get('ecosystem') or 'unknown'
}
grouped.setdefault(path, []).append(lib_entry)

Expand Down
Loading