Skip to content
Discussion options

You must be logged in to vote

Good question! NetBox validates profile attributes using a JSON schema, which does support conditionals. This should work for your example:

{
    "properties": {
        "hot_swappable": {
          "default": false,
          "title": "Hot-swappable",
          "type": "boolean"
        },
        "size": {
            "description": "Raw disk capacity",
            "title": "Size (GB)",
            "type": "integer"
        },
        "speed": {
            "title": "Speed (RPM)",
            "type": "integer"
        },
        "type": {
            "default": "SSD",
            "enum": [
                "HD",
                "SSD",
                "NVME"
            ],
            "ti…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rconkor
Comment options

Answer selected by rconkor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants