Enhanced Compact Syntax
This release introduces an optional way to define types directly alongside attribute names. Simply append the type after the attribute name, separated by a colon, for a more concise declaration—eliminating the need for a separate `- Type: ...` line. This approach is optional, so the original method remains fully supported.
markdown
Object
- value: float
- Description: Some description
- name: string
- Description: Some description
Local import
You can now break down complex data models into smaller, modular components. These individual models can be imported and reused in other models by specifying them in the YAML preamble:
yaml
imports:
other: ./other.md
Once imported, these objects integrate seamlessly into your data model. We’re also working on explicit namespaces, such that you’ll be able to reference an external type explicitly as `other.Object`. Future updates will also enable remote model fetching, but havent yet made it into this release due to WASM incompatibility.
Conversion
* A new `julia export target has been added.
* The `golang` target now includes GORM annotations to facilitate database interactions.
**Full Changelog**: https://github.com/FAIRChemistry/md-models/compare/v0.2.0...v0.2.1