Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More integration work for Image Sources #311

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading