Skip to content

docs(ipa0132): Require core metadata fields in the correct example - #128

Merged
julius-jogela merged 3 commits into
mainfrom
ipa-132-core-metadata-example-required
Aug 17, 2026
Merged

docs(ipa0132): Require core metadata fields in the correct example#128
julius-jogela merged 3 commits into
mainfrom
ipa-132-core-metadata-example-required

Conversation

@julius-jogela

@julius-jogela julius-jogela commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Aligns the IPA-132 guideline examples with what the guidelines themselves state, so the spectral rules implementing them (mongodb/openapi#1435, #1437) do not flag the guidelines' own correct examples:

  • IPA-132-operation-response-must-include-core-metadata: the statement and workflow say operationId, operationType, createdAt and updatedAt are required, but the correct example defined no required array. Added it, deliberately excluding customMethod since it applies only to CUSTOM operations and must not be always-required.
  • IPA-132-operation-status-must-use-the-standard-status-enum: added required: [status] to the correct example — an OperationResponse that can legally omit status defeats polling. The spectral rule checks this too.
  • IPA-132-list-method-must-not-be-lro: the incorrect example used the single-resource path /orders/{orderId} with operationId: listOrders; a List belongs on the collection path /orders.

Test plan

  • npx prettier . --check — clean
  • npm run lint — clean
  • npm test — 34/34 passing
  • npm run docusaurus:build — succeeds

Comment thread ipa/general/0132.mdx
and record timestamps, so generic clients and tooling can identify the
operation, understand what kind of work it represents, and tell when its
status last changed.
status last changed. The four core fields are declared required, while

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

how about "status" being a required field?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point, added it to the status enum guideline. The spectral rule checks the required membership too now.

@julius-jogela
julius-jogela merged commit 3ec38d8 into main Aug 17, 2026
10 checks passed
@julius-jogela
julius-jogela deleted the ipa-132-core-metadata-example-required branch August 17, 2026 18:44
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