v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
CONTRACT

Validate Contract Definition Dry Run

Create a contract in the registry and database.

  1. Checks if the contract already exists in the registry.
  2. Validates the contract. If invalid, raise exception
  3. If it does not exist, creates the contract in the registry.
  4. 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

namestring required
data_store_idinteger required
fqnobject required
contract_valuestring required
raise_on_warningsboolean

Response

Successful Response

levelstring required
messagestring required