Check out RAML: <a href="https:&#x2F;&#x2F;github.com&#x2F;raml-org&#x2F;raml-spec" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;raml-org&#x2F;raml-spec</a>  Maybe it will fit the bill?  It can even encode sum types.  But I&#x27;m not sure if that&#x27;s what you&#x27;re looking for.<p>I&#x27;ll ping you when I put my mini-ml in Python on Github.