Skip to content

Commit

Permalink
workaround generation issue with kiota
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Peruffo <[email protected]>
  • Loading branch information
andreaTP committed Mar 25, 2024
1 parent e0e8921 commit 85a062b
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 259 deletions.
29 changes: 25 additions & 4 deletions api/openapi/model-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ components:
author:
description: Name of the author.
type: string
WithBaseArtifactUpdate:
WithBaseArtifactUpdate:
type: object
properties:
uri:
Expand Down Expand Up @@ -1293,18 +1293,39 @@ components:
type: string
ModelArtifactUpdate:
description: An ML model artifact.
type: object
allOf:
- $ref: "#/components/schemas/WithBaseArtifactUpdate"
- $ref: "#/components/schemas/WithBaseResourceUpdate"
- $ref: "#/components/schemas/WithModelArtifactUpdate"
# TODO: WORKAROUND: WithBaseArtifactUpdate got picked up as direct parent - inlining it for now
# - $ref: "#/components/schemas/WithBaseArtifactUpdate"
- type: object
properties:
uri:
description: |-
The uniform resource identifier of the physical artifact.
May be empty if there is no physical artifact.
type: string
state:
$ref: "#/components/schemas/ArtifactState"
ModelArtifactCreate:
description: An ML model artifact.
type: object
allOf:
- $ref: "#/components/schemas/WithBaseArtifactUpdate"
- $ref: "#/components/schemas/WithModelArtifactUpdate"
- $ref: "#/components/schemas/WithBaseResourceCreate"
- $ref: "#/components/schemas/WithBaseResourceUpdate"
- $ref: "#/components/schemas/WithModelArtifactUpdate"
# TODO: WORKAROUND: WithBaseArtifactUpdate got picked up as direct parent - inlining it for now
# - $ref: "#/components/schemas/WithBaseArtifactUpdate"
- type: object
properties:
uri:
description: |-
The uniform resource identifier of the physical artifact.
May be empty if there is no physical artifact.
type: string
state:
$ref: "#/components/schemas/ArtifactState"
Error:
description: Error code and message.
required:
Expand Down
Loading

0 comments on commit 85a062b

Please sign in to comment.