Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1manage~1v1~1maintenance/get #5547

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/ghes-get-maintenance/value

Schema and example mismatch. The schema says scheduled_time is a string with format date. But the example has what looks like a date-time.

Here's a snippet

    1: [ {
    2:   "hostname" : "ghe-local-primary",
    3:   "uuid" : "1b6cf518-f97c-11ed-8544-061d81f7eedb",
    4:   "status" : "scheduled",
>   5:   "scheduled_time" : "2006-01-02T15:04:05+00:00",
    6:   "connection_services" : [ {
    7:     "name" : "git operations",
    8:     "number" : 15
    9:   }, {

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghes-3.14
  • ghes-3.15
  • ghes-3.16
  • ghes-3.17
  • ghes-3.18

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