Skip to content

Commit 01badb4

Browse files
committed
fix property schema checks
1 parent 24ddce2 commit 01badb4

3 files changed

Lines changed: 65 additions & 74 deletions

File tree

Build-LMFilterValidationConfig.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,9 @@ foreach ($endpoint in $EndpointToSchema.Keys | Sort-Object) {
149149
$properties = $EndpointToSchema[$endpoint].Properties
150150
$schema = $EndpointToSchema[$endpoint].Schema
151151

152-
# Add special property fields that are always valid for filtering
153-
$specialProperties = @('customProperties', 'systemProperties', 'autoProperties', 'inheritedProperties')
154-
$allProperties = @($properties) + $specialProperties | Sort-Object -Unique
155-
156-
$Config[$endpoint] = $allProperties
152+
# Only include properties that actually exist in the schema
153+
# Don't add special properties if they're not defined in the API
154+
$Config[$endpoint] = $properties | Sort-Object -Unique
157155

158156
Write-Verbose "Endpoint: $endpoint -> Schema: $schema -> Properties: $($properties.Count)"
159157
}

0 commit comments

Comments
 (0)