Skip to content

improved validation in product controller #9

improved validation in product controller

improved validation in product controller #9

Triggered via push September 10, 2024 20:09
Status Failure
Total duration 1m 19s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
build
Process completed with exit code 1.
build: InventoryManagementSystem/Models/Supplier.cs#L13
Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Models/Supplier.cs#L13
Non-nullable property 'Address' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Models/Supplier.cs#L13
Non-nullable property 'Phone' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Models/Product.cs#L15
Non-nullable property 'Category' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Models/Product.cs#L18
Non-nullable property 'CategoryName' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Models/Product.cs#L22
Non-nullable property 'Supplier' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Models/Product.cs#L25
Non-nullable property 'SupplierName' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Dtos/ProductDto.cs#L6
Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Dtos/ProductDto.cs#L9
Non-nullable property 'Description' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: InventoryManagementSystem/Controllers/ProductController.cs#L36
Possible null reference assignment.