# pylint: disable=too-many-lines
# These schemas are copied from https://github.com/OAI/OpenAPI-Specification/tree/master/schemas
SWAGGER_20 = {
"title": "A JSON Schema for Swagger 2.0 API.",
"id": "http://swagger.io/v2/schema.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": ["swagger", "info", "paths"],
"additionalProperties": False,
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
"properties": {
"swagger": {"type": "string", "enum": ["2.0"], "description": "The Swagger version of this document."},
"info": {"$ref": "#/definitions/info"},
"host": {
"type": "string",
"pattern": "^[^{}/ :\\\\]+(?::\\d+)?$",
"description": "The host (name or ip) of the API. Example: 'swagger.io'",
},
"basePath": {"type": "string", "pattern": "^/", "description": "The base path to the API. Example: '/api'."},
"schemes": {"$ref": "#/definitions/schemesList"},
"consumes": {
"description": "A list of MIME types accepted by the API.",
"allOf": [{"$ref": "#/definitions/mediaTypeList"}],
},
"produces": {
"description": "A list of MIME types the API can produce.",
"allOf": [{"$ref": "#/definitions/mediaTypeList"}],
},
"paths": {"$ref": "#/definitions/paths"},
"definitions": {"$ref": "#/definitions/definitions"},
"parameters": {"$ref": "#/definitions/parameterDefinitions"},
"responses": {"$ref": "#/definitions/responseDefinitions"},
"security": {"$ref": "#/definitions/security"},
"securityDefinitions": {"$ref": "#/definitions/securityDefinitions"},
"tags": {"type": "array", "items": {"$ref": "#/definitions/tag"}, "uniqueItems": True},
"externalDocs": {"$ref": "#/definitions/externalDocs"},
},
"definitions": {
"info": {
"type": "object",
"description": "General information about the API.",
"required": ["version", "title"],
"additionalProperties": False,
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
"properties": {
"title": {"type": "string", "description": "A unique and precise title of the API."},
"version": {"type": "string", "description": "A semantic version number of the API."},
"description": {
"type": "string",
"description": "A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed.",
},
"termsOfService": {"type": "string", "description": "The terms of service for the API."},
"contact": {"$ref": "#/definitions/contact"},
"license": {"$ref": "#/definitions/license"},
},
},
"contact": {
"type": "object",
"description": "Contact information for the owners of the API.",
"additionalProperties": False,
"properties": {
"name": {"type": "string", "description": "The identifying name of the contact person/organization."},
"url": {
"type": "string",
"description": "The URL pointing to the contact information.",
"format": "uri",
},
"email": {
"type": "string",
"description": "The email address of the contact person/organization.",
"format": "email",
},
},
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
},
"license": {
"type": "object",
"required": ["name"],
"additionalProperties": False,
"properties": {
"name": {
"type": "string",
"description": "The name of the license type. It's encouraged to use an OSI compatible license.",
},
"url": {"type": "string", "description": "The URL pointing to the license.", "format": "uri"},
},
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
},
"paths": {
"type": "object",
"description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.",
"patternProperties": {
"^x-": {"$ref": "#/definitions/vendorExtension"},
"^/": {"$ref": "#/definitions/pathItem"},
},
"additionalProperties": False,
},
"definitions": {
"type": "object",
"additionalProperties": {"$ref": "#/definitions/schema"},
"description": "One or more JSON objects describing the schemas being consumed and produced by the API.",
},
"parameterDefinitions": {
"type": "object",
"additionalProperties": {"$ref": "#/definitions/parameter"},
"description": "One or more JSON representations for parameters",
},
"responseDefinitions": {
"type": "object",
"additionalProperties": {"$ref": "#/definitions/response"},
"description": "One or more JSON representations for responses",
},
"externalDocs": {
"type": "object",
"additionalProperties": False,
"description": "information about external documentation",
"required": ["url"],
"properties": {"description": {"type": "string"}, "url": {"type": "string", "format": "uri"}},
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
},
"examples": {"type": "object", "additionalProperties": True},
"mimeType": {"type": "string", "description": "The MIME type of the HTTP message."},
"operation": {
"type": "object",
"required": ["responses"],
"additionalProperties": False,
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
"properties": {
"tags": {"type": "array", "items": {"type": "string"}, "uniqueItems": True},
"summary": {"type": "string", "description": "A brief summary of the operation."},
"description": {
"type": "string",
"description": "A longer description of the operation, GitHub Flavored Markdown is allowed.",
},
"externalDocs": {"$ref": "#/definitions/externalDocs"},
"operationId": {"type": "string", "description": "A unique identifier of the operation."},
"produces": {
"description": "A list of MIME types the API can produce.",
"allOf": [{"$ref": "#/definitions/mediaTypeList"}],
},
"consumes": {
"description": "A list of MIME types the API can consume.",
"allOf": [{"$ref": "#/definitions/mediaTypeList"}],
},
"parameters": {"$ref": "#/definitions/parametersList"},
"responses": {"$ref": "#/definitions/responses"},
"schemes": {"$ref": "#/definitions/schemesList"},
"deprecated": {"type": "boolean", "default": False},
"security": {"$ref": "#/definitions/security"},
},
},
"pathItem": {
"type": "object",
"additionalProperties": False,
"patternProperties": {"^x-": {"$ref": "#/definitions/vendorExtension"}},
"properties": {
"$ref": {"type": "string"},
"get": {"$ref": "#/definitions/operation"},
"put": {"$ref": "#/definitions/operation"
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | schemathesis-2.3.3.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 184 浏览量
2022-01-16
02:02:30
上传
评论
收藏 85KB GZ 举报
温馨提示
共67个文件
py:63个
license:1个
toml:1个
资源来自pypi官网。 资源全名:schemathesis-2.3.3.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
schemathesis-2.3.3.tar.gz (67个子文件)
schemathesis-2.3.3
PKG-INFO 23KB
README.rst 21KB
pyproject.toml 2KB
LICENSE 1KB
src
schemathesis
constants.py 228B
models.py 23KB
extra
_aiohttp.py 984B
_server.py 518B
__init__.py 0B
pytest_plugin.py 5KB
_flask.py 285B
specs
__init__.py 0B
openapi
links.py 8KB
serialization.py 10KB
definitions.py 64KB
checks.py 5KB
filters.py 1KB
security.py 4KB
__init__.py 0B
references.py 4KB
expressions
pointers.py 879B
nodes.py 4KB
lexer.py 4KB
parser.py 3KB
errors.py 219B
__init__.py 659B
context.py 314B
_hypothesis.py 1KB
schemas.py 22KB
examples.py 8KB
converter.py 1KB
graphql
__init__.py 41B
loaders.py 2KB
schemas.py 1KB
lazy.py 5KB
utils.py 7KB
types.py 1KB
checks.py 956B
fixups
fast_api.py 1022B
__init__.py 671B
runner
serialization.py 4KB
events.py 6KB
targeted.py 131B
__init__.py 12KB
impl
core.py 15KB
threadpool.py 10KB
__init__.py 233B
solo.py 2KB
__init__.py 356B
loaders.py 8KB
_hypothesis.py 9KB
schemas.py 8KB
_compat.py 150B
stateful.py 1KB
hooks.py 8KB
exceptions.py 2KB
cli
options.py 1KB
callbacks.py 4KB
output
short.py 2KB
default.py 14KB
__init__.py 29B
junitxml.py 2KB
__init__.py 14KB
context.py 1KB
handlers.py 974B
cassettes.py 8KB
setup.py 24KB
共 67 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python 程序语言设计模式思路-行为型模式:策略模式:将算法封装成独立的类,并使它们可以互相替换及支付模式数据压缩
- main.py
- Last Loaded Test.DBK
- Screenshot_20240520_163011.jpg
- ubuntu-python3-whisper-tornado docker镜像 Dockerfile
- ubuntu-python3-whisper-tornado docker镜像07
- 新录音 8.m4a
- ubuntu-python3-whisper-tornado docker镜像
- ubuntu-python3-whisper-tornado docker镜像
- ubuntu-python3-whisper-tornado docker镜像09
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功