Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1users~1{username}~1attestations~1bulk-list/post #5861

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/components/examples/list-attestations-bulk/value

Schema and example mismatch. The value for attestations_subject_digests is expected to be an object, but the example contains an array.

Here's a snippet

    1: {
>   2:   "attestations_subject_digests" : [ {
    3:     "sha256:abc" : [ {
    4:       "bundle" : {
    5:         "mediaType" : "application/vnd.dev.sigstore.bundle.v0.3+json",
    6:         "verificationMaterial" : {

Affected Schema Refs

#/paths/~1users~1{username}~1attestations~1bulk-list/post
#/paths/~1orgs~1{org}~1attestations~1bulk-list/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