{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeartifact/refs/heads/main/json-schema/codeartifact-package-origin-restrictions-schema.json", "title": "PackageOriginRestrictions", "description": "Details about the origin restrictions set on the package. The package origin restrictions determine how new versions of a package can be added to a specific repository.", "type": "object", "properties": { "publish": { "allOf": [ { "$ref": "#/components/schemas/AllowPublish" }, { "description": "The package origin configuration that determines if new versions of the package can be published directly to the repository." } ] }, "upstream": { "allOf": [ { "$ref": "#/components/schemas/AllowUpstream" }, { "description": "The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source." } ] } }, "required": [ "publish", "upstream" ] }