Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tianjing-li committed Jan 21, 2025
1 parent c1d337d commit 79b1616
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/backend/schemas/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DeploymentDefinition(BaseModel):
title="Description",
description="Description of the deployment",
)
config: dict[str, str | None] = Field(
config: dict[str, str] = Field(
{},
title="Config",
description="Config for the deployment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1438,14 +1438,7 @@ export const $DeploymentDefinition = {
},
config: {
additionalProperties: {
anyOf: [
{
type: 'string',
},
{
type: 'null',
},
],
type: 'string',
},
type: 'object',
title: 'Config',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ export type DeploymentDefinition = {
* Config for the deployment
*/
config?: {
[key: string]: string | null;
[key: string]: string;
};
/**
* Is deployment is available
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1438,14 +1438,7 @@ export const $DeploymentDefinition = {
},
config: {
additionalProperties: {
anyOf: [
{
type: 'string',
},
{
type: 'null',
},
],
type: 'string',
},
type: 'object',
title: 'Config',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ export type DeploymentDefinition = {
* Config for the deployment
*/
config?: {
[key: string]: string | null;
[key: string]: string;
};
/**
* Is deployment is available
Expand Down

0 comments on commit 79b1616

Please sign in to comment.