Skip to content

Commit

Permalink
Merge pull request #844 from roboflow/fix/issue_with_workflows_schema…
Browse files Browse the repository at this point in the history
…_endpoint

Fix issue with workflows schema endpoint
  • Loading branch information
PawelPeczek-Roboflow authored Nov 28, 2024
2 parents a011334 + c3d3800 commit ed15d1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions inference/core/entities/responses/workflows.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any, Dict, List, Optional, Union

from pydantic import BaseModel, Field
from pydantic import BaseModel, ConfigDict, Field

from inference.core.workflows.core_steps.common.query_language.entities.introspection import (
OperationDescription,
Expand Down Expand Up @@ -160,9 +160,8 @@ class ExecutionEngineVersions(BaseModel):


class WorkflowsBlocksSchemaDescription(BaseModel):
blocks_schema: dict = Field(
description="Schema for validating block definitions", alias="schema"
)
model_config = ConfigDict(protected_namespaces=())
schema: dict = Field(description="Schema for validating block definitions")


class DescribeInterfaceResponse(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ def get_workflow_schema_description() -> WorkflowsBlocksSchemaDescription:
available_blocks=available_blocks
)
schema = workflow_definition_class.model_json_schema()
return WorkflowsBlocksSchemaDescription(blocks_schema=schema)
return WorkflowsBlocksSchemaDescription(schema=schema)

0 comments on commit ed15d1d

Please sign in to comment.