Skip to content

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

Draft
HeikoTheissen wants to merge 1 commit intomainfrom
readonly
Draft

Schemas for create and update exist even in read-only services#326
HeikoTheissen wants to merge 1 commit intomainfrom
readonly

Conversation

@HeikoTheissen
Copy link
Copy Markdown
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