-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# serializer version: 1 | ||
# name: test_documents_with_errors[circular-body-ref.yaml] | ||
''' | ||
Generating /Users/dylan/projects/openapi-python-client/test-documents-with-errors | ||
Warning(s) encountered while generating. Client was generated, but some pieces may be missing | ||
|
||
WARNING parsing POST / within default. Endpoint will not be generated. | ||
|
||
Circular $ref in request body | ||
|
||
|
||
If you believe this was a mistake or this tool is missing a feature you need, please open an issue at https://github.com/openapi-generators/openapi-python-client/issues/new/choose | ||
|
||
''' | ||
# --- | ||
# name: test_documents_with_errors[optional-path-param.yaml] | ||
''' | ||
Generating /Users/dylan/projects/openapi-python-client/test-documents-with-errors | ||
Warning(s) encountered while generating. Client was generated, but some pieces may be missing | ||
|
||
WARNING parsing GET /{optional} within default. Endpoint will not be generated. | ||
|
||
Path parameter must be required | ||
|
||
Parameter(name='optional', param_in=<ParameterLocation.PATH: 'path'>, description=None, required=False, deprecated=False, allowEmptyValue=False, style=None, explode=False, allowReserved=False, param_schema=Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=None, const=None, type=<DataType.STRING: 'string'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description=None, schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None), example=None, examples=None, content=None) | ||
|
||
If you believe this was a mistake or this tool is missing a feature you need, please open an issue at https://github.com/openapi-generators/openapi-python-client/issues/new/choose | ||
|
||
''' | ||
# --- |
20 changes: 20 additions & 0 deletions
20
end_to_end_tests/documents_with_errors/circular-body-ref.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
openapi: "3.1.0" | ||
info: | ||
title: "Circular Body Ref" | ||
version: "0.1.0" | ||
paths: | ||
/: | ||
post: | ||
requestBody: | ||
$ref: "#/components/requestBodies/body" | ||
responses: | ||
"200": | ||
description: "Successful Response" | ||
content: | ||
"application/json": | ||
schema: | ||
const: "Why have a fixed response? I dunno" | ||
components: | ||
requestBodies: | ||
body: | ||
$ref: "#/components/requestBodies/body" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ authors = [ | |
{ name = "Dylan Anthony", email = "[email protected]" }, | ||
] | ||
license = { text = "MIT" } | ||
requires-python = ">=3.8,<4.0" | ||
requires-python = ">=3.8.1,<4.0" | ||
dependencies = [ | ||
"jinja2>=3.0.0,<4.0.0", | ||
"typer>0.6,<0.13", | ||
|
@@ -84,8 +84,6 @@ ignore_missing_imports = true | |
[tool.pytest.ini_options] | ||
junit_family = "xunit2" | ||
|
||
|
||
|
||
[tool.pdm.dev-dependencies] | ||
dev = [ | ||
"pytest", | ||
|
@@ -98,6 +96,7 @@ dev = [ | |
"types-certifi<2021.10.9,>=2020.0.0", | ||
"types-python-dateutil<3.0.0,>=2.0.0", | ||
"ruamel-yaml-string>=0.1.1", | ||
"syrupy>=4", | ||
] | ||
|
||
[tool.pdm.build] | ||
|