From 00895d07a74982afe2956422da52d964261de9dc Mon Sep 17 00:00:00 2001 From: Alexander van der Grinten Date: Sun, 31 Mar 2024 10:09:01 +0200 Subject: [PATCH] schema: Condense sources definition --- xbstrap/schema.yml | 48 ++++------------------------------------------ 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/xbstrap/schema.yml b/xbstrap/schema.yml index 209663a..4e2a073 100644 --- a/xbstrap/schema.yml +++ b/xbstrap/schema.yml @@ -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: