Skip to content

Commit

Permalink
More integration work for Image Sources (#311)
Browse files Browse the repository at this point in the history
* More integration work for Image Sources
- add to post/patch
- add to stack spec

* update hybrid identifier
  • Loading branch information
mattoni authored Feb 27, 2024
1 parent 2e23502 commit 5383229
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 3 deletions.
5 changes: 5 additions & 0 deletions components/schemas/HybridIdentifer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: HybridIdentifier
type: string
description: Either a resource ID (objectid - i.e. 651586fca6078e98982dbd90) or a resource Identifier (human-readable)
example: my-image-source
2 changes: 1 addition & 1 deletion components/schemas/images/Image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ properties:
properties:
integration_id:
description: The ID of the Integration used to do the build.
$ref: ../ID.yml
$ref: ../HybridIdentifer.yml
config:
type: object
description: Configuration settings for the image.
Expand Down
4 changes: 2 additions & 2 deletions components/schemas/images/sources/ImageSource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ properties:
- integration_id
properties:
integration_id:
description: The ID of the Integration used to do the build.
$ref: ../../ID.yml
description: The ID or Identifier of the Integration used to do the build.
$ref: ../../HybridIdentifer.yml
creator:
"$ref": "../../creators/CreatorScope.yml"
state:
Expand Down
8 changes: 8 additions & 0 deletions components/schemas/stacks/spec/StackSpecContainerImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ properties:
type: object
additionalProperties:
type: string
builder:
type: object
nullable: true
required:
- integration_id
properties:
integration_id:
$ref: ../../../../components/schemas/HybridIdentifer.yml
8 changes: 8 additions & 0 deletions public/paths/images/sources/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ patch:
description: A name for the image source.
origin:
$ref: "../../../../components/schemas/images/origins/ImageOrigin.yml"
builder:
type: object
nullable: true
required:
- integration_id
properties:
integration_id:
$ref: ../../../../components/schemas/HybridIdentifer.yml
about:
type: object
description: User defined information about the image source.
Expand Down
8 changes: 8 additions & 0 deletions public/paths/images/sources/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ post:
description: A name for the image source.
identifier:
$ref: ../../../../components/schemas/Identifier.yml
builder:
type: object
nullable: true
required:
- integration_id
properties:
integration_id:
$ref: ../../../../components/schemas/HybridIdentifer.yml
type:
$ref: ../../../../components/schemas/images/sources/ImageSourceType.yml
origin:
Expand Down

0 comments on commit 5383229

Please sign in to comment.