Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1orgs~1{org}~1artifacts~1{subject_digest}~1metadata~1deployment-records/get #5683

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/artifact-deployment-record-list/value

The field created doesn't exist in the schema, but exists in the example. This looks like a typo. There is a field called created_at.

Here's a snippet

    8:     "deployment_name" : "prod-deployment",
    9:     "tags" : {
   10:       "data" : "sensitive"
   11:     },
>  12:     "created" : "2011-01-26T19:14:43Z",
   13:     "updated_at" : "2011-01-26T19:14:43Z",
   14:     "attestation_id" : 456
   15:   } ],
   16:   "total_count" : 1

Affected Schema Refs

#/paths/~1orgs~1{org}~1artifacts~1{subject_digest}~1metadata~1deployment-records/get
#/paths/~1orgs~1{org}~1artifacts~1metadata~1deployment-record/post
#/paths/~1orgs~1{org}~1artifacts~1metadata~1deployment-record~1cluster~1{cluster}/post

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • 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