{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/spectro-cloud/main/json-schema/spectro-cloud-v1-plan-add-free-credit-update-schema.json", "title": "v1PlanAddFreeCreditUpdate", "description": "Plan add free credit update entity", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/spectro-cloud-plans-api-openapi.yml#/components/schemas/v1PlanAddFreeCreditUpdate", "properties": { "credit": { "$ref": "#/$defs/v1PlanCreditEntity" } }, "$defs": { "v1PlanCreditEntity": { "description": "Plan Credit entity for create/update request", "properties": { "cpuCoreHours": { "format": "int64", "type": "number", "x-omitempty": false }, "expiry": { "$ref": "#/$defs/v1Time" }, "name": { "type": "string" }, "start": { "$ref": "#/$defs/v1Time" }, "type": { "enum": [ "Pure", "Alloy" ], "type": "string" } }, "required": [ "type" ] }, "v1Time": { "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", "format": "date-time", "type": "string" } } }