From 2d051fc48b27c63d8c34c2a8a079b5114f1224d6 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Mon, 27 Oct 2025 19:34:30 -0400 Subject: [PATCH] Fix NestFilterData properties to be nullable for optional filtering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Make all string properties nullable (Name, Customer, Comments, etc.) - Fixes "all fields are required" error in Swagger UI and API validation - Filter properties are optional query parameters, not required fields All filter logic already checks for null values before applying filters, so this change aligns the model definition with its actual usage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- PepApi.Core/Models/NestFilterData.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PepApi.Core/Models/NestFilterData.cs b/PepApi.Core/Models/NestFilterData.cs index f0e1f37..4e40763 100644 --- a/PepApi.Core/Models/NestFilterData.cs +++ b/PepApi.Core/Models/NestFilterData.cs @@ -7,11 +7,11 @@ namespace PepApi.Core.Models { public class NestFilterData { - public string Name { get; set; } + public string? Name { get; set; } - public string Customer { get; set; } + public string? Customer { get; set; } - public string Comments {get;set;} + public string? Comments { get; set; } public DateTime? StartDate { get; set; } @@ -19,15 +19,15 @@ namespace PepApi.Core.Models public int? MaterialNumber { get; set; } - public string MaterialGrade { get; set; } + public string? MaterialGrade { get; set; } - public string ProgrammedBy { get; set; } + public string? ProgrammedBy { get; set; } - public string Notes { get; set; } + public string? Notes { get; set; } - public string Status { get; set; } + public string? Status { get; set; } - public string Application { get; set; } + public string? Application { get; set; } public IQueryable Apply(IQueryable nests) {