3.1.15 is broken with openapi_spec_validator dependence
See original GitHub issueMy tests run successfully with 3.1.14.
With 3.1.15 they error, with:
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/__init__.py:[30](https://github.com/<snip>i/runs/70630955?check_suite_focus=true#step:6:31): in f
module = importlib.import_module(module_name, "moto")
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/ssm/__init__.py:1: in <module>
from .models import ssm_backends
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/ssm/models.py:10: in <module>
from moto.ec2 import ec2_backends
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/ec2/__init__.py:1: in <module>
from .models import ec2_backends
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/ec2/models/__init__.py:14: in <module>
from .elastic_block_store import EBSBackend
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/ec2/models/elastic_block_store.py:2: in <module>
from moto.kms import kms_backends
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/kms/__init__.py:1: in <module>
from .models import kms_backends
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/kms/models.py:9: in <module>
from moto.apigateway.exceptions import ValidationException
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/apigateway/__init__.py:1: in <module>
from .models import apigateway_backends
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
from __future__ import absolute_import
import random
import string
import re
from collections import defaultdict
from copy import copy
> from openapi_spec_validator import validate_spec
E ModuleNotFoundError: No module named 'openapi_spec_validator'
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/moto/apigateway/models.py:9: ModuleNotFoundError
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Open API Spex — open_api_spex v3.4.0 - HexDocs
Leverage Open Api Specification 3 (swagger) to document, test, validate and explore ... by adding open_api_spex to your list of dependencies in mix.exs...
Read more >express-openapi-validator - npm
An OpenApi validator for ExpressJS that automatically validates API requests and responses using an OpenAPI 3 specification.
Read more >OpenAPI.Tools
openapi4j - Parse Description Document, validate API requests and responses using OpenAPI 3.x. Java, ❌, ✓, ❌. openVALIDATION - Allows complex validation ......
Read more >Open Api Spex - Elixir libraries - Pleroma GitLab
Generate and serve a JSON Open API Spec document from your code · Use the spec to cast request params to well defined...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bblommers thanks, can confirm this error is not present on 3.1.16.dev4.
Hi @timhaines, yeah, I noticed that as well. Apologies about that.
It should have been fixed with moto >= 3.1.16.dev4 - can you try that release and verify it works for you?