You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer making a RESTier API I would like automated OData annotations so that my API consumers can more easily use the API
Scenario:
Given the Id property of an entity is designated with the [Key] attribute
When the $metadata is called
Then the property should have the computed=true attribute
Let's research how Microsoft's OData to OpenAPI library works and see if we can't add the ability to add attributes to your model and have them automatically show up in the metadata for OpenAPI.
robertmclaws
changed the title
Feature Request: Automated OData Annotations
[2.0] OpenAPI Annotation Attributes
Dec 5, 2023
Feature
For a nice list of properties that are pretty common / standard check out the annotations that the odata to openapi conversion tool supports:
https://github.com/oasis-tcs/odata-openapi/blob/master/doc/Annotations.md
Starting with adding support for the computed and the description attribute would be sufficient for most scenarios
The text was updated successfully, but these errors were encountered: