Skip to content

Conversation

@mikeschinkel
Copy link

Summary

Add table with links for Examples section and related revisions — no normative changes.

Updates

  • Added an overview table of all examples for quick scanning
  • Promoted Examples to ## level and marked as non-normative
  • Introduced Array Move and Array Replace examples
  • Standardized heading titles and ordering (Update, Copy, Move, Array)
  • Added missing anchors and cross-links
  • Moved File Naming Convention to Appendix A; Revision History to Appendix B
  • Grammar and style consistency updates (“moves (renames)” etc.)

Note for review

The x-oai-traits example currently defines an array (['paged']), while the selector
$.paths.*.get[?@.x-oai-traits.paged] assumes an object.

Please verify whether { paged: true } or an array-membership test was intended.


Only content above ## Examples that has been changed is adding a link target and fixing broken links.

- Add Examples summary table
- Reorganize Examples section for readability and structure.
- Move File Naming Conventions section to appendix and resequenced.
- Add Array Move and Array Replace examples.
- Standardized headings.
- Add #action-object target on Action Object heading.
- Remove unused #overlay-actions hyperlink.
- No other content above ## Examples was changed.
@mikeschinkel
Copy link
Author

Also, please review my array move and array replace examples, just to have a 2nd set of eyes on them.

Copy link
Owner

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! Overall, I think this is a great improvement over what we have.
My main concern is that a large number of the changes are actually unrelated to the copy proposal. I think it'd make more sense to suggest them separately so we can review them independently and both have a chance to get merged faster.

### Overlay

An Overlay is a JSON or YAML structure containing an ordered list of [Action Objects](#overlay-actions) that are to be applied to the target document. Each [Action Object](#action-object) has a `target` property and a modifier type (`update` or `remove`). The `target` property is a [[RFC9535|JSONPath]] query expression that identifies the elements of the target document to be updated and the modifier determines the change.
An Overlay is a JSON or YAML structure containing an ordered list of [Action Objects](#action-object) that are to be applied to the target document. Each Action Object has a `target` property and a modifier type (`update` or `remove`). The `target` property is a [[RFC9535|JSONPath]] query expression that identifies the elements of the target document to be updated and the modifier determines the change.
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
An Overlay is a JSON or YAML structure containing an ordered list of [Action Objects](#action-object) that are to be applied to the target document. Each Action Object has a `target` property and a modifier type (`update` or `remove`). The `target` property is a [[RFC9535|JSONPath]] query expression that identifies the elements of the target document to be updated and the modifier determines the change.
An Overlay is a JSON or YAML structure containing an ordered list of [Action Objects](#action-object) that are to be applied to the target document. Each Action Object has a `target` property and a modifier type (`update`, `remove`, or `copy`). The `target` property is a [[RFC9535|JSONPath]] query expression that identifies the elements of the target document to be updated and the modifier determines the change.

Copy link
Author

Choose a reason for hiding this comment

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

@baywet — I don't know how #overlay-actions slipped through the cracks, I know I fixed that, but somehow it got reverted.

Since this is the only change you are looking for, can you just decline this PR and then apply this one change yourself rather than have me cut the much larger PR down? Then I will target the PR to the OAI repo instead.

Alternately I can submit a new PR with this one change. Let me know.

Copy link
Owner

Choose a reason for hiding this comment

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

by this one change, do you mean the addition of "or copy"?

Copy link
Author

Choose a reason for hiding this comment

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

@baywet — My PR was just suggestions, so whatever aspects you feel apply to and improve your PR.

baywet added a commit that referenced this pull request Oct 29, 2025
@mikeschinkel

Signed-off-by: Vincent Biret <vincentbiret@hotmail.com>
@baywet
Copy link
Owner

baywet commented Oct 29, 2025

Thanks. I've ported the changes immediately relevant to the copy proposal in OAI@b987b53

I'll now rebase my branch onto the latest main changes, so the link might be broken really soon. But rest assured that contributions are in! Thanks! Closing.

@baywet baywet closed this Oct 29, 2025
@mikeschinkel
Copy link
Author

@baywet — Good deal. Glad I was able to contribute something useful.

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.

2 participants