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
We have a requirement to add an annotation on the service object type descriptor nodes. But currently there is no such attachment point in the spec, so I need to enable the annotation on all type descriptor nodes and do a validation through a custom compiler plugin.
@openapi:ServiceConfig {
basePath:"social-media"
}
typeSocialMediaserviceobject {
*http:Service;
resourcefunction get users() returnsUser[]|error;
resourcefunction get users/[intid]() returnsUser|UserNotFound|error;
resourcefunction post users(NewUsernewUser) returnshttp:Created|error;
resourcefunction delete users/[intid]() returnshttp:NoContent|error;
};
The text was updated successfully, but these errors were encountered:
TharmiganK
changed the title
Introduce a annotation attachment point for service object type descriptor
Introduce an annotation attachment point for service object type descriptor
May 30, 2024
Description:
We have a requirement to add an annotation on the service object type descriptor nodes. But currently there is no such attachment point in the spec, so I need to enable the annotation on all type descriptor nodes and do a validation through a custom compiler plugin.
Related Issues:
[Proposal] Map OpenAPI Specification (OAS) to service object type
The text was updated successfully, but these errors were encountered: