Mdmodels

Latest version: v0.2.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.2

* Option `Pattern` can now also be addressed using `regex`.
* Fixed Python template not using `UnitDefinition`
* CLI `convert` command now allows passing options `-O` that change behaviour of templates

**Full Changelog**: https://github.com/FAIRChemistry/md-models/compare/v0.2.1...v0.2.2

0.2.1

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

0.2.0

What's Changed

* Add validation for XML option by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/19
* Implement LinkML export by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/21
* Add `LinkML` import by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/22
* Update and extend conversion targets by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/20
* `LinkML`
* `Golang`
* `Protobuf`
* `Rust`
* `Typescript-Zod` (Catered toward the [zod package](https://www.npmjs.com/package/zod))
* `GraphQL`


**Full Changelog**: https://github.com/FAIRChemistry/md-models/compare/v0.1.8...v0.2.0

0.1.8

What's Changed
* Update pulldown-cmark dep and add lines/ranges for validation errors by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/15
* JSON Dataset validation by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/16
* Use actual Typescript types instead of `JsValue` by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/17


**Full Changelog**: https://github.com/FAIRChemistry/md-models/compare/v0.1.7...v0.1.8

0.1.7

- Fixes `to_json_schema` including options on `openai` flag

**Full Changelog**: https://github.com/FAIRChemistry/md-models/compare/v0.1.6...v0.1.7

0.1.6

What's Changed
* Union type Support by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/13
* Rework JSON Schema Export and LLM extraction by JR-1991 in https://github.com/FAIRChemistry/md-models/pull/14


**Full Changelog**: https://github.com/FAIRChemistry/md-models/compare/v0.1.5...v0.1.6

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.