Skip to content

New macros for nested struct relationship with automatic GTS segments generation #20

@Artifizer

Description

@Artifizer
  • Initial version [WIP] feat: implement schema inheritance and composition with schemars integration #21
  • Naive detection of GTS instance and schema(type) fields in base GTS struct (check id/gts_id, type/gts_type)
  • Advanced ideomatic version
    • Support minor version (when we have first out of process)
    • Check major/minor version in GTS string and struct suffix, e.g. V1
    • Prohibit scenario when non-GTS struct extends GTS struct
    • Tools must generate schema the same way as schemars
    • Use schemars in build time
    • allOf handling is unsafe if flattened/merged
    • Inheritance/nesting logic is brittle
    • Two independent generators can diverge
    • Compile-time constant schema is replaced with runtime generation
    • Detection of GTS instance and schema(type) fields in base GTS struct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions