Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update solver openapi spec #2323

Merged
merged 4 commits into from
Jan 30, 2024
Merged

Update solver openapi spec #2323

merged 4 commits into from
Jan 30, 2024

Conversation

MartinquaXD
Copy link
Contributor

Description

Some external solvers want to start implementing the new API and it seems we have a few mismatches between code and documentation.

How to test

Carefully check against the code

@MartinquaXD MartinquaXD marked this pull request as ready for review January 24, 2024 12:27
@MartinquaXD MartinquaXD requested a review from a team as a code owner January 24, 2024 12:27
@@ -56,7 +68,7 @@ paths:
description: |
The kind of notification.
type: string
enum: [Timeout, EmptySolution, DuplicatedSolutionId, SimulationFailed, ZeroScore, ScoreHigherThanQuality, SuccessProbabilityOutOfRange, ObjectiveValueNonPositive, NonBufferableTokensUsed, SolverAccountInsufficientBalance, Success, Revert, Cancelled, Failed, PostprocessingTimedOut]
enum: [timeout, emptySolution, duplicatedSolutionId, simulationFailed, zeroScore, scoreHigherThanQuality, successProbabilityOutOfRange, objectiveValueNonPositive, nonBufferableTokensUsed, solverAccountInsufficientBalance, success, revert, driverError, cancelled, fail, postprocessingTimedOut]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simulationRevert instead of cancelled, at least the code says

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the notifications the solver currently understands.
Which part of the code are you referring to?

@MartinquaXD MartinquaXD enabled auto-merge (squash) January 30, 2024 21:27
@MartinquaXD MartinquaXD merged commit 5304218 into main Jan 30, 2024
8 checks passed
@MartinquaXD MartinquaXD deleted the update-solver-openapi-spec branch January 30, 2024 21:32
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants