Skip to content

Fix/1056 openapi capabilities#1905

Draft
mrnlts wants to merge 4 commits intojson-api-dotnet:masterfrom
mrnlts:fix/1056-openapi-capabilities
Draft

Fix/1056 openapi capabilities#1905
mrnlts wants to merge 4 commits intojson-api-dotnet:masterfrom
mrnlts:fix/1056-openapi-capabilities

Conversation

@mrnlts
Copy link

@mrnlts mrnlts commented Jan 27, 2026

Closes #1056

QUALITY CHECKLIST

@bkoelman
Copy link
Member

Thanks!

It looks like the failing tests reveal bugs. Can you try fixing them? And can you also fix the style issues?

How about coverage for None capabilities?
Did you consider adding tests for operations as well?

I'm a bit confused about the added resource types. For example, Author and Writer look pretty similar; can't we use simpler models?


// Assert
document.Should().NotContainPath("paths./articles/{id}/relationships/categories.post");
document.Should().NotContainPath("paths./books/{id}/relationships/reviews.post");
Copy link
Member

Choose a reason for hiding this comment

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

Please assert that the parent path exists before asserting the child does not (similar to other tests in this file). This way, if the parent gets renamed in the future, the test won't silently break.

@bkoelman
Copy link
Member

@mrnlts Are you still working on this?

@bkoelman
Copy link
Member

bkoelman commented Mar 1, 2026

@mrnlts Because you're not responding, I'm going to assume you lost interest in continuing to work on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Reflect attribute/relationship capabilities in resource object schemas

2 participants