Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
replace a schema param

src/p/y/py2json-HEAD/py2json/test/test_py2json.py   py2json(Download)
        json_smd = Py2JSON(foo)
        json_smd.add_param('foo', 12.3)
        json_smd.replace_param('foo', 'py2json replacement')
        assert json_smd.schema == '{"target": null, "envelope": "JSON", "services": {"bar2": {"target": "bar2", "parameters": [{"default": 666, "optional": false, "type": "integer", "name": "integer"}]}, "bar": {"target": "bar", "parameters": [{"default": "this is a str", "optional": false, "type": "string", "name": "string"}]}}, "foo": "py2json replacement", "transport": "REST", "additionalParameters": true}'