diff --git a/lib/oci_image_layout.rb b/lib/oci_image_layout.rb index 7d1070d48..445fafa90 100644 --- a/lib/oci_image_layout.rb +++ b/lib/oci_image_layout.rb @@ -185,7 +185,8 @@ def initialize(io, **) class Index < Blob attr_reader :media_type, - :manifests + :manifests, + :version def initialize(io, fs:, **) data = JSON.parse(io.read) @@ -193,6 +194,7 @@ def initialize(io, fs:, **) super(io, media_type:, fs:, **) + @version = data['schemaVersion'] @manifests = data['manifests'].map do |manifest| Manifest.from_json(manifest, fs:) end