Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Provides type validation for arbitrarily defined, extendible JSON-style Schema definitions. Part of the Morpho Design Explorer Project.

License

Notifications You must be signed in to change notification settings

MorphoDesignExplorer/morpho-typing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morpho Typing

This module provides a set of schemas common to the Morpho Design Explorer Server and GA-Search Client.

There are two schemas available as of now:

  1. MorphoProjectSchema: defines and provides validation for the general structure of a project's schema
  2. MorphoAssetCollection: defines a set of assets / files that are associated with a schema.

Installation:

pip install morpho_typing

Project Usage:

to validate a project schema definition
schema = MorphoProjectSchema(values=[...])
to validate a record against an existing project schema object
schema.validate_record(record)
to validate an asset collection definition
asset_schema = MorphoAssetCollection(assets=[...])

About

Provides type validation for arbitrarily defined, extendible JSON-style Schema definitions. Part of the Morpho Design Explorer Project.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages