changedInput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "account_id": {
- "minLength": 1,
- "type": "string"
- },
- "action": {
- "const": "list",
- "type": "string"
- },
- "counterparty": {
- "description": "Part of the counterparty name, or its exact CPF/CNPJ.",
- "type": "string"
- },
- "end_date_from": {
- "description": "Contracts ending on or after this date.",
- "format": "date",
- "type": "string"
- },
- "end_date_to": {
- "description": "Contracts ending on or before this date.",
- "format": "date",
- "type": "string"
- },
- "ending_within_days": {
- "description": "Contracts ending from today (the API's calendar day, Brasília time) to that many days later, both included; `0` is today. Any status: add `status=active` for the ones still in force.",
- "maximum": 3650,
- "minimum": 0,
- "type": "integer"
- },
- "expand": {
- "description": "`document` embeds each contract's document.",
- "enum": [
- "document"
- ],
- "type": "string"
- },
- "external_id": {
- "description": "ID of an external reference in that system.",
- "type": "string"
- },
- "external_system": {
- "description": "System of an external reference, e.g. `hubspot`.",
- "type": "string"
- },
- "page": {
- "description": "Page number.",
- "minimum": 1,
- "type": "integer"
- },
- "per_page": {
- "description": "Records per page (max 100).",
- "maximum": 100,
- "minimum": 1,
- "type": "integer"
- },
- "search": {
- "description": "Part of the document's name.",
- "type": "string"
- },
- "sort": {
- "description": "`end_date` or `updated_at`; prefix with `-` for descending (`-updated_at`, the default). Contracts without an end date come last either way.",
- "enum": [
- "end_date",
- "-end_date",
- "updated_at",
- "-updated_at"
- ],
- "type": "string"
- },
- "status": {
- "description": "Contract status; several, comma-separated, match any of them.",
- "pattern": "^(draft|active|expired|terminated)(,(draft|active|expired|terminated))*$",
- "type": "string"
- }
- },
- "required": [
- "action"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "account_id": {
- "minLength": 1,
- "type": "string"
- },
- "action": {
- "const": "get",
- "type": "string"
- },
- "document_id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "action",
- "document_id"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "account_id": {
- "minLength": 1,
- "type": "string"
- },
- "action": {
- "const": "related",
- "type": "string"
- },
- "document_id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "action",
- "document_id"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "action": {
+ "const": "list",
+ "type": "string"
+ },
+ "counterparty": {
+ "description": "Part of the counterparty name, or its exact CPF/CNPJ.",
+ "type": "string"
+ },
+ "end_date_from": {
+ "description": "Contracts ending on or after this date.",
+ "format": "date",
+ "type": "string"
+ },
+ "end_date_to": {
+ "description": "Contracts ending on or before this date.",
+ "format": "date",
+ "type": "string"
+ },
+ "ending_within_days": {
+ "description": "Contracts ending from today (the API's calendar day, Brasília time) to that many days later, both included; `0` is today. Any status: add `status=active` for the ones still in force.",
+ "maximum": 3650,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "expand": {
+ "description": "`document` embeds each contract's document.",
+ "enum": [
+ "document"
+ ],
+ "type": "string"
+ },
+ "external_id": {
+ "description": "ID of an external reference in that system.",
+ "type": "string"
+ },
+ "external_system": {
+ "description": "System of an external reference, e.g. `hubspot`.",
+ "type": "string"
+ },
+ "page": {
+ "description": "Page number.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "per_page": {
+ "description": "Records per page (API caps at 50).",
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "search": {
+ "description": "Part of the document's name.",
+ "type": "string"
+ },
+ "sort": {
+ "description": "`end_date` or `updated_at`; prefix with `-` for descending (`-updated_at`, the default). Contracts without an end date come last either way.",
+ "enum": [
+ "end_date",
+ "-end_date",
+ "updated_at",
+ "-updated_at"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "description": "Contract status; several, comma-separated, match any of them.",
+ "pattern": "^(draft|active|expired|terminated)(,(draft|active|expired|terminated))*$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "action"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "action": {
+ "const": "get",
+ "type": "string"
+ },
+ "document_id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "document_id"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "action": {
+ "const": "related",
+ "type": "string"
+ },
+ "document_id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "document_id"
+ ],
+ "type": "object"
+ }
+]