tableauio / tableau

A modern configuration converter based on Protobuf (proto3).
https://tableauio.github.io
MIT License
29 stars 6 forks source link

override: support sheet-level message data overriding for different sheets but same protoconf schema #99

Closed wenchy closed 2 weeks ago

wenchy commented 3 months ago

Add new metasheet option override:

// Override support sheet-level message data overriding for different sheets but same protoconf schema.
// NOTE: should be used with *scatter* option.
bool override = 19;

https://github.com/tableauio/tableau/blob/49ea8d784e05076e34377ae35a330c09e4262fba/proto/tableau/protobuf/tableau.proto#L109-L111

// Override support sheet-level message data overriding for different sheets but same protoconf schema.
// NOTE: should be used with *scatter* option.
bool override = 19; [(tableau.field) = { name: "Override " optional: true }];

https://github.com/tableauio/tableau/blob/49ea8d784e05076e34377ae35a330c09e4262fba/proto/tableau/protobuf/metabook.proto#L60-L65

wenchy commented 2 months ago

Maybe using yaml is a good format option. And schema checking is guaranteed for override option.