Skip to content

[FE][CR] Meta-marker on Spec level for "Sharable/Non-sharable" #548

@alagishev

Description

@alagishev

ui

Documents tab

  • shareable/non-shareable/unknown icon for the document
  • shareable dropdown for the document
    • requires package owner permission to change
  • Export dialog for the document
    • warning is added in the beginning of the dialog
      • OK/Green: "This document is marked as shareable by package owner" for shareable status
      • Warning/Yellow: "It is unknown if this document is shareable. Contact package owner to clarify it's status." for the unknown status
      • Danger/Red: "This document is marked as non-shareable by package owner"

Export dialog (for package version)

  • single OpenAPI document in the package version (see above)
  • more than one OpenAPI document in the package version- add "Document Type" radio-button group
    • "Only shareable" (default)
      • warning/yellow: "All documents are marked as non-shareable by package owner" if all documents are non shareable documents in the package version, Export button disabled
      • warning/yellow: "It is unknown if there are shareable documents in this package version. Contact package owner to clarify document's type" if there are no shareable documents and at least one Unknown document
      • OK/Green: "6 shareable documents out of 9 will be exported" if there's at least one shareable documents
    • "All documents"
      • Danger/warning: "All 9 documents will be exported, including 3 documents marked as non-shareable and 2 with unknown type." if there's at least one document of non-shareable/unknown type
      • OK/green: "All 9 documents will be exported, all are marked as shareable by package owner"

api-processor

Depending on parameter passed in build config, should process all OpenAPI documents for the package during export or only documents marked as shareable.

Metadata

Metadata

Assignees

Labels

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions