From db85dada7ba87109a8375f6ab12c847ff454d5ca Mon Sep 17 00:00:00 2001 From: "g. nicholas d'andrea" Date: Fri, 27 Sep 2024 21:56:36 -0400 Subject: [PATCH] Allow omitting offset/length in source range... ... if and only if the range refers to the entire source --- schemas/materials/source-range.schema.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/schemas/materials/source-range.schema.yaml b/schemas/materials/source-range.schema.yaml index 7d1d862c..8af6b2e6 100644 --- a/schemas/materials/source-range.schema.yaml +++ b/schemas/materials/source-range.schema.yaml @@ -26,10 +26,15 @@ properties: $ref: "schema:ethdebug/format/materials/reference" range: + title: Bytes range within source contents + description: | + Ranges that span the entire source contents **may** omit this field + as a shorthand. This field is otherwise **required**. type: object properties: offset: - description: Byte offset at beginning of range + description: | + Byte offset at beginning of range. $ref: "schema:ethdebug/format/data/unsigned" length: @@ -46,7 +51,6 @@ unevaluatedProperties: false required: - source - - range examples: - source: