Skip to content

Handle additionalProperties in map variants - #1561

Merged
sserrata merged 1 commit into
PaloAltoNetworks:mainfrom
nipunn1313:nipunn/handle_additional_properties
Jul 23, 2026
Merged

sserrata merged 1 commit into
PaloAltoNetworks:mainfrom
nipunn1313:nipunn/handle_additional_properties

Conversation

@nipunn1313

@nipunn1313 nipunn1313 commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Handle additionalProperties in variants. It is already handled in objects.

Motivation and Context

It helps properly render nested additionalProperties

How Has This Been Tested?

Created a nested scenario with additionalProperties and found it to render nicely.

key snippets of scenario

      "Selection": {
        "type": "object",
        "required": [
          "_other"
        ],
        "properties": {
          "_other": {
            "$ref": "#/components/schemas/InclusionDefault"
          }
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/ComponentSelection"
        },
      },
      "ComponentSelection": {
        "oneOf": [
          {
            "type": "object",
            "description": "Export some of this component's tables.",
            "required": [
              "_other"
            ],
            "properties": {
              "_other": {
                "$ref": "#/components/schemas/InclusionDefault"
              }
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/TableSelection"
            }
          },
          {
            "$ref": "#/components/schemas/ExcludedTag",
            "description": "Exclude this component entirely."
          }
        ],
      },

Screenshots (if appropriate)

Nested property name* rows (in my test workload)

image

before screenshot for comparison
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@nipunn1313

Copy link
Copy Markdown
Contributor Author

I don't think documentation/tests apply here. But if they do, and you could point me to some, I'm happy to add them.

@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit eb55413):

https://docusaurus-openapi-36b86--pr1561-4mat017u.web.app

(expires Thu, 30 Jul 2026 16:38:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bf293780ee827f578864d92193b8c2866acd459f

@github-actions

Copy link
Copy Markdown

@sserrata
sserrata merged commit d6b33f9 into PaloAltoNetworks:main Jul 23, 2026
11 of 13 checks passed
@sserrata sserrata mentioned this pull request Jul 30, 2026

This branch was previously deployed

2 inactive deployments
preview — eb554130 Deployed Jul 23, 2026 by nipunn1313 via Visual Diff #2279
default — eb554130 Deployed Jul 21, 2026 by nipunn1313 via Analyze Unsafe (javascript) #2279
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants