Skip to content

Commit

Permalink
Replace array with obj
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek committed Jun 10, 2021
1 parent 57e9fba commit b532033
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion code/go/internal/spec/statik.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/packages/good/_dev/build/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependencies:
- name: ecs
ecs:
reference: git@7a11f3e1f7d8f05e8f06623fd98254b8cb34c441
31 changes: 14 additions & 17 deletions versions/1/_dev/build/build.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,20 @@ spec:
additionalProperties: false
properties:
dependencies:
type: array
type: object
description: Package dependencies
items:
type: object
additionalProperties: false
properties:
name:
type: string
description: Name of the dependency
enum:
- ecs
reference:
type: string
description: Source reference
pattern: 'git@[a-z0-9]{40}'
required:
- name
- reference
additionalProperties: false
properties:
ecs:
description: ECS dependency
type: object
additionalProperties: false
properties:
reference:
type: string
description: Source reference
pattern: 'git@[a-z0-9]{40}'
required:
- reference
required:
- dependencies

0 comments on commit b532033

Please sign in to comment.