fix: update validation for qualityScores array in topsort-api-v2.yml
#196
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Our documentation for qualityScores array inside the products object in payload to engine's

/v2/auctionsendpoint is not fully aligned with the actual validation. The validation for qualityScores array enforce a non-zero constraint, but the description and range in the docs are not explicit in the fact that aqualityScoresarray with item(s) as zero will be rejected.Additionally, Mintlify seems to have trouble with rendering the correct range from OpenAPI specs 3.1.0's
exclusiveMinimumparameter. To correctly render the range to be exclusive of 0, an additionalminimumparameter of 0 need to be added, hence the duplicate minimums in the yml file. This can be removed from once Mintlify fully support the exclusiveMinimum parameter.Key Changes:
For
topsort-api-v2.yml:Note
Updates OpenAPI spec to align docs with validation for
products.qualityScores.minimum: 0while keepingexclusiveMinimum: 0to aid rendering; retainsmaximum: 1qualityScoresdescriptionWritten by Cursor Bugbot for commit daac005. This will update automatically on new commits. Configure here.