This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new f5c2b367c4 🔄 synced local 'docs/compiler/' with remote 'docs/compiler/'
f5c2b367c4 is described below
commit f5c2b367c463080fc808674b14231a2ae571cb0a
Author: chaokunyang <[email protected]>
AuthorDate: Wed Mar 18 15:32:11 2026 +0000
🔄 synced local 'docs/compiler/' with remote 'docs/compiler/'
---
docs/compiler/compiler-guide.md | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/compiler/compiler-guide.md b/docs/compiler/compiler-guide.md
index f58eaee0ca..65a481f76d 100644
--- a/docs/compiler/compiler-guide.md
+++ b/docs/compiler/compiler-guide.md
@@ -136,6 +136,12 @@ foryc schema.fdl --package com.myapp.models
foryc user.fdl order.fdl product.fdl --output ./generated
```
+**Compile a simple service schema (Java + Python):**
+
+```bash
+foryc compiler/examples/service.fdl --java_out=./generated/java
--python_out=./generated/python
+```
+
**Use import search paths:**
```bash
@@ -598,6 +604,10 @@ Error: Unknown type 'Address' in Customer.address
Fix: Define the referenced type before using it, or check for typos.
+Service RPC request and response types are validated in the same way: an RPC
such as
+`rpc SayHello (HelloRequest) returns (HelloReply);` must reference defined
message
+types, otherwise the validator reports an `Unknown type '...'` error on the
RPC line.
+
### Duplicate Field Numbers
```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]