Package dev.omnist.schema
Class OsdWriter
java.lang.Object
dev.omnist.schema.OsdWriter
OSD (Omnist Schema Definition) Canonical Writer (omnist-spec §5.9).
Serializes a
Schema into canonical OSD text format.-
Method Summary
-
Method Details
-
write
Serializes aSchemato canonical OSD text format (omnist-spec §5.9). Records appear first in declaration order, each on its own line; therootdeclaration appears last.- Parameters:
schema- the schema to serialize; must not benull- Returns:
- the canonical OSD text; never
null
-
writeCompact
Serializes aSchemato compact single-line OSD text. All record and field declarations are placed on a single line with space separators, suitable for embedding in test fixtures or compact output contexts.- Parameters:
schema- the schema to serialize; must not benull- Returns:
- the compact OSD text; never
null
-