Schemas
Profit Margin Calculator — output schema
Typed schema published by URSY.io.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"text": {
"type": "string",
"maxLength": 26214400
},
"metrics": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string",
"maxLength": 100
},
"value": {
"type": [
"string",
"number"
],
"maxLength": 1000
}
},
"additionalProperties": false
},
"maxItems": 10
},
"profit": {
"type": "number",
"minimum": -1000000000000000,
"maximum": 1000000000000000,
"description": "Same currency as cost."
},
"margin": {
"type": [
"number",
"null"
],
"description": "Percent; null when price is zero."
},
"markup": {
"type": [
"number",
"null"
],
"description": "Percent; null when cost is zero."
}
},
"required": [
"text",
"metrics",
"profit",
"margin",
"markup"
],
"additionalProperties": false
}