Book a demo

← What's new

Build a project contract from a specification on the command line

ol create project built its contract only from the project's modules and assets. It can now start from a specification instead: pass --source-path with an OpenAPI json or yaml file, or a .wsdl or a .zip carrying a WSDL together with its xsd files, and the project is created contract first, with the contract's methods wired to the same-named assets in the project's modules. A source path pointing at a WSDL takes --type WSDL as its default.

--publish publishes the methods of such a contract in the same command, which an auto generated contract does not need because its methods are already published. --source-path cannot be combined with --outputs-json-path or --base-path, both of which apply to auto generated contracts only.

This makes the whole contract-first flow scriptable in [[feature:integration-cli-automation|CLI for Automation]], rather than only reachable from the Hub.

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy