Skip to content

Conversation

@abhi1693
Copy link
Member

Fixes: #12960 and #12644

For the example in the issue, here is the new definition

{
  "type": "object",
  "properties": {
    "value": {
      "enum": [
        "connected",
        "planned",
        "decommissioning"
      ],
      "type": "string",
      "description": "* `connected` - Connected\n* `planned` - Planned\n* `decommissioning` - Decommissioning"
    },
    "label": {
      "type": "string",
      "enum": [
        "Connected",
        "Planned",
        "Decommissioning"
      ]
    }
  }
}

For IPAddress, the schema looks like

{
  "type": "object",
  "properties": {
    "value": {
      "enum": [
        4,
        6
      ],
      "type": "integer",
      "description": "* `4` - IPv4\n* `6` - IPv6"
    },
    "label": {
      "type": "string",
      "enum": [
        "IPv4",
        "IPv6"
      ]
    }
  },
  "readOnly": true
}

@abhi1693 abhi1693 linked an issue Jun 23, 2023 that may be closed by this pull request
@jeremystretch jeremystretch merged commit 49af70a into develop Jun 23, 2023
@jeremystretch jeremystretch deleted the fix/12960-openapi-choicefield branch June 23, 2023 18:21
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

some enums missing from OpenAPI schema IpamIPAddressFamilyChoice differs from the spec

4 participants