Skip to content

Extracted OpenAPI v3 schemas have incorrect metadata field #322

Description

@fernandezcuesta

What happened?

After running the xpkg get-crds --json-schema subcommand, I realized that the metadata field is converted from:

          metadata:
            type: object

to:

    "metadata": {
      "additionalProperties": false,
      "type": "object"
    },

The additionalProperties: false is too restrictive here, and prevents using it for a YAML language server for a given rendered MR which usually has some metadata fields set (e.g. labels).

How can we reproduce it?

crossplane xpkg get-crds --json-schema crossplane.yaml in a configuration package with provider dependencies.

What environment did it happen in?

  • Crossplane CLI version: 2.5.0
  • Platform (e.g., linux/amd64): linux/amd64
  • Crossplane version (if applicable):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions