ParameterTypeRule
A type of `ModelSerializer` that uses hyperlinked relationships with compound keys instead of primary key relationships. Specifically: * A 'url' field is included instead of the 'id' field. * Relationships to other instances are hyperlinks, instead of primary keys. NOTE: this only works with DRF 3.1.0 and above.
Properties
| Name | Type | Description |
|---|---|---|
| url | string | The URL for the project. |
| id | string | |
| ledger_id | string | Deprecated. UUID string identifying this parameter type rule. |
| parameter_type | string | The type this rule is for. |
| type | object | |
| constraint | string | The constraint for the rule. Provided for backwards compatibility. |
| constraints | object | |
| created_at | string | |
| modified_at | stringnull |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/cloudtruth/json-schema/cloudtruth-parameter-type-rule-schema.json",
"title": "ParameterTypeRule",
"description": "A type of `ModelSerializer` that uses hyperlinked relationships with compound keys instead\nof primary key relationships. Specifically:\n\n* A 'url' field is included instead of the 'id' field.\n* Relationships to other instances are hyperlinks, instead of primary keys.\n\nNOTE: this only works with DRF 3.1.0 and above.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cloudtruth-types-api-openapi.yml#/components/schemas/ParameterTypeRule",
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The URL for the project."
},
"id": {
"type": "string",
"format": "uuid",
"readOnly": true
},
"ledger_id": {
"type": "string",
"readOnly": true,
"description": "Deprecated. UUID string identifying this parameter type rule."
},
"parameter_type": {
"type": "string",
"format": "uri",
"readOnly": true,
"description": "The type this rule is for."
},
"type": {
"$ref": "#/$defs/ParameterRuleTypeEnum"
},
"constraint": {
"type": "string",
"description": "The constraint for the rule. Provided for backwards compatibility."
},
"constraints": {},
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"modified_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"readOnly": true
}
},
"required": [
"created_at",
"id",
"ledger_id",
"modified_at",
"parameter_type",
"type",
"url"
],
"$defs": {
"ParameterRuleTypeEnum": {
"enum": [
"min",
"max",
"min_len",
"max_len",
"regex",
"one_of"
],
"type": "string",
"description": "* `min` - minimum\n* `max` - maximum\n* `min_len` - minimum_length\n* `max_len` - maximum_length\n* `regex` - regex\n* `one_of` - one_of"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/cloudtruth-parameter-type-rule"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.