Skip to content

Clarify container response shapes for JSON media types - #6

Closed
jeswr wants to merge 7 commits into
mainfrom
codex/issue-246-container-negotiation
Closed

jeswr wants to merge 7 commits into
mainfrom
codex/issue-246-container-negotiation

Conversation

@jeswr

@jeswr jeswr commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Source finding

w3c/lws-protocol#246 identifies the requirement that unprofiled application/ld+json and application/json container responses use the same LWS JSON shape, and that servers support both media types.

Proposed change

  • Require servers to honor application/lws+json for containers and return the defined LWS container structure.
  • Remove the general equivalence and mandatory negotiation requirements for unprofiled application/ld+json and application/json.
  • Retain the existing recommendation to treat application/ld+json; profile="https://www.w3.org/ns/lws/v1" as equivalent to application/lws+json, both in the media-type section and registration note.
  • Scope the read-operation and container-definition wording to the LWS container representation, incorporating Jesse's review suggestions.

This is a protocol behavior change, not an editorial-only correction. The profiled JSON-LD equivalence remains a SHOULD recommendation; the unprofiled formats no longer carry the removed requirements.

Validation

  • git diff --check passed.
  • Checked the current source: the LWS media-type section retains the profiled equivalence, without a requirement to support the unprofiled formats.
  • No runtime tests apply to this specification prose change.

Draft for Jesse's review in the personal fork. Upstream submission and merging remain separate decisions.

Comment thread lws10-core/Operations/read-resource.md Resolved
Comment thread lws10-core/container-representation.md Resolved
@jeswr
jeswr marked this pull request as ready for review September 25, 2026 03:58
Copilot AI lite review requested due to automatic review settings September 25, 2026 03:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The media-type requirements must account for responses such as 304 Not Modified that contain no representation body.

Review effort: Lite
Findings: None

What changed in this PR

Clarifies application/lws+json as the normative container representation while retaining profiled JSON-LD equivalence.

Changes:

  • Removes unprofiled JSON media-type equivalence requirements.
  • Scopes container and read-operation wording to LWS JSON.
  • Updates container response documentation.
File Summary
lws10-core/​Operations/​read-resource.md Scopes container responses to the LWS media type.
lws10-core/​lws-media-type.md Defines LWS media-type negotiation; scope requirements to responses with representations.
lws10-core/​container-representation.md Scopes the container structure to LWS JSON.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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