Skip to main content

Validator of openapi3 requests and responses

Project description

oapi3

Validator of openapi3 Requests and Responses

  1. Open and resolve openapi3 schema
>>>    import openapi3
>>>    schema = openapi3.open_schema('api.yaml')
  1. Validate requests and responses
>>>    schema.validate_request(path, operation, query, media_type, body)
>>>    schema.validate_response(path, operation, status_code, media_type, body)
  1. 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'},
>>>    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oapi3-1.5.3.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oapi3-1.5.3-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file oapi3-1.5.3.tar.gz.

File metadata

  • Download URL: oapi3-1.5.3.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Darwin/24.3.0

File hashes

Hashes for oapi3-1.5.3.tar.gz
Algorithm Hash digest
SHA256 f0277db70425cf67f667d0d97a8fa3c13301e149246fbf0569e408c7197c6fb4
MD5 0edc4784b798386d60059b3a8fffebe1
BLAKE2b-256 dc074084cf5af86fc7b6fa6ec2d4dd8117271b3fd30e38489b46de839af97034

See more details on using hashes here.

File details

Details for the file oapi3-1.5.3-py3-none-any.whl.

File metadata

  • Download URL: oapi3-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Darwin/24.3.0

File hashes

Hashes for oapi3-1.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90474c44d9e558a6da01012f0b2476e6e028db3b6dca9f6d0e3b49bed202c638
MD5 29973b7a1f343e98ca8c98a57517fa61
BLAKE2b-256 e9553337102b0eee31ff14ebd5affce9b39becf2a2fc19c8c84619f10cd782e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page