Skip to main content

cornice-apispec

OpenAPI spec generation for Cornice/Pyramid with Marshmallow and OneOfSchema support.

Forked from pycornmarsh with a fix for OneOfSchema component name collisions when multiple API versions define schemas with the same class name.

Installation

pip install cornice-apispec

The Problem

When using marshmallow-oneofschema with multiple API versions (e.g. v1.PartSchema and v3.PartSchema), the OpenAPI spec generator would raise DuplicateComponentNameError because both schemas resolve to the same component name PartSchema.

The Fix

OneofOpenAPIConverter now detects name collisions and automatically qualifies the component name with a version prefix extracted from the schema's module path (e.g. V3PartSchema).

Usage

from cornice_apispec import get_spec

# In your Pyramid app
config.include("cornice_apispec")

License

BSD-3-Clause

Metadata

Release files for cornice-apispec 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cornice-apispec 0.1.0
File Size Uploaded Provenance Actions
cornice_apispec-0.1.0.tar.gz 6.1 kB With provenance Details for cornice_apispec-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cornice-apispec 0.1.0
File Interpreter ABI Platform Actions
cornice_apispec-0.1.0-py3-none-any.whl Python 3 none any Details for cornice_apispec-0.1.0-py3-none-any.whl

Total release size: 13.8 kB

Release files / cornice_apispec-0.1.0.tar.gz

Download URL cornice_apispec-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2f8750768153369c0964ebca8f7bdd07e21367092e9659a71109a17b52fe0ac9
BLAKE2b-256 checksum
How to use checksums
ed6acba5eeebab16e407593e3a7b85250acb26f418db93de39e973e42ea44e66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / cornice_apispec-0.1.0-py3-none-any.whl

Download URL cornice_apispec-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0118bca10d99e212dc4d1e19238c7800bfeeb66cb784db3cd4ed039d62accf5
BLAKE2b-256 checksum
How to use checksums
a6c66f7200bb44df34eb9e383e5ca25f45cd89ab65b583247df8893f675f1ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for cornice-apispec 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cornice_apispec-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page