{"id":18723242,"url":"https://github.com/apjanke/octave-validatinator","last_synced_at":"2026-01-28T06:39:48.914Z","repository":{"id":69291039,"uuid":"177717372","full_name":"apjanke/octave-validatinator","owner":"apjanke","description":"Validation functions for GNU Octave","archived":false,"fork":false,"pushed_at":"2022-09-11T22:09:02.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T10:51:24.070Z","etag":null,"topics":["gnu-octave","octave"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apjanke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-26T04:54:50.000Z","updated_at":"2024-01-27T08:47:15.000Z","dependencies_parsed_at":"2023-06-01T20:00:47.270Z","dependency_job_id":null,"html_url":"https://github.com/apjanke/octave-validatinator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apjanke%2Foctave-validatinator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apjanke%2Foctave-validatinator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apjanke%2Foctave-validatinator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apjanke%2Foctave-validatinator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apjanke","download_url":"https://codeload.github.com/apjanke/octave-validatinator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239587230,"owners_count":19663892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gnu-octave","octave"],"created_at":"2024-11-07T13:48:08.976Z","updated_at":"2025-11-11T07:30:20.882Z","avatar_url":"https://github.com/apjanke.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Validatinator for GNU Octave\n============================\n\nValidation functions for GNU Octave.\n\nIn Matlab R2017a, Matlab introduced [Validation Functions](https://www.mathworks.com/help/matlab/matlab_oop/property-validator-functions.html) that allow you concisely express constraints for the types and values of variable and property values.\nOctave doesn’t have those yet.\nThis project provides implementations of them, both some Matlab-compatible ones, and some Octave-specific extensions.\n\n## Installation and usage\n\nValidatinator is a standard Octave `pkg` package. Install it using `pkg`.\n\nTo install the latest Validatinator for usage or testing:\n\n```\npkg install https://github.com/apjanke/octave-validatinator/archive/master.zip`\npkg load validatinator\n```\n\nTo hack on Validatinator itself, clone the repo and add its `inst/` dir to your Octave path:\n\n```\ngit clone https://github.com/apjanke/octave-validatinator\n```\n\n```\naddpath /path/to/my/cloned/octave-validatinator/inst\n```\n\n## Functions\n\nValidatinator provides the following functions:\n\nMatlab compatibility functions (in `Mcode/compat`):\n  * mustBeFinite(x)\n  * mustBeInteger(x)\n  * mustBeMember(x, valid)\n  * mustBeNonempty(x)\n  * mustBeNumeric(x)\n  * mustBeReal(x)\n\nNew functions (in `Mcode/extend`):\n  * makeItBeA(x, type)\n  * mustBeA(x, type)\n  * mustBeCellstr(x)\n  * mustBeCharvec(x)\n  * mustBeSameSize(a, b)\n  * mustBeScalar(x)\n  * mustBeScalarLogical(x)\n  * mustBeVector(x)\n  * size2str(sz)\n\nNone of these functions actually do much work, but they are a concise, standardized way of expressing constraints on function input arguments, object properties, and other invariants.\nSprinkle calls to them throughout your code.\n\n## Project\n\nThe home page for Validatinator for Octave is the [Validatinator GitHub repo](https://github.com/apjanke/octave-validatinator).\n\nFor support, feel free to post a bug report or question on the [Validatinator GitHub issue tracker](https://github.com/apjanke/octave-validatinator/issues).\n\nThe project author is [Andrew Janke](https://apjanke.net).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapjanke%2Foctave-validatinator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapjanke%2Foctave-validatinator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapjanke%2Foctave-validatinator/lists"}