Skip to content

[Bug]: first=501 accepted despite schema max=500 #3569

@JerryNixon

Description

@JerryNixon

The schema defines entity.health.first with min: 1, max: 500, and DAB correctly rejects first=0 with "Invalid value for first: 0. Value must be greater than 0." However, first=501 is accepted without error.

Expected

DAB should reject first=501 at config deserialization with a message like "Invalid value for first: 501. Value must be at most 500."

Actual

DAB starts normally and runs health checks with first=501. The query becomes SELECT TOP 502 ..., which works but exceeds the documented maximum.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions