Skip to content

Comments

Use Composite instead of Lists#2428

Merged
tomcrane merged 9 commits intoprezi-4from
p4-composite
Feb 20, 2026
Merged

Use Composite instead of Lists#2428
tomcrane merged 9 commits intoprezi-4from
p4-composite

Conversation

@azaroth42
Copy link
Member

@azaroth42 azaroth42 commented Feb 17, 2026

Per #2426 discussion, change body and target to be a single JSON object. If there's multiple, then wrap in an aggregate construction (Composite, List, Independents, Choice).

I think this is significantly cleaner than singleton arrays 99% of the time.

(Thanks to @stephenwf!)

@azaroth42 azaroth42 marked this pull request as draft February 17, 2026 00:49
Copy link
Contributor

@tomcrane tomcrane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe an additional sentence in index.md where List is used just calling it out (and referring the reader to the model docs)

"target": ["https://example.org/iiif/presentation/examples/manifest-with-containers/canvas"]
},
"target": {
"id": "https://example.org/iiif/presentation/examples/manifest-with-containers/canvas".
Copy link
Member

@mikeapp mikeapp Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a comma (? diff shows a deleted period at the end of the line)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thank you!

]
},
"target": "https://example.org/iiif/presentation/examples/manifest-composite-two-canvases/canvas/c1#xywh=0,0,300,300"
"target": {}
Copy link
Member

@mikeapp mikeapp Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove }

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@tomcrane tomcrane merged commit 69b51a8 into prezi-4 Feb 20, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants