Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemas for create and update exist even in read-only services #326

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HeikoTheissen
Copy link
Contributor

@HeikoTheissen HeikoTheissen commented Feb 19, 2025

The OpenAPI description generated by V4-CSDL-to-OpenAPI.xsl for this read-only OData V4 service correctly contains only GET paths

GET /Entities
GET /Entities('{ID}')

and not POST, PATCH and DELETE paths.

But it still contains unused schemas

  • Entity (for create)
  • Entity (for update)

which irritatingly show up in the Swagger UI.

This has been solved as part of #291, see the Swagger UI. But that pull request changes the whole approach of the XSLT transformation and is not yet ready for merging. The purpose of this pull request is to avoid the unused schemas in the OpenAPI (and Swagger) description without relying on #291.

(csdl2openapi.js does not generate such superfluous schemas.)

@HeikoTheissen HeikoTheissen marked this pull request as draft February 19, 2025 08:50
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.

1 participant