Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

version 0.7.2 is not compatible with open api version 0.19.4

Offen
#401 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
api

Rechercherichtung

Reproduce the import failure with openapi-core 0.19.4, openapi-spec-validator 0.7.2, and Python 3.8. Start around openapi_spec_validator/validation/keywords.py at SchemaValidator and review the dependency metadata for both releases. Done means the reported installation imports without the TypeError.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

My Pipfile installs openapi-core = "==0.19.4". I tried regenerating my Pipfile.lock from my Pipfile. This causes a failure when we download 0.7.2 of openapi-spec-validator. This causes an error in openapi-core code. The error is below. openapi-code version 0.19.4 has a version range for openapi-spec-validator of <0.8.0,>=0.7.1 . But it's not compatable with 0.7.2

File "/home/ubuntu/actions-runner/_work/my_file*", line 5, in
from openapi_core import OpenAPI
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_core/init.py", line 3, in
from openapi_core.app import OpenAPI
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_core/app.py", line 12, in
from openapi_spec_validator import validate
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/init.py", line 2, in
from openapi_spec_validator.shortcuts import validate
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/shortcuts.py", line 11, in
from openapi_spec_validator.validation import OpenAPIV2SpecValidator
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/validation/init.py", line 1, in
from openapi_spec_validator.validation.proxies import DetectValidatorProxy
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/validation/proxies.py", line 15, in
from openapi_spec_validator.validation.types import SpecValidatorType
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/validation/types.py", line 3, in
from openapi_spec_validator.validation.validators import SpecValidator
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/validation/validators.py", line 21, in
from openapi_spec_validator.validation import keywords
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/validation/keywords.py", line 66, in
class SchemaValidator(KeywordValidator):
File "/tmp/my_dir/lib/python3.8/site-packages/openapi_spec_validator/validation/keywords.py", line 76, in SchemaValidator
def _collect_properties(self, schema: SchemaPath) -> set[str]:
TypeError: 'type' object is not subscriptable

Vorherrschende Sprache
Python
Sterne
409
Forks
73
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus python-openapi/openapi-spec-validator

Alle Issues in python-openapi/openapi-spec-validator

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.