Metadata-Version: 2.3
Name: oapi3
Version: 1.5.3
Summary: Validator of openapi3 requests and responses
Author: Mayorov Evgeny
Author-email: motormen@gmail.com
Requires-Python: >=3.7.3
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: jsonschema (==4.17.3)
Requires-Dist: pyyaml (==6.0.1)
Description-Content-Type: text/markdown

# oapi3
Validator of openapi3 Requests and Responses

1. Open and resolve openapi3 schema

```
>>>    import openapi3
>>>    schema = openapi3.open_schema('api.yaml')
```

2. Validate requests and responses


```
>>>    schema.validate_request(path, operation, query, media_type, body)
>>>    schema.validate_response(path, operation, status_code, media_type, body)
```

3. Create client to remote api

```
>>>    client = oapi3.Client('http://server/api', schema)
>>>    client.operations['some.operation_id'](
>>>        params={'item_id': 10},
>>>        body={'some_key': 'some_date'},
>>>    )
```

