chaokunyang opened a new issue, #3267:
URL: https://github.com/apache/fory/issues/3267
Parent issue: #3266
## Scope
Add service/method support to the shared compiler IR and validator layer.
## Detailed tasks
- Add `Service` and `RpcMethod` nodes to `compiler/fory_compiler/ir/ast.py`.
- `Service`: name, methods, options, location fields.
- `RpcMethod`: name, request/response types, streaming flags, options,
location fields.
- Extend `Schema` to include `services: List[Service]`.
- Update any emitters/serializers that assume only enums/messages/unions.
- Validation rules:
- Service names must be unique per schema.
- Method names must be unique within a service.
- Request/response types must resolve to message types (FDL/proto) or
tables/structs (FlatBuffers).
- Streaming flags only apply to request/response (no extra syntax).
- Add validator tests for the above rules.
## Notes
Serialization strategy is Fory-only; no protobuf/flatbuffers runtime
integration.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]