json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

Update output to make the root object an overview with results contained inside

Open gregsdennis opened this issue 1 year ago • 2 comments

This makes progress toward some of what is discussed in https://github.com/json-schema-org/json-schema-spec/issues/1065.

Basically, we need a place to include metadata about an evaluation. This PR wraps the existing output in a root node that can contains any such metadata.

(As a side effect, it creates a purpose for the root object in the case of the "list" format, which could have just been an array before.)

gregsdennis avatar Feb 08 '24 23:02 gregsdennis

Re-reading through the issue, it seems that dialect should be part of the output unit itself rather than the summary. Still... I think the summary root node is a good addition.

gregsdennis avatar Feb 08 '24 23:02 gregsdennis

I'll remove dialect from this PR and do another one for that then.

I know we had a discussion somewhere on having some more "global" details in the root node, though...

gregsdennis avatar Feb 13 '24 20:02 gregsdennis