{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nanobaselabs-com/json-schema/nanobaselabs-com-props-schema.json",
  "title": "Props",
  "description": "Properties of an ingredient the library does not list, researched by the caller's AI. The line is then assessed like a library ingredient of that class and echoed under declared_by_caller. Library entries win unless override is true. Invalid props return 400 invalid_props with the field.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nanobaselabs-com-openapi.json#/components/schemas/Props",
  "type": "object",
  "required": [
    "class"
  ],
  "additionalProperties": false,
  "properties": {
    "class": {
      "type": "string",
      "enum": [
        "oil",
        "water_soluble",
        "peptide",
        "lipopeptide",
        "charged",
        "polymer",
        "surfactant",
        "preservative",
        "humectant",
        "neutral"
      ]
    },
    "charge": {
      "type": "string",
      "enum": [
        "nonionic",
        "zwitterionic",
        "cationic",
        "anionic"
      ]
    },
    "oil_type": {
      "type": "string",
      "enum": [
        "insoluble_heavy",
        "light_ester_ripening_prone",
        "polar"
      ]
    },
    "mw_class": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "mw": {
      "type": "number",
      "minimum": 10,
      "maximum": 100000000
    },
    "valence": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4
    },
    "ionized_fraction": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "form": {
      "type": "string",
      "enum": [
        "nonionic",
        "salt",
        "acid"
      ]
    },
    "override": {
      "type": "boolean"
    },
    "logP": {
      "type": "number",
      "minimum": -10,
      "maximum": 15,
      "description": "logP of the neutral molecule"
    },
    "pKa": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 1,
          "maxItems": 4
        }
      ],
      "description": "pKa value or list (conjugate-acid pKa for a base); requires acid_or_base"
    },
    "acid_or_base": {
      "type": "string",
      "enum": [
        "acid",
        "base",
        "neutral"
      ]
    },
    "pI": {
      "type": "number",
      "minimum": 0,
      "maximum": 14,
      "description": "isoelectric point (peptides, proteins, charged polymers; zwitterions such as amino acids and betaines send pI rather than acid pKa values); ph_path advisory"
    },
    "neutral_solubility_pct": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "water solubility of the neutral form in g per 100 g water at 20 to 25 C; ph_path advisory"
    },
    "stability": {
      "type": "array",
      "maxItems": 3,
      "items": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "hydrolysis_prone",
              "hydrolysis_prone_ester",
              "oxidation_prone",
              "deamidation_prone"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "flag"
            ],
            "properties": {
              "flag": {
                "type": "string",
                "enum": [
                  "hydrolysis_prone",
                  "hydrolysis_prone_ester",
                  "oxidation_prone",
                  "deamidation_prone"
                ]
              },
              "ph_above": {
                "type": "number",
                "minimum": 0,
                "maximum": 14
              },
              "ph_below": {
                "type": "number",
                "minimum": 0,
                "maximum": 14
              }
            }
          }
        ]
      },
      "description": "stability flags with the sensitive pH range if known; ph_path advisory"
    }
  }
}