Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1org-properties~1schema/get #5540

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/organization-custom-properties/value

Schema and example mismatch. The schema suggests an array is to be expected. The example is an element.

Here's a snippet

>   1: {
    2:   "properties" : [ {
    3:     "property_name" : "environment",
    4:     "url" : "https://api.github.com/enterprises/github/org-properties/schema/environment",
    5:     "source_type" : "enterprise",

This also happens at

#/paths/~1enterprises~1{enterprise}~1org-properties~1schema/patch

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghec

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions