Skip to content

Commit

Permalink
schema: Condense sources definition
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed Mar 31, 2024
1 parent 6b2b6bf commit 00895d0
Showing 1 changed file with 4 additions and 44 deletions.
48 changes: 4 additions & 44 deletions xbstrap/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,50 +212,10 @@ properties:
'sources':
type: array
items:
type: object
additionalProperties: false
required: ['name']
properties:
'name':
type: string
'version':
type: string
'subdir':
type: string
'rolling_version':
type: boolean
# URL sources.
'url':
type: string
'filename': { type: string }
'format':
type: string
'extract_path':
type: string
'patch-path-strip':
type: integer
'checksum':
type: string
# VCS sources.
'git':
type: string
'hg':
type: string
'svn':
type: string
'tag':
type: string
'branch':
type: string
'commit':
type: string
'rev':
type: string
'disable_shallow_fetch':
type: boolean
'regenerate': { $ref: '#/definitions/build_steps' }
'sources_required': { $ref: '#/definitions/source_deps' }
'tools_required': { $ref: '#/definitions/tool_deps' }
allOf:
- type: object
required: ['name']
- { $ref: '#/definitions/nested_source' }
'tools':
type: array
items:
Expand Down

0 comments on commit 00895d0

Please sign in to comment.