-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Deployment
model definition (#271)
#258 added fields to the `Deployment` model provided by the new `deployments.{get,list,update}` endpoints. However, those were implemented against a version of the OpenAPI specification that disagreed with the actual API responses. Specifically, the `min_instances` and `max_instances` properties were listed as subproperties of a `scaling` object rather than direct fields. The result — as reported in #270 — was Pydantic validation errors like this: ``` raise validation_error pydantic.v1.error_wrappers.ValidationError: 1 validation error for Deployment current_release -> configuration -> scaling field required (type=value_error.missing)" ``` This PR updates the `Deployment` model to correctly locate `min_instances` and `max_instances` as properties of `current_release.configuration`. Signed-off-by: Mattt Zmuda <mattt@replicate.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters