v5
latestOpenAPI 3.1.02026-08-081,0211,3082.1 MBCONTRACT
Validate Contract Definition Dry Run
Create a contract in the registry and database.
- Checks if the contract already exists in the registry.
- Validates the contract. If invalid, raise exception
- If it does not exist, creates the contract in the registry.
- If it exists and is same do nothing. Else create a new version.
:param db: The database session for accessing the database. :param contract_request: The contract creation request containing the contract definition and other metadata. :param tenant: The tenant object for the tenant associated with the request. :param registry: The registry the contract is being created in. :param auth: The authorization token for the request. :return: A contract creation response containing the contract ID, version, and a message.
post/registries/{registry_id}/contracts/definitions/validate
Path parameters
registry_idinteger required
Request body
Response
Successful Response