Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding metadata schema to the code base itself (Project-MONAI#7409)
Fixes Project-MONAI#7303 Project-MONAI#6959. ### Description This adds the schema file into the code base (but this maybe should be elsewhere). The changes implement a number of new things: * Moved definitions into a `$defs` section per the JSON schema standard * Permits multiple input arguments and return results from networks with arbitrary names using the `patternProperties` mechanism * Allows the types of inputs and outputs to be, additional to just tensors, numbers, booleans, or strings * Outputs after post processing can be specified with the `post_processed_outputs` section if they are significantly changed with the post-process transforms defined in scripts * Multiple network IO formats can be specified in addition to `network_data_format`, these must follow the pattern `<name>_data_format` * `required_packages_version` added in addition to `optional_packages_version` Project-MONAI#7253 depends on this schema change. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Yiheng Wang <68361391+yiheng-wang-nv@users.noreply.github.com>
- Loading branch information