From ca496c2038bdd15101257359d4e903e8f1625976 Mon Sep 17 00:00:00 2001 From: spacether Date: Tue, 19 Sep 2023 16:34:03 -0700 Subject: [PATCH 01/34] Adds const components and examples --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 749 +++++++++++++++++- .../3_1/unit_test_spec/spec_writer.py | 9 +- 2 files changed, 753 insertions(+), 5 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 3bc0ba65919..8d2f55fb768 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -14,6 +14,7 @@ tags: - name: additionalProperties - name: allOf - name: anyOf +- name: const - name: enum - name: format - name: items @@ -719,6 +720,474 @@ paths: - path.post - contentType_json - anyOf + /requestBody/postConstValidationRequestBody: + post: + operationId: postConstValidationRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstValidation' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstValidationResponseBodyForContentTypes: + post: + operationId: postConstValidationResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstValidation' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithObjectRequestBody: + post: + operationId: postConstWithObjectRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithObject' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithObject' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithObjectResponseBodyForContentTypes: + post: + operationId: postConstWithObjectResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithObject' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithObject' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithArrayRequestBody: + post: + operationId: postConstWithArrayRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithArray' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithArray' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithArrayResponseBodyForContentTypes: + post: + operationId: postConstWithArrayResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithArray' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithArray' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithNullRequestBody: + post: + operationId: postConstWithNullRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithNull' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithNull' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithNullResponseBodyForContentTypes: + post: + operationId: postConstWithNullResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithNull' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithNull' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithFalseDoesNotMatch0RequestBody: + post: + operationId: postConstWithFalseDoesNotMatch0RequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes: + post: + operationId: postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithTrueDoesNotMatch1RequestBody: + post: + operationId: postConstWithTrueDoesNotMatch1RequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes: + post: + operationId: postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithAFalseDoesNotMatchA0RequestBody: + post: + operationId: postConstWithAFalseDoesNotMatchA0RequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithAFalseDoesNotMatchA0' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithAFalseDoesNotMatchA0' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithAFalseDoesNotMatchA0ResponseBodyForContentTypes: + post: + operationId: postConstWithAFalseDoesNotMatchA0ResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithAFalseDoesNotMatchA0' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithAFalseDoesNotMatchA0' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWithATrueDoesNotMatchA1RequestBody: + post: + operationId: postConstWithATrueDoesNotMatchA1RequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithATrueDoesNotMatchA1' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithATrueDoesNotMatchA1' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWithATrueDoesNotMatchA1ResponseBodyForContentTypes: + post: + operationId: postConstWithATrueDoesNotMatchA1ResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWithATrueDoesNotMatchA1' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWithATrueDoesNotMatchA1' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody: + post: + operationId: postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWith0DoesNotMatchOtherZeroLikeTypes' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWith0DoesNotMatchOtherZeroLikeTypes' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes: + post: + operationId: postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWith0DoesNotMatchOtherZeroLikeTypes' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWith0DoesNotMatchOtherZeroLikeTypes' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWith1DoesNotMatchTrueRequestBody: + post: + operationId: postConstWith1DoesNotMatchTrueRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWith1DoesNotMatchTrue' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWith1DoesNotMatchTrue' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes: + post: + operationId: postConstWith1DoesNotMatchTrueResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWith1DoesNotMatchTrue' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWith1DoesNotMatchTrue' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody: + post: + operationId: postConstWith20MatchesIntegerAndFloatTypesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWith20MatchesIntegerAndFloatTypes' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWith20MatchesIntegerAndFloatTypes' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes: + post: + operationId: postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstWith20MatchesIntegerAndFloatTypes' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstWith20MatchesIntegerAndFloatTypes' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody: + post: + operationId: postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes: + post: + operationId: postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const + /requestBody/postConstNulCharactersInStringsRequestBody: + post: + operationId: postConstNulCharactersInStringsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConstNulCharactersInStrings' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstNulCharactersInStrings' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - const + /responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes: + post: + operationId: postConstNulCharactersInStringsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ConstNulCharactersInStrings' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ConstNulCharactersInStrings' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - const /requestBody/postSimpleEnumValidationRequestBody: post: operationId: postSimpleEnumValidationRequestBody @@ -3838,6 +4307,52 @@ components: anyOf: - anyOf: - type: 'null' + ConstValidation: + $schema: https://json-schema.org/draft/2020-12/schema + const: 2 + ConstWithObject: + $schema: https://json-schema.org/draft/2020-12/schema + const: + foo: bar + baz: bax + ConstWithArray: + $schema: https://json-schema.org/draft/2020-12/schema + const: + - foo: bar + ConstWithNull: + $schema: https://json-schema.org/draft/2020-12/schema + const: null + ConstWithFalseDoesNotMatch0: + $schema: https://json-schema.org/draft/2020-12/schema + const: + - false + ConstWithTrueDoesNotMatch1: + $schema: https://json-schema.org/draft/2020-12/schema + const: + - true + ConstWithAFalseDoesNotMatchA0: + $schema: https://json-schema.org/draft/2020-12/schema + const: + a: false + ConstWithATrueDoesNotMatchA1: + $schema: https://json-schema.org/draft/2020-12/schema + const: + a: true + ConstWith0DoesNotMatchOtherZeroLikeTypes: + $schema: https://json-schema.org/draft/2020-12/schema + const: 0 + ConstWith1DoesNotMatchTrue: + $schema: https://json-schema.org/draft/2020-12/schema + const: 1 + ConstWith20MatchesIntegerAndFloatTypes: + $schema: https://json-schema.org/draft/2020-12/schema + const: -2.0 + ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits: + $schema: https://json-schema.org/draft/2020-12/schema + const: 9007199254740992 + ConstNulCharactersInStrings: + $schema: https://json-schema.org/draft/2020-12/schema + const: "hello\0there" SimpleEnumValidation: $schema: https://json-schema.org/draft/2020-12/schema enum: @@ -4478,6 +4993,235 @@ components: description: anything non-null is invalid data: 123 valid: false + ConstValidation: + SameValueIsValid: + description: same value is valid + data: 2 + valid: true + AnotherValueIsInvalid: + description: another value is invalid + data: 5 + valid: false + AnotherTypeIsInvalid: + description: another type is invalid + data: a + valid: false + ConstWithObject: + SameObjectIsValid: + description: same object is valid + data: + foo: bar + baz: bax + valid: true + SameObjectWithDifferentPropertyOrderIsValid: + description: same object with different property order is valid + data: + baz: bax + foo: bar + valid: true + AnotherObjectIsInvalid: + description: another object is invalid + data: + foo: bar + valid: false + AnotherTypeIsInvalid: + description: another type is invalid + data: + - 1 + - 2 + valid: false + ConstWithArray: + SameArrayIsValid: + description: same array is valid + data: + - foo: bar + valid: true + AnotherArrayItemIsInvalid: + description: another array item is invalid + data: + - 2 + valid: false + ArrayWithAdditionalItemsIsInvalid: + description: array with additional items is invalid + data: + - 1 + - 2 + - 3 + valid: false + ConstWithNull: + NullIsValid: + description: null is valid + data: null + valid: true + NotNullIsInvalid: + description: not null is invalid + data: 0 + valid: false + ConstWithFalseDoesNotMatch0: + FalseIsValid: + description: '[false] is valid' + data: + - false + valid: true + IntegerZeroIsInvalid: + description: integer zero is invalid + data: 0 + valid: false + FloatZeroIsInvalid: + description: float zero is invalid + data: 0.0 + valid: false + 0IsInvalid: + description: '[0] is invalid' + data: + - 0 + valid: false + 00IsInvalid: + description: '[0.0] is invalid' + data: + - 0.0 + valid: false + ConstWithTrueDoesNotMatch1: + TrueIsValid: + description: '[true] is valid' + data: + - true + valid: true + IntegerOneIsInvalid: + description: integer one is invalid + data: 1 + valid: false + FloatOneIsInvalid: + description: float one is invalid + data: 1.0 + valid: false + 1IsInvalid: + description: '[1] is invalid' + data: + - 1 + valid: false + 10IsInvalid: + description: '[1.0] is invalid' + data: + - 1.0 + valid: false + ConstWithAFalseDoesNotMatchA0: + AFalseIsValid: + description: '{"a": false} is valid' + data: + a: false + valid: true + A0IsInvalid: + description: '{"a": 0} is invalid' + data: + a: 0 + valid: false + A00IsInvalid: + description: '{"a": 0.0} is invalid' + data: + a: 0.0 + valid: false + ConstWithATrueDoesNotMatchA1: + ATrueIsValid: + description: '{"a": true} is valid' + data: + a: true + valid: true + A1IsInvalid: + description: '{"a": 1} is invalid' + data: + a: 1 + valid: false + A10IsInvalid: + description: '{"a": 1.0} is invalid' + data: + a: 1.0 + valid: false + ConstWith0DoesNotMatchOtherZeroLikeTypes: + FalseIsInvalid: + description: false is invalid + data: false + valid: false + IntegerZeroIsValid: + description: integer zero is valid + data: 0 + valid: true + FloatZeroIsValid: + description: float zero is valid + data: 0.0 + valid: true + EmptyObjectIsInvalid: + description: empty object is invalid + data: {} + valid: false + EmptyArrayIsInvalid: + description: empty array is invalid + data: [] + valid: false + EmptyStringIsInvalid: + description: empty string is invalid + data: '' + valid: false + ConstWith1DoesNotMatchTrue: + TrueIsInvalid: + description: true is invalid + data: true + valid: false + IntegerOneIsValid: + description: integer one is valid + data: 1 + valid: true + FloatOneIsValid: + description: float one is valid + data: 1.0 + valid: true + ConstWith20MatchesIntegerAndFloatTypes: + Integer2IsValid: + description: integer -2 is valid + data: -2 + valid: true + Integer2IsInvalid: + description: integer 2 is invalid + data: 2 + valid: false + Float20IsValid: + description: float -2.0 is valid + data: -2.0 + valid: true + Float20IsInvalid: + description: float 2.0 is invalid + data: 2.0 + valid: false + Float200001IsInvalid: + description: float -2.00001 is invalid + data: -2.00001 + valid: false + ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits: + IntegerIsValid: + description: integer is valid + data: 9007199254740992 + valid: true + IntegerMinusOneIsInvalid: + description: integer minus one is invalid + data: 9007199254740991 + valid: false + FloatIsValid: + description: float is valid + data: 9007199254740992.0 + valid: true + FloatMinusOneIsInvalid: + description: float minus one is invalid + data: 9007199254740991.0 + valid: false + ConstNulCharactersInStrings: + MatchStringWithNul: + description: match string with nul + data: "hello\0there" + valid: true + DoNotMatchStringLackingNul: + description: do not match string lacking nul + data: hellothere + valid: false SimpleEnumValidation: OneOfTheEnumIsValid: description: one of the enum is valid @@ -4768,7 +5512,8 @@ components: valid: true InvalidIdnHostnameStringIsOnlyAnAnnotationByDefault: description: invalid idn-hostname string is only an annotation by default - data: "\u302E\uC2E4\uB840.\uD14C\uC2A4\uD2B8" + data: "\xE3\u20AC\xAE\xEC\u2039\xA4\xEB\xA1\u20AC.\xED\u2026\u0152\xEC\u0160\ + \xA4\xED\u0160\xB8" valid: true HostnameFormat: AllStringFormatsIgnoreIntegers: @@ -5001,7 +5746,7 @@ components: valid: true InvalidIriReferenceStringIsOnlyAnAnnotationByDefault: description: invalid iri-reference string is only an annotation by default - data: "\\\\WINDOWS\\fil\xEB\xDF\xE5r\xE9" + data: "\\\\WINDOWS\\fil\xC3\xAB\xC3\u0178\xC3\xA5r\xC3\xA9" valid: true UriFormat: AllStringFormatsIgnoreIntegers: diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 2f9bacc7e9f..2f9cc89cf01 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -40,6 +40,7 @@ class JsonSchemaTestCase: 'additionalProperties': 'JsonSchema', 'allOf': typing.List['JsonSchema'], 'anyOf': typing.List['JsonSchema'], + 'const': typing.Any, 'default': typing.Any, 'enum': typing.List[typing.Any], 'exclusiveMaximum': typing.Union[int, float], @@ -82,7 +83,6 @@ class ExclusionReason: v303_requires_array_have_items = 'v3.0.3 requires that items MUST be present if the type is array' v303_does_not_support_additionalItems = 'v3.0.3 does not support the additionalItems keyword' v303_does_not_support_patternProperties = 'v3.0.3 does not support the patternProperties keyword' - v303_does_not_support_const = 'v3.0.3 does not support the const keyword' bug_does_not_support_boolean_schemas_in_location = 'v3.1.0 does not support boolean schemas in location, https://github.com/swagger-api/swagger-parser/issues/1770' v303_does_not_support_contains = 'v3.0.3 does not support the contains keyword' bug_does_not_support_definitions = 'swagger-parser does not support the $defs keyword, https://github.com/swagger-api/swagger-parser/issues/1970' @@ -235,7 +235,6 @@ class ExclusionReason: } FILEPATH_TO_EXCLUDE_REASON = { (json_schema_test_draft, 'additionalItems.json'): ExclusionReason.v303_does_not_support_additionalItems, - (json_schema_test_draft, 'const.json'): ExclusionReason.v303_does_not_support_const, (json_schema_test_draft, 'boolean_schema.json'): ExclusionReason.bug_does_not_support_boolean_schemas_in_location, (json_schema_test_draft, 'contains.json'): ExclusionReason.v303_does_not_support_contains, (json_schema_test_draft, 'definitions.json'): ExclusionReason.bug_does_not_support_definitions, @@ -255,7 +254,7 @@ class ExclusionReason: 'allOf.json': (json_schema_test_draft,), 'anyOf.json': (json_schema_test_draft,), 'boolean_schema.json': (json_schema_test_draft,), -# 'const.json': (json_schema_test_draft,), + 'const.json': (json_schema_test_draft,), # 'contains.json': (json_schema_test_draft,), # 'default.json': (json_schema_test_draft,), # 'definitions.json': (json_schema_test_draft,), @@ -452,6 +451,10 @@ def get_component_schemas_and_test_examples( continue for test_schema in test_schemas: component_name = description_to_component_name(test_schema.description) + json_schema_keyword = json_schema_test_file[:-5] + if json_schema_keyword == "const" and not component_name.lower().startswith("const"): + # prefix added to prevent collision with other components + component_name = "Const" + component_name if isinstance(test_schema.schema, bool): component_schemas[component_name] = test_schema.schema else: From d3e2993670b3dd9135e5424341ad42c6a3ef2b48 Mon Sep 17 00:00:00 2001 From: spacether Date: Wed, 20 Sep 2023 11:24:35 -0700 Subject: [PATCH 02/34] Excludes components that throw errors in swagger-parser --- hs_err_pid5576.log | 196 ++++++++++++++ hs_err_pid7980.log | 196 ++++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 251 ------------------ .../3_1/unit_test_spec/spec_writer.py | 9 + 4 files changed, 401 insertions(+), 251 deletions(-) create mode 100644 hs_err_pid5576.log create mode 100644 hs_err_pid7980.log diff --git a/hs_err_pid5576.log b/hs_err_pid5576.log new file mode 100644 index 00000000000..3326889c63f --- /dev/null +++ b/hs_err_pid5576.log @@ -0,0 +1,196 @@ +# +# There is insufficient memory for the Java Runtime Environment to continue. +# Native memory allocation (mmap) failed to map 134217728 bytes for Failed to commit area from 0x0000000081200000 to 0x0000000089200000 of length 134217728. +# Possible reasons: +# The system is out of physical RAM or swap space +# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap +# Possible solutions: +# Reduce memory load on the system +# Increase physical memory or swap space +# Check if swap backing store is full +# Decrease Java heap size (-Xmx/-Xms) +# Decrease number of Java threads +# Decrease Java thread stack sizes (-Xss) +# Set larger code cache with -XX:ReservedCodeCacheSize= +# This output file may be truncated or incomplete. +# +# Out of Memory Error (./open/src/hotspot/os/windows/os_windows.cpp:3293), pid=5576, tid=4676 +# +# JRE version: (11.0.20+9) (build ) +# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) +# No core dump will be written. Minidumps are not enabled by default on client versions of Windows +# + +--------------- S U M M A R Y ------------ + +Command Line: C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671\surefirebooter-20230919195204946_3.jar C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671 2023-09-19T19-52-04_213-jvmRun1 surefire-20230919195204946_1tmp surefire_0-20230919195204946_2tmp + +Host: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz, 4 cores, 7G, Windows 10 , 64 bit Build 18362 (10.0.18362.1110) +Time: Tue Sep 19 19:52:05 2023 Pacific Daylight Time elapsed time: 0.028448 seconds (0d 0h 0m 0s) + +--------------- T H R E A D --------------- + +Current thread (0x000001fdaad60000): JavaThread "Unknown thread" [_thread_in_vm, id=4676, stack(0x000000b62da00000,0x000000b62db00000)] + +Stack: [0x000000b62da00000,0x000000b62db00000] +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +V [jvm.dll+0x6602ba] +V [jvm.dll+0x7a32af] +V [jvm.dll+0x7a4979] +V [jvm.dll+0x7a5013] +V [jvm.dll+0x258ef5] +V [jvm.dll+0x65d619] +V [jvm.dll+0x652375] +V [jvm.dll+0x31359d] +V [jvm.dll+0x313402] +V [jvm.dll+0x318036] +V [jvm.dll+0x360130] +V [jvm.dll+0x35fba2] +V [jvm.dll+0x2eec28] +V [jvm.dll+0x2efd35] +V [jvm.dll+0x77c327] +V [jvm.dll+0x77dc0f] +V [jvm.dll+0x36d3d9] +V [jvm.dll+0x760d0f] +V [jvm.dll+0x3df467] +V [jvm.dll+0x3e1511] +C [jli.dll+0x52e7] +C [ucrtbase.dll+0x210b2] +C [KERNEL32.DLL+0x17c24] +C [ntdll.dll+0x6d4d1] + + +--------------- P R O C E S S --------------- + +Threads class SMR info: +_java_thread_list=0x000001fda8bf5110, length=0, elements={ +} + +Java Threads: ( => current thread ) + +Other Threads: + 0x000001fdaad76800 GCTaskThread "GC Thread#0" [stack: 0x000000b62db00000,0x000000b62dc00000] [id=3364] + 0x000001fdaada8000 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000b62dc00000,0x000000b62dd00000] [id=4608] + 0x000001fdaada9000 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000b62dd00000,0x000000b62de00000] [id=12952] + +[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff719bf6e7] + +VM state:not at safepoint (not fully initialized) + +VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) +[0x000001fdaad5d770] Heap_lock - owner thread: 0x000001fdaad60000 + +Heap address: 0x0000000081200000, size: 2030 MB, Compressed Oops mode: Non-zero based: 0x0000000081200000 +Narrow klass base: 0x0000000000000000, Narrow klass shift: 0 + +GC Heap History (0 events): +No events + +Deoptimization events (0 events): +No events + +Classes redefined (0 events): +No events + +Internal exceptions (0 events): +No events + +Events (0 events): +No events + + +Dynamic libraries: +0x00007ff6b9ef0000 - 0x00007ff6b9f00000 C:\Program Files\Java\jdk-11\bin\java.exe +0x00007fffa5f20000 - 0x00007fffa6110000 C:\WINDOWS\SYSTEM32\ntdll.dll +0x00007fffa3fd0000 - 0x00007fffa4082000 C:\WINDOWS\System32\KERNEL32.DLL +0x00007fffa2fe0000 - 0x00007fffa3285000 C:\WINDOWS\System32\KERNELBASE.dll +0x00007fffa3a40000 - 0x00007fffa3b3a000 C:\WINDOWS\System32\ucrtbase.dll +0x00007fff9f890000 - 0x00007fff9f8ab000 C:\Program Files\Java\jdk-11\bin\VCRUNTIME140.dll +0x00007fff9f870000 - 0x00007fff9f889000 C:\Program Files\Java\jdk-11\bin\jli.dll +0x00007fffa4ae0000 - 0x00007fffa4b83000 C:\WINDOWS\System32\ADVAPI32.dll +0x00007fffa5d90000 - 0x00007fffa5e2e000 C:\WINDOWS\System32\msvcrt.dll +0x00007fffa5110000 - 0x00007fffa51a7000 C:\WINDOWS\System32\sechost.dll +0x00007fffa4960000 - 0x00007fffa4a80000 C:\WINDOWS\System32\RPCRT4.dll +0x00007fffa47c0000 - 0x00007fffa4954000 C:\WINDOWS\System32\USER32.dll +0x00007fffa3ef0000 - 0x00007fffa3f11000 C:\WINDOWS\System32\win32u.dll +0x00007fffa50d0000 - 0x00007fffa50f6000 C:\WINDOWS\System32\GDI32.dll +0x00007fffa3c80000 - 0x00007fffa3e16000 C:\WINDOWS\System32\gdi32full.dll +0x00007fff86a10000 - 0x00007fff86c94000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2\COMCTL32.dll +0x00007fffa3e20000 - 0x00007fffa3ebe000 C:\WINDOWS\System32\msvcp_win.dll +0x00007fffa4d60000 - 0x00007fffa5096000 C:\WINDOWS\System32\combase.dll +0x00007fffa3b40000 - 0x00007fffa3bc1000 C:\WINDOWS\System32\bcryptPrimitives.dll +0x00007fffa1900000 - 0x00007fffa190a000 C:\WINDOWS\SYSTEM32\VERSION.dll +0x00007fffa50a0000 - 0x00007fffa50ce000 C:\WINDOWS\System32\IMM32.DLL +0x00007fff9e8c0000 - 0x00007fff9e8cc000 C:\Program Files\Java\jdk-11\bin\vcruntime140_1.dll +0x00007fff96370000 - 0x00007fff963fe000 C:\Program Files\Java\jdk-11\bin\msvcp140.dll +0x00007fff716c0000 - 0x00007fff7222d000 C:\Program Files\Java\jdk-11\bin\server\jvm.dll +0x00007fffa5100000 - 0x00007fffa5108000 C:\WINDOWS\System32\PSAPI.DLL +0x00007fff869d0000 - 0x00007fff869d9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll +0x00007fffa5280000 - 0x00007fffa52ef000 C:\WINDOWS\System32\WS2_32.dll +0x00007fff9d560000 - 0x00007fff9d584000 C:\WINDOWS\SYSTEM32\WINMM.dll +0x00007fff9d530000 - 0x00007fff9d55d000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll +0x00007fffa3f20000 - 0x00007fffa3f6a000 C:\WINDOWS\System32\cfgmgr32.dll +0x00007fffa2dd0000 - 0x00007fffa2de1000 C:\WINDOWS\System32\kernel.appcore.dll +0x00007fff9e8b0000 - 0x00007fff9e8c0000 C:\Program Files\Java\jdk-11\bin\verify.dll +0x00007fff9c200000 - 0x00007fff9c3f4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL +0x00007fff9be40000 - 0x00007fff9be6a000 C:\WINDOWS\SYSTEM32\dbgcore.DLL +0x00007fff9df20000 - 0x00007fff9df48000 C:\Program Files\Java\jdk-11\bin\java.dll +0x00007fff9e8a0000 - 0x00007fff9e8aa000 C:\Program Files\Java\jdk-11\bin\jimage.dll +0x00007fff9c480000 - 0x00007fff9c497000 C:\Program Files\Java\jdk-11\bin\zip.dll + +dbghelp: loaded successfully - version: 4.0.5 - missing functions: none +symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Program Files\Java\jdk-11\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2;C:\Program Files\Java\jdk-11\bin\server + +VM Arguments: +java_command: C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671\surefirebooter-20230919195204946_3.jar C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671 2023-09-19T19-52-04_213-jvmRun1 surefire-20230919195204946_1tmp surefire_0-20230919195204946_2tmp +java_class_path (initial): C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671\surefirebooter-20230919195204946_3.jar +Launcher Type: SUN_STANDARD + +[Global flags] + intx CICompilerCount = 3 {product} {ergonomic} + uint ConcGCThreads = 1 {product} {ergonomic} + uint G1ConcRefinementThreads = 4 {product} {ergonomic} + size_t G1HeapRegionSize = 1048576 {product} {ergonomic} + uintx GCDrainStackTargetSize = 64 {product} {ergonomic} + size_t InitialHeapSize = 134217728 {product} {ergonomic} + size_t MarkStackSize = 4194304 {product} {ergonomic} + size_t MaxHeapSize = 2128609280 {product} {ergonomic} + size_t MinHeapDeltaBytes = 1048576 {product} {ergonomic} + uintx NonNMethodCodeHeapSize = 5830732 {pd product} {ergonomic} + uintx NonProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} + uintx ProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} + uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic} + bool SegmentedCodeCache = true {product} {ergonomic} + bool UseCompressedClassPointers = true {lp64_product} {ergonomic} + bool UseCompressedOops = true {lp64_product} {ergonomic} + bool UseG1GC = true {product} {ergonomic} + bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic} + +Logging: +Log output configuration: + #0: stdout all=warning uptime,level,tags + #1: stderr all=off uptime,level,tags + +Environment Variables: +PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Go\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files\Maven\apache-maven-3.9.4\bin;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\Justin\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Justin\AppData\Local\Programs\Python\Python38\;C:\Ruby23\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\AppData\Local\atom\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\go\bin;;C:\Users\Justin\AppData\Local\Programs\Microsoft VS Code\bin +USERNAME=Justin +OS=Windows_NT +PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel + + + +--------------- S Y S T E M --------------- + +OS: Windows 10 , 64 bit Build 18362 (10.0.18362.1110) +Hyper-V role detected + +CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1 microcode 0x26, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, fma + +Memory: 4k page, system-wide physical 8117M (1706M free) +TotalPageFile size 8517M (AvailPageFile size 37M) +current process WorkingSet (physical memory assigned to process): 9M, peak: 9M +current process commit charge ("private bytes"): 51M, peak: 179M + +vm_info: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256) for windows-amd64 JRE (11.0.20+9-LTS-256), built on Jun 14 2023 10:34:22 by "mach5one" with MS VC++ 17.1 (VS2022) + +END. diff --git a/hs_err_pid7980.log b/hs_err_pid7980.log new file mode 100644 index 00000000000..eda441f4fc7 --- /dev/null +++ b/hs_err_pid7980.log @@ -0,0 +1,196 @@ +# +# There is insufficient memory for the Java Runtime Environment to continue. +# Native memory allocation (mmap) failed to map 134217728 bytes for Failed to commit area from 0x0000000081200000 to 0x0000000089200000 of length 134217728. +# Possible reasons: +# The system is out of physical RAM or swap space +# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap +# Possible solutions: +# Reduce memory load on the system +# Increase physical memory or swap space +# Check if swap backing store is full +# Decrease Java heap size (-Xmx/-Xms) +# Decrease number of Java threads +# Decrease Java thread stack sizes (-Xss) +# Set larger code cache with -XX:ReservedCodeCacheSize= +# This output file may be truncated or incomplete. +# +# Out of Memory Error (./open/src/hotspot/os/windows/os_windows.cpp:3293), pid=7980, tid=13508 +# +# JRE version: (11.0.20+9) (build ) +# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) +# No core dump will be written. Minidumps are not enabled by default on client versions of Windows +# + +--------------- S U M M A R Y ------------ + +Command Line: C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396\surefirebooter-20230919195253159_3.jar C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396 2023-09-19T19-52-52_517-jvmRun1 surefire-20230919195253159_1tmp surefire_0-20230919195253159_2tmp + +Host: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz, 4 cores, 7G, Windows 10 , 64 bit Build 18362 (10.0.18362.1110) +Time: Tue Sep 19 19:52:53 2023 Pacific Daylight Time elapsed time: 0.027585 seconds (0d 0h 0m 0s) + +--------------- T H R E A D --------------- + +Current thread (0x000002c91530f000): JavaThread "Unknown thread" [_thread_in_vm, id=13508, stack(0x000000ee7dc00000,0x000000ee7dd00000)] + +Stack: [0x000000ee7dc00000,0x000000ee7dd00000] +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +V [jvm.dll+0x6602ba] +V [jvm.dll+0x7a32af] +V [jvm.dll+0x7a4979] +V [jvm.dll+0x7a5013] +V [jvm.dll+0x258ef5] +V [jvm.dll+0x65d619] +V [jvm.dll+0x652375] +V [jvm.dll+0x31359d] +V [jvm.dll+0x313402] +V [jvm.dll+0x318036] +V [jvm.dll+0x360130] +V [jvm.dll+0x35fba2] +V [jvm.dll+0x2eec28] +V [jvm.dll+0x2efd35] +V [jvm.dll+0x77c327] +V [jvm.dll+0x77dc0f] +V [jvm.dll+0x36d3d9] +V [jvm.dll+0x760d0f] +V [jvm.dll+0x3df467] +V [jvm.dll+0x3e1511] +C [jli.dll+0x52e7] +C [ucrtbase.dll+0x210b2] +C [KERNEL32.DLL+0x17c24] +C [ntdll.dll+0x6d4d1] + + +--------------- P R O C E S S --------------- + +Threads class SMR info: +_java_thread_list=0x000002c9130b5cd0, length=0, elements={ +} + +Java Threads: ( => current thread ) + +Other Threads: + 0x000002c915325800 GCTaskThread "GC Thread#0" [stack: 0x000000ee7dd00000,0x000000ee7de00000] [id=4184] + 0x000002c915356800 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000ee7de00000,0x000000ee7df00000] [id=4316] + 0x000002c915358000 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000ee7df00000,0x000000ee7e000000] [id=12340] + +[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff719bf6e7] + +VM state:not at safepoint (not fully initialized) + +VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) +[0x000002c91530ba80] Heap_lock - owner thread: 0x000002c91530f000 + +Heap address: 0x0000000081200000, size: 2030 MB, Compressed Oops mode: Non-zero based: 0x0000000081200000 +Narrow klass base: 0x0000000000000000, Narrow klass shift: 0 + +GC Heap History (0 events): +No events + +Deoptimization events (0 events): +No events + +Classes redefined (0 events): +No events + +Internal exceptions (0 events): +No events + +Events (0 events): +No events + + +Dynamic libraries: +0x00007ff6b9ef0000 - 0x00007ff6b9f00000 C:\Program Files\Java\jdk-11\bin\java.exe +0x00007fffa5f20000 - 0x00007fffa6110000 C:\WINDOWS\SYSTEM32\ntdll.dll +0x00007fffa3fd0000 - 0x00007fffa4082000 C:\WINDOWS\System32\KERNEL32.DLL +0x00007fffa2fe0000 - 0x00007fffa3285000 C:\WINDOWS\System32\KERNELBASE.dll +0x00007fffa3a40000 - 0x00007fffa3b3a000 C:\WINDOWS\System32\ucrtbase.dll +0x00007fff9f870000 - 0x00007fff9f889000 C:\Program Files\Java\jdk-11\bin\jli.dll +0x00007fffa4ae0000 - 0x00007fffa4b83000 C:\WINDOWS\System32\ADVAPI32.dll +0x00007fffa5d90000 - 0x00007fffa5e2e000 C:\WINDOWS\System32\msvcrt.dll +0x00007fffa5110000 - 0x00007fffa51a7000 C:\WINDOWS\System32\sechost.dll +0x00007fffa4960000 - 0x00007fffa4a80000 C:\WINDOWS\System32\RPCRT4.dll +0x00007fffa47c0000 - 0x00007fffa4954000 C:\WINDOWS\System32\USER32.dll +0x00007fffa3ef0000 - 0x00007fffa3f11000 C:\WINDOWS\System32\win32u.dll +0x00007fffa50d0000 - 0x00007fffa50f6000 C:\WINDOWS\System32\GDI32.dll +0x00007fffa3c80000 - 0x00007fffa3e16000 C:\WINDOWS\System32\gdi32full.dll +0x00007fffa3e20000 - 0x00007fffa3ebe000 C:\WINDOWS\System32\msvcp_win.dll +0x00007fff9f890000 - 0x00007fff9f8ab000 C:\Program Files\Java\jdk-11\bin\VCRUNTIME140.dll +0x00007fff86a10000 - 0x00007fff86c94000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2\COMCTL32.dll +0x00007fffa4d60000 - 0x00007fffa5096000 C:\WINDOWS\System32\combase.dll +0x00007fffa3b40000 - 0x00007fffa3bc1000 C:\WINDOWS\System32\bcryptPrimitives.dll +0x00007fffa1900000 - 0x00007fffa190a000 C:\WINDOWS\SYSTEM32\VERSION.dll +0x00007fffa50a0000 - 0x00007fffa50ce000 C:\WINDOWS\System32\IMM32.DLL +0x00007fff9e8c0000 - 0x00007fff9e8cc000 C:\Program Files\Java\jdk-11\bin\vcruntime140_1.dll +0x00007fff96370000 - 0x00007fff963fe000 C:\Program Files\Java\jdk-11\bin\msvcp140.dll +0x00007fff716c0000 - 0x00007fff7222d000 C:\Program Files\Java\jdk-11\bin\server\jvm.dll +0x00007fffa5100000 - 0x00007fffa5108000 C:\WINDOWS\System32\PSAPI.DLL +0x00007fff869d0000 - 0x00007fff869d9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll +0x00007fffa5280000 - 0x00007fffa52ef000 C:\WINDOWS\System32\WS2_32.dll +0x00007fff9d560000 - 0x00007fff9d584000 C:\WINDOWS\SYSTEM32\WINMM.dll +0x00007fff9d530000 - 0x00007fff9d55d000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll +0x00007fffa3f20000 - 0x00007fffa3f6a000 C:\WINDOWS\System32\cfgmgr32.dll +0x00007fffa2dd0000 - 0x00007fffa2de1000 C:\WINDOWS\System32\kernel.appcore.dll +0x00007fff9e8b0000 - 0x00007fff9e8c0000 C:\Program Files\Java\jdk-11\bin\verify.dll +0x00007fff9c200000 - 0x00007fff9c3f4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL +0x00007fff9be40000 - 0x00007fff9be6a000 C:\WINDOWS\SYSTEM32\dbgcore.DLL +0x00007fff9df20000 - 0x00007fff9df48000 C:\Program Files\Java\jdk-11\bin\java.dll +0x00007fff9e8a0000 - 0x00007fff9e8aa000 C:\Program Files\Java\jdk-11\bin\jimage.dll +0x00007fff9c480000 - 0x00007fff9c497000 C:\Program Files\Java\jdk-11\bin\zip.dll + +dbghelp: loaded successfully - version: 4.0.5 - missing functions: none +symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Program Files\Java\jdk-11\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2;C:\Program Files\Java\jdk-11\bin\server + +VM Arguments: +java_command: C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396\surefirebooter-20230919195253159_3.jar C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396 2023-09-19T19-52-52_517-jvmRun1 surefire-20230919195253159_1tmp surefire_0-20230919195253159_2tmp +java_class_path (initial): C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396\surefirebooter-20230919195253159_3.jar +Launcher Type: SUN_STANDARD + +[Global flags] + intx CICompilerCount = 3 {product} {ergonomic} + uint ConcGCThreads = 1 {product} {ergonomic} + uint G1ConcRefinementThreads = 4 {product} {ergonomic} + size_t G1HeapRegionSize = 1048576 {product} {ergonomic} + uintx GCDrainStackTargetSize = 64 {product} {ergonomic} + size_t InitialHeapSize = 134217728 {product} {ergonomic} + size_t MarkStackSize = 4194304 {product} {ergonomic} + size_t MaxHeapSize = 2128609280 {product} {ergonomic} + size_t MinHeapDeltaBytes = 1048576 {product} {ergonomic} + uintx NonNMethodCodeHeapSize = 5830732 {pd product} {ergonomic} + uintx NonProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} + uintx ProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} + uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic} + bool SegmentedCodeCache = true {product} {ergonomic} + bool UseCompressedClassPointers = true {lp64_product} {ergonomic} + bool UseCompressedOops = true {lp64_product} {ergonomic} + bool UseG1GC = true {product} {ergonomic} + bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic} + +Logging: +Log output configuration: + #0: stdout all=warning uptime,level,tags + #1: stderr all=off uptime,level,tags + +Environment Variables: +PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Go\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files\Maven\apache-maven-3.9.4\bin;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\Justin\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Justin\AppData\Local\Programs\Python\Python38\;C:\Ruby23\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\AppData\Local\atom\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\go\bin;;C:\Users\Justin\AppData\Local\Programs\Microsoft VS Code\bin +USERNAME=Justin +OS=Windows_NT +PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel + + + +--------------- S Y S T E M --------------- + +OS: Windows 10 , 64 bit Build 18362 (10.0.18362.1110) +Hyper-V role detected + +CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1 microcode 0x26, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, fma + +Memory: 4k page, system-wide physical 8117M (1744M free) +TotalPageFile size 8517M (AvailPageFile size 37M) +current process WorkingSet (physical memory assigned to process): 9M, peak: 9M +current process commit charge ("private bytes"): 51M, peak: 179M + +vm_info: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256) for windows-amd64 JRE (11.0.20+9-LTS-256), built on Jun 14 2023 10:34:22 by "mach5one" with MS VC++ 17.1 (VS2022) + +END. diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 8d2f55fb768..38f922af045 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -756,78 +756,6 @@ paths: - path.post - contentType_json - const - /requestBody/postConstWithObjectRequestBody: - post: - operationId: postConstWithObjectRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithObject' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithObject' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithObjectResponseBodyForContentTypes: - post: - operationId: postConstWithObjectResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithObject' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithObject' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWithArrayRequestBody: - post: - operationId: postConstWithArrayRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithArray' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithArray' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithArrayResponseBodyForContentTypes: - post: - operationId: postConstWithArrayResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithArray' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithArray' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const /requestBody/postConstWithNullRequestBody: post: operationId: postConstWithNullRequestBody @@ -864,78 +792,6 @@ paths: - path.post - contentType_json - const - /requestBody/postConstWithFalseDoesNotMatch0RequestBody: - post: - operationId: postConstWithFalseDoesNotMatch0RequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes: - post: - operationId: postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWithTrueDoesNotMatch1RequestBody: - post: - operationId: postConstWithTrueDoesNotMatch1RequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes: - post: - operationId: postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const /requestBody/postConstWithAFalseDoesNotMatchA0RequestBody: post: operationId: postConstWithAFalseDoesNotMatchA0RequestBody @@ -4310,26 +4166,9 @@ components: ConstValidation: $schema: https://json-schema.org/draft/2020-12/schema const: 2 - ConstWithObject: - $schema: https://json-schema.org/draft/2020-12/schema - const: - foo: bar - baz: bax - ConstWithArray: - $schema: https://json-schema.org/draft/2020-12/schema - const: - - foo: bar ConstWithNull: $schema: https://json-schema.org/draft/2020-12/schema const: null - ConstWithFalseDoesNotMatch0: - $schema: https://json-schema.org/draft/2020-12/schema - const: - - false - ConstWithTrueDoesNotMatch1: - $schema: https://json-schema.org/draft/2020-12/schema - const: - - true ConstWithAFalseDoesNotMatchA0: $schema: https://json-schema.org/draft/2020-12/schema const: @@ -5006,48 +4845,6 @@ components: description: another type is invalid data: a valid: false - ConstWithObject: - SameObjectIsValid: - description: same object is valid - data: - foo: bar - baz: bax - valid: true - SameObjectWithDifferentPropertyOrderIsValid: - description: same object with different property order is valid - data: - baz: bax - foo: bar - valid: true - AnotherObjectIsInvalid: - description: another object is invalid - data: - foo: bar - valid: false - AnotherTypeIsInvalid: - description: another type is invalid - data: - - 1 - - 2 - valid: false - ConstWithArray: - SameArrayIsValid: - description: same array is valid - data: - - foo: bar - valid: true - AnotherArrayItemIsInvalid: - description: another array item is invalid - data: - - 2 - valid: false - ArrayWithAdditionalItemsIsInvalid: - description: array with additional items is invalid - data: - - 1 - - 2 - - 3 - valid: false ConstWithNull: NullIsValid: description: null is valid @@ -5057,54 +4854,6 @@ components: description: not null is invalid data: 0 valid: false - ConstWithFalseDoesNotMatch0: - FalseIsValid: - description: '[false] is valid' - data: - - false - valid: true - IntegerZeroIsInvalid: - description: integer zero is invalid - data: 0 - valid: false - FloatZeroIsInvalid: - description: float zero is invalid - data: 0.0 - valid: false - 0IsInvalid: - description: '[0] is invalid' - data: - - 0 - valid: false - 00IsInvalid: - description: '[0.0] is invalid' - data: - - 0.0 - valid: false - ConstWithTrueDoesNotMatch1: - TrueIsValid: - description: '[true] is valid' - data: - - true - valid: true - IntegerOneIsInvalid: - description: integer one is invalid - data: 1 - valid: false - FloatOneIsInvalid: - description: float one is invalid - data: 1.0 - valid: false - 1IsInvalid: - description: '[1] is invalid' - data: - - 1 - valid: false - 10IsInvalid: - description: '[1.0] is invalid' - data: - - 1.0 - valid: false ConstWithAFalseDoesNotMatchA0: AFalseIsValid: description: '{"a": false} is valid' diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 2f9cc89cf01..5d6c6c82240 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -103,6 +103,7 @@ class ExclusionReason: v303_requires_that_the_default_value_is_an_allowed_type = 'v3.0.3 requires that the default value is an allowed type per the schema' ref_not_resolved = 'ref not resolved, TODO resolve only remote refs' bug_max_items_missing = 'swagger-parser has a bug where maxItems is omitted: https://github.com/swagger-api/swagger-parser/issues/1974' + bug_with_non_string_const_values = 'swagger-parser const bug: https://github.com/swagger-api/swagger-parser/issues/1975' json_schema_test_draft = 'draft2020-12' path_to_json_schema_drafts = ('..', '..', 'JSON-Schema-Test-Suite', 'tests') @@ -119,6 +120,14 @@ class ExclusionReason: 'anyOf with boolean schemas, some true': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'anyOf with boolean schemas, all false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, + (json_schema_test_draft, 'const.json'): { + 'const with array': ExclusionReason.bug_with_non_string_const_values, + "const with false does not match 0": ExclusionReason.bug_with_non_string_const_values, + 'const with object': ExclusionReason.bug_with_non_string_const_values, + "const with true does not match 1": ExclusionReason.bug_with_non_string_const_values, + "const with [false] does not match [0]": ExclusionReason.bug_with_non_string_const_values, + "const with [true] does not match [1]": ExclusionReason.bug_with_non_string_const_values, + }, (json_schema_test_draft, 'default.json'): { 'invalid type for default': ExclusionReason.v303_requires_that_the_default_value_is_an_allowed_type, }, From c62c24d0b06ea072c3e94ba34b4a57a1c59de831 Mon Sep 17 00:00:00 2001 From: spacether Date: Wed, 20 Sep 2023 17:09:52 -0700 Subject: [PATCH 03/34] Excludes more test cases --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 80 +++++++++---------- .../3_1/unit_test_spec/spec_writer.py | 6 +- 2 files changed, 44 insertions(+), 42 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 38f922af045..035455533a1 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -792,16 +792,16 @@ paths: - path.post - contentType_json - const - /requestBody/postConstWithAFalseDoesNotMatchA0RequestBody: + /requestBody/postConstWithFalseDoesNotMatch0RequestBody: post: - operationId: postConstWithAFalseDoesNotMatchA0RequestBody + operationId: postConstWithFalseDoesNotMatch0RequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConstWithAFalseDoesNotMatchA0' + $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithAFalseDoesNotMatchA0' + $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' required: true responses: '200': @@ -811,33 +811,33 @@ paths: - path.post - contentType_json - const - /responseBody/postConstWithAFalseDoesNotMatchA0ResponseBodyForContentTypes: + /responseBody/postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes: post: - operationId: postConstWithAFalseDoesNotMatchA0ResponseBodyForContentTypes + operationId: postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/ConstWithAFalseDoesNotMatchA0' + $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithAFalseDoesNotMatchA0' + $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' tags: - response.content.contentType.schema - path.post - contentType_json - const - /requestBody/postConstWithATrueDoesNotMatchA1RequestBody: + /requestBody/postConstWithTrueDoesNotMatch1RequestBody: post: - operationId: postConstWithATrueDoesNotMatchA1RequestBody + operationId: postConstWithTrueDoesNotMatch1RequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConstWithATrueDoesNotMatchA1' + $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithATrueDoesNotMatchA1' + $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' required: true responses: '200': @@ -847,18 +847,18 @@ paths: - path.post - contentType_json - const - /responseBody/postConstWithATrueDoesNotMatchA1ResponseBodyForContentTypes: + /responseBody/postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes: post: - operationId: postConstWithATrueDoesNotMatchA1ResponseBodyForContentTypes + operationId: postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/ConstWithATrueDoesNotMatchA1' + $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithATrueDoesNotMatchA1' + $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' tags: - response.content.contentType.schema - path.post @@ -4169,14 +4169,14 @@ components: ConstWithNull: $schema: https://json-schema.org/draft/2020-12/schema const: null - ConstWithAFalseDoesNotMatchA0: + ConstWithFalseDoesNotMatch0: $schema: https://json-schema.org/draft/2020-12/schema const: - a: false - ConstWithATrueDoesNotMatchA1: + - false + ConstWithTrueDoesNotMatch1: $schema: https://json-schema.org/draft/2020-12/schema const: - a: true + - true ConstWith0DoesNotMatchOtherZeroLikeTypes: $schema: https://json-schema.org/draft/2020-12/schema const: 0 @@ -4854,37 +4854,37 @@ components: description: not null is invalid data: 0 valid: false - ConstWithAFalseDoesNotMatchA0: - AFalseIsValid: - description: '{"a": false} is valid' + ConstWithFalseDoesNotMatch0: + FalseIsValid: + description: '[false] is valid' data: - a: false + - false valid: true - A0IsInvalid: - description: '{"a": 0} is invalid' + 0IsInvalid: + description: '[0] is invalid' data: - a: 0 + - 0 valid: false - A00IsInvalid: - description: '{"a": 0.0} is invalid' + 00IsInvalid: + description: '[0.0] is invalid' data: - a: 0.0 + - 0.0 valid: false - ConstWithATrueDoesNotMatchA1: - ATrueIsValid: - description: '{"a": true} is valid' + ConstWithTrueDoesNotMatch1: + TrueIsValid: + description: '[true] is valid' data: - a: true + - true valid: true - A1IsInvalid: - description: '{"a": 1} is invalid' + 1IsInvalid: + description: '[1] is invalid' data: - a: 1 + - 1 valid: false - A10IsInvalid: - description: '{"a": 1.0} is invalid' + 10IsInvalid: + description: '[1.0] is invalid' data: - a: 1.0 + - 1.0 valid: false ConstWith0DoesNotMatchOtherZeroLikeTypes: FalseIsInvalid: diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 5d6c6c82240..2349393cdbf 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -125,8 +125,10 @@ class ExclusionReason: "const with false does not match 0": ExclusionReason.bug_with_non_string_const_values, 'const with object': ExclusionReason.bug_with_non_string_const_values, "const with true does not match 1": ExclusionReason.bug_with_non_string_const_values, - "const with [false] does not match [0]": ExclusionReason.bug_with_non_string_const_values, - "const with [true] does not match [1]": ExclusionReason.bug_with_non_string_const_values, + 'const with {"a": false} does not match {"a": 0}': ExclusionReason.bug_with_non_string_const_values, + 'const with {"a": true} does not match {"a": 1}': ExclusionReason.bug_with_non_string_const_values, + # "const with [false] does not match [0]": ExclusionReason.bug_with_non_string_const_values, + # "const with [true] does not match [1]": ExclusionReason.bug_with_non_string_const_values, }, (json_schema_test_draft, 'default.json'): { 'invalid type for default': ExclusionReason.v303_requires_that_the_default_value_is_an_allowed_type, From aad9cca0ec7a1cd9eb82b98c30a106c8dbb602e7 Mon Sep 17 00:00:00 2001 From: spacether Date: Wed, 20 Sep 2023 17:14:44 -0700 Subject: [PATCH 04/34] Excludes 2 more test cases --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 112 ------------------ .../3_1/unit_test_spec/spec_writer.py | 4 +- 2 files changed, 2 insertions(+), 114 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 035455533a1..0c571c11350 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -792,78 +792,6 @@ paths: - path.post - contentType_json - const - /requestBody/postConstWithFalseDoesNotMatch0RequestBody: - post: - operationId: postConstWithFalseDoesNotMatch0RequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes: - post: - operationId: postConstWithFalseDoesNotMatch0ResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithFalseDoesNotMatch0' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithFalseDoesNotMatch0' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWithTrueDoesNotMatch1RequestBody: - post: - operationId: postConstWithTrueDoesNotMatch1RequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes: - post: - operationId: postConstWithTrueDoesNotMatch1ResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithTrueDoesNotMatch1' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithTrueDoesNotMatch1' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const /requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody: post: operationId: postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody @@ -4169,14 +4097,6 @@ components: ConstWithNull: $schema: https://json-schema.org/draft/2020-12/schema const: null - ConstWithFalseDoesNotMatch0: - $schema: https://json-schema.org/draft/2020-12/schema - const: - - false - ConstWithTrueDoesNotMatch1: - $schema: https://json-schema.org/draft/2020-12/schema - const: - - true ConstWith0DoesNotMatchOtherZeroLikeTypes: $schema: https://json-schema.org/draft/2020-12/schema const: 0 @@ -4854,38 +4774,6 @@ components: description: not null is invalid data: 0 valid: false - ConstWithFalseDoesNotMatch0: - FalseIsValid: - description: '[false] is valid' - data: - - false - valid: true - 0IsInvalid: - description: '[0] is invalid' - data: - - 0 - valid: false - 00IsInvalid: - description: '[0.0] is invalid' - data: - - 0.0 - valid: false - ConstWithTrueDoesNotMatch1: - TrueIsValid: - description: '[true] is valid' - data: - - true - valid: true - 1IsInvalid: - description: '[1] is invalid' - data: - - 1 - valid: false - 10IsInvalid: - description: '[1.0] is invalid' - data: - - 1.0 - valid: false ConstWith0DoesNotMatchOtherZeroLikeTypes: FalseIsInvalid: description: false is invalid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 2349393cdbf..2c9a8a1aa3a 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -127,8 +127,8 @@ class ExclusionReason: "const with true does not match 1": ExclusionReason.bug_with_non_string_const_values, 'const with {"a": false} does not match {"a": 0}': ExclusionReason.bug_with_non_string_const_values, 'const with {"a": true} does not match {"a": 1}': ExclusionReason.bug_with_non_string_const_values, - # "const with [false] does not match [0]": ExclusionReason.bug_with_non_string_const_values, - # "const with [true] does not match [1]": ExclusionReason.bug_with_non_string_const_values, + "const with [false] does not match [0]": ExclusionReason.bug_with_non_string_const_values, + "const with [true] does not match [1]": ExclusionReason.bug_with_non_string_const_values, }, (json_schema_test_draft, 'default.json'): { 'invalid type for default': ExclusionReason.v303_requires_that_the_default_value_is_an_allowed_type, From 7bb035fb012c77bd2325a4e377a19814e181c6a6 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 12:35:22 -0700 Subject: [PATCH 05/34] Samples regen --- .../python/.openapi-generator/FILES | 226 ++++++++++++++++++ .../client/3_1_0_unit_test/python/README.md | 21 ++ .../python/docs/apis/tags/const_api.md | 27 +++ .../docs/apis/tags/content_type_json_api.md | 14 ++ .../apis/tags/operation_request_body_api.md | 7 + .../python/docs/apis/tags/path_post_api.md | 14 ++ ...esponse_content_content_type_schema_api.md | 7 + ...equal_up_to64_bit_representation_limits.md | 12 + .../schema/const_nul_characters_in_strings.md | 12 + .../components/schema/const_validation.md | 12 + ...h0_does_not_match_other_zero_like_types.md | 12 + .../schema/const_with1_does_not_match_true.md | 12 + ..._with20_matches_integer_and_float_types.md | 12 + .../docs/components/schema/const_with_null.md | 12 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 42 ++++ ..._bit_representation_limits_request_body.py | 13 + ..._nul_characters_in_strings_request_body.py | 13 + ...body_post_const_validation_request_body.py | 13 + ...atch_other_zero_like_types_request_body.py | 13 + ..._with1_does_not_match_true_request_body.py | 13 + ...es_integer_and_float_types_request_body.py | 13 + ..._body_post_const_with_null_request_body.py | 13 + ..._limits_response_body_for_content_types.py | 13 + ...strings_response_body_for_content_types.py | 13 + ...idation_response_body_for_content_types.py | 13 + ...e_types_response_body_for_content_types.py | 13 + ...ch_true_response_body_for_content_types.py | 13 + ...t_types_response_body_for_content_types.py | 13 + ...th_null_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../src/unit_test_api/apis/tags/const_api.py | 44 ++++ .../apis/tags/content_type_json_api.py | 28 +++ .../apis/tags/operation_request_body_api.py | 14 ++ .../unit_test_api/apis/tags/path_post_api.py | 28 +++ ...esponse_content_content_type_schema_api.py | 14 ++ ...equal_up_to64_bit_representation_limits.py | 38 +++ .../schema/const_nul_characters_in_strings.py | 38 +++ .../components/schema/const_validation.py | 38 +++ ...h0_does_not_match_other_zero_like_types.py | 38 +++ .../schema/const_with1_does_not_match_true.py | 38 +++ ..._with20_matches_integer_and_float_types.py | 38 +++ .../components/schema/const_with_null.py | 13 + .../components/schemas/__init__.py | 7 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + ...equal_up_to64_bit_representation_limits.py | 55 +++++ .../test_const_nul_characters_in_strings.py | 40 ++++ .../schema/test_const_validation.py | 48 ++++ ...h0_does_not_match_other_zero_like_types.py | 73 ++++++ .../test_const_with1_does_not_match_true.py | 47 ++++ ..._with20_matches_integer_and_float_types.py | 63 +++++ .../components/schema/test_const_with_null.py | 40 ++++ .../__init__.py | 0 .../test_post.py | 122 ++++++++++ .../__init__.py | 0 .../test_post.py | 79 ++++++ .../__init__.py | 0 .../test_post.py | 93 +++++++ .../__init__.py | 0 .../test_post.py | 152 ++++++++++++ .../__init__.py | 0 .../test_post.py | 108 +++++++++ .../__init__.py | 0 .../test_post.py | 136 +++++++++++ .../__init__.py | 0 .../test_post.py | 79 ++++++ .../test_post.py | 2 +- .../test_post.py | 2 +- .../__init__.py | 0 .../test_post.py | 143 +++++++++++ .../__init__.py | 0 .../test_post.py | 90 +++++++ .../__init__.py | 0 .../test_post.py | 114 +++++++++ .../__init__.py | 0 .../test_post.py | 193 +++++++++++++++ .../__init__.py | 0 .../test_post.py | 119 +++++++++ .../__init__.py | 0 .../test_post.py | 167 +++++++++++++ .../__init__.py | 0 .../test_post.py | 90 +++++++ .../test_post.py | 2 +- .../test_post.py | 2 +- 229 files changed, 7237 insertions(+), 4 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_nul_characters_in_strings.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_nul_characters_in_strings.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_nul_characters_in_strings.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 0227a736f20..055aaf9d810 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -6,6 +6,7 @@ docs/apis/tags/_not_api.md docs/apis/tags/additional_properties_api.md docs/apis/tags/all_of_api.md docs/apis/tags/any_of_api.md +docs/apis/tags/const_api.md docs/apis/tags/content_type_json_api.md docs/apis/tags/enum_api.md docs/apis/tags/format_api.md @@ -52,6 +53,13 @@ docs/components/schema/boolean_type_matches_booleans.md docs/components/schema/by_int.md docs/components/schema/by_number.md docs/components/schema/by_small_number.md +docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md +docs/components/schema/const_nul_characters_in_strings.md +docs/components/schema/const_validation.md +docs/components/schema/const_with0_does_not_match_other_zero_like_types.md +docs/components/schema/const_with1_does_not_match_true.md +docs/components/schema/const_with20_matches_integer_and_float_types.md +docs/components/schema/const_with_null.md docs/components/schema/date_format.md docs/components/schema/date_time_format.md docs/components/schema/duration_format.md @@ -175,6 +183,20 @@ docs/paths/request_body_post_by_number_request_body/post.md docs/paths/request_body_post_by_number_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_by_small_number_request_body/post.md docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md +docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md +docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_validation_request_body/post.md +docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md +docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md +docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md +docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_const_with_null_request_body/post.md +docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_format_request_body/post.md docs/paths/request_body_post_date_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md @@ -379,6 +401,20 @@ docs/paths/response_body_post_by_number_response_body_for_content_types/post.md docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md +docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md +docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md +docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md +docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md +docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md +docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_format_response_body_for_content_types/post.md docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -573,6 +609,13 @@ src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_req src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py +src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py @@ -675,6 +718,13 @@ src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_re src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py @@ -761,6 +811,7 @@ src/unit_test_api/apis/tags/_not_api.py src/unit_test_api/apis/tags/additional_properties_api.py src/unit_test_api/apis/tags/all_of_api.py src/unit_test_api/apis/tags/any_of_api.py +src/unit_test_api/apis/tags/const_api.py src/unit_test_api/apis/tags/content_type_json_api.py src/unit_test_api/apis/tags/enum_api.py src/unit_test_api/apis/tags/format_api.py @@ -809,6 +860,13 @@ src/unit_test_api/components/schema/boolean_type_matches_booleans.py src/unit_test_api/components/schema/by_int.py src/unit_test_api/components/schema/by_number.py src/unit_test_api/components/schema/by_small_number.py +src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py +src/unit_test_api/components/schema/const_nul_characters_in_strings.py +src/unit_test_api/components/schema/const_validation.py +src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py +src/unit_test_api/components/schema/const_with1_does_not_match_true.py +src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py +src/unit_test_api/components/schema/const_with_null.py src/unit_test_api/components/schema/date_format.py src/unit_test_api/components/schema/date_time_format.py src/unit_test_api/components/schema/duration_format.py @@ -1092,6 +1150,69 @@ src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/requ src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py @@ -1988,6 +2109,62 @@ src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_con src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py @@ -2651,6 +2828,27 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py +test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py +test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_const_validation.py +test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py +test/components/schema/test_const_with1_does_not_match_true.py +test/components/schema/test_const_with20_matches_integer_and_float_types.py +test/components/schema/test_const_with_null.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -2899,6 +3097,20 @@ test/test_paths/test_request_body_post_by_number_request_body/__init__.py test/test_paths/test_request_body_post_by_number_request_body/test_post.py test/test_paths/test_request_body_post_by_small_number_request_body/__init__.py test/test_paths/test_request_body_post_by_small_number_request_body/test_post.py +test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py +test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py +test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/__init__.py +test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py +test/test_paths/test_request_body_post_const_validation_request_body/__init__.py +test/test_paths/test_request_body_post_const_validation_request_body/test_post.py +test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py +test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py +test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py +test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py +test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py +test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py +test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py +test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py test/test_paths/test_request_body_post_date_format_request_body/__init__.py test/test_paths/test_request_body_post_date_format_request_body/test_post.py test/test_paths/test_request_body_post_date_time_format_request_body/__init__.py @@ -3103,6 +3315,20 @@ test/test_paths/test_response_body_post_by_number_response_body_for_content_type test/test_paths/test_response_body_post_by_number_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_by_small_number_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_by_small_number_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_date_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 2dfb6416376..8f2305770e8 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -192,6 +192,13 @@ HTTP request | Method | Description /requestBody/postByIntRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) | /requestBody/postByNumberRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) | /requestBody/postBySmallNumberRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) | +/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | +/requestBody/postConstNulCharactersInStringsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +/requestBody/postConstValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) | +/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | +/requestBody/postConstWith1DoesNotMatchTrueRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | +/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | +/requestBody/postConstWithNullRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) | /requestBody/postDateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) | /requestBody/postDateTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) | /requestBody/postDurationFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) | @@ -294,6 +301,13 @@ HTTP request | Method | Description /responseBody/postByIntResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) | /responseBody/postByNumberResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) | /responseBody/postBySmallNumberResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | +/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | +/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +/responseBody/postConstValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) | +/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | +/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | +/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | +/responseBody/postConstWithNullResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | /responseBody/postDateFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) | /responseBody/postDateTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | /responseBody/postDurationFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) | @@ -401,6 +415,13 @@ Class | Description [ByInt](docs/components/schema/by_int.md) | [ByNumber](docs/components/schema/by_number.md) | [BySmallNumber](docs/components/schema/by_small_number.md) | +[ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits](docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | +[ConstNulCharactersInStrings](docs/components/schema/const_nul_characters_in_strings.md) | +[ConstValidation](docs/components/schema/const_validation.md) | +[ConstWith0DoesNotMatchOtherZeroLikeTypes](docs/components/schema/const_with0_does_not_match_other_zero_like_types.md) | +[ConstWith1DoesNotMatchTrue](docs/components/schema/const_with1_does_not_match_true.md) | +[ConstWith20MatchesIntegerAndFloatTypes](docs/components/schema/const_with20_matches_integer_and_float_types.md) | +[ConstWithNull](docs/components/schema/const_with_null.md) | [DateFormat](docs/components/schema/date_format.md) | [DateTimeFormat](docs/components/schema/date_time_format.md) | [DurationFormat](docs/components/schema/duration_format.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md new file mode 100644 index 00000000000..27752866d42 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md @@ -0,0 +1,27 @@ + +unit_test_api.apis.tags.const_api +# ConstApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | +[**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +[**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | +[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | +[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | +[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | +[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | +[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | +[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | +[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 55b06ee9f46..a382542cfff 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -53,6 +53,20 @@ Method | Description [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | +[**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +[**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | +[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | +[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | +[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | +[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | +[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | +[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | +[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 23ff5cdf95d..520f70dc1f7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -31,6 +31,13 @@ Method | Description [**post_by_int_request_body**](../../paths/request_body_post_by_int_request_body/post.md) | [**post_by_number_request_body**](../../paths/request_body_post_by_number_request_body/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | +[**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | +[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | +[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | +[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 85d1e0b0617..a716efb919f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -53,6 +53,20 @@ Method | Description [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | +[**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +[**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | +[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | +[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | +[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | +[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | +[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | +[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | +[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index ec096d640de..6b3fc118ae6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -31,6 +31,13 @@ Method | Description [**post_by_int_response_body_for_content_types**](../../paths/response_body_post_by_int_response_body_for_content_types/post.md) | [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | +[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | +[**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | +[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | +[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | +[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | +[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md new file mode 100644 index 00000000000..260ed8aadc1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md @@ -0,0 +1,12 @@ +# ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits +unit_test_api.components.schema.const_float_and_integers_are_equal_up_to64_bit_representation_limits +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_nul_characters_in_strings.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_nul_characters_in_strings.md new file mode 100644 index 00000000000..e8001cd0268 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_nul_characters_in_strings.md @@ -0,0 +1,12 @@ +# ConstNulCharactersInStrings +unit_test_api.components.schema.const_nul_characters_in_strings +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md new file mode 100644 index 00000000000..24e83487057 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md @@ -0,0 +1,12 @@ +# ConstValidation +unit_test_api.components.schema.const_validation +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md new file mode 100644 index 00000000000..b3aebb508cb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md @@ -0,0 +1,12 @@ +# ConstWith0DoesNotMatchOtherZeroLikeTypes +unit_test_api.components.schema.const_with0_does_not_match_other_zero_like_types +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md new file mode 100644 index 00000000000..aaa776a151a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md @@ -0,0 +1,12 @@ +# ConstWith1DoesNotMatchTrue +unit_test_api.components.schema.const_with1_does_not_match_true +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md new file mode 100644 index 00000000000..6d849a22f8c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md @@ -0,0 +1,12 @@ +# ConstWith20MatchesIntegerAndFloatTypes +unit_test_api.components.schema.const_with20_matches_integer_and_float_types +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md new file mode 100644 index 00000000000..6e165dcef58 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md @@ -0,0 +1,12 @@ +# ConstWithNull +unit_test_api.components.schema.const_with_null +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md new file mode 100644 index 00000000000..500564f0a88 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody | This api is only for path=/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate(None) + try: + api_response = api_instance.post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..288fdefacd2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../../../../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md new file mode 100644 index 00000000000..8a22342f68c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_nul_characters_in_strings_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_nul_characters_in_strings_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_nul_characters_in_strings_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_nul_characters_in_strings_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstNulCharactersInStringsRequestBody | This api is only for path=/requestBody/postConstNulCharactersInStringsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstNulCharactersInStringsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_nul_characters_in_strings.ConstNulCharactersInStrings**](../../components/schema/const_nul_characters_in_strings.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_nul_characters_in_strings.ConstNulCharactersInStrings.validate(None) + try: + api_response = api_instance.post_const_nul_characters_in_strings_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_nul_characters_in_strings_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..da2b678e434 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_nul_characters_in_strings.ConstNulCharactersInStrings**](../../../../../../components/schema/const_nul_characters_in_strings.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md new file mode 100644 index 00000000000..9676c83d8cd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_validation_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_validation_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_validation_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_validation_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_validation_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstValidationRequestBody | This api is only for path=/requestBody/postConstValidationRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstValidationRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_validation.ConstValidation**](../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_validation.ConstValidation.validate(None) + try: + api_response = api_instance.post_const_validation_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_validation_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..2cb03a07420 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_validation.ConstValidation**](../../../../../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md new file mode 100644 index 00000000000..bfdaf6ed3e6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with0_does_not_match_other_zero_like_types_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_with0_does_not_match_other_zero_like_types_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with0_does_not_match_other_zero_like_types_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with0_does_not_match_other_zero_like_types_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody | This api is only for path=/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes.validate(None) + try: + api_response = api_instance.post_const_with0_does_not_match_other_zero_like_types_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_with0_does_not_match_other_zero_like_types_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..4b6a60633cd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../../../../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md new file mode 100644 index 00000000000..e9031179aa8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with1_does_not_match_true_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_with1_does_not_match_true_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with1_does_not_match_true_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with1_does_not_match_true_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstWith1DoesNotMatchTrueRequestBody | This api is only for path=/requestBody/postConstWith1DoesNotMatchTrueRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstWith1DoesNotMatchTrueRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue.validate(None) + try: + api_response = api_instance.post_const_with1_does_not_match_true_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_with1_does_not_match_true_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..3257bafd51b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../../../../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md new file mode 100644 index 00000000000..15a6fc4695c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with20_matches_integer_and_float_types_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_with20_matches_integer_and_float_types_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with20_matches_integer_and_float_types_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with20_matches_integer_and_float_types_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody | This api is only for path=/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes.validate(None) + try: + api_response = api_instance.post_const_with20_matches_integer_and_float_types_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_with20_matches_integer_and_float_types_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..9153e112fb6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../../../../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md new file mode 100644 index 00000000000..71d57eac4a3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_const_with_null_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with_null_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_const_with_null_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with_null_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with_null_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostConstWithNullRequestBody | This api is only for path=/requestBody/postConstWithNullRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postConstWithNullRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_const_with_null_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with_null.ConstWithNull**](../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = const_with_null.ConstWithNull.validate(None) + try: + api_response = api_instance.post_const_with_null_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_const_with_null_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..eb059827167 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_const_with_null_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with_null.ConstWithNull**](../../../../../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md new file mode 100644 index 00000000000..254437e4ec9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes | This api is only for path=/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..68a5aeccd08 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../../../../../../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md new file mode 100644 index 00000000000..9babd538097 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_nul_characters_in_strings_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_nul_characters_in_strings_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_nul_characters_in_strings_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_nul_characters_in_strings_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes | This api is only for path=/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_nul_characters_in_strings.ConstNulCharactersInStrings**](../../components/schema/const_nul_characters_in_strings.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_nul_characters_in_strings_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_nul_characters_in_strings_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..f514c5384c0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_nul_characters_in_strings.ConstNulCharactersInStrings**](../../../../../../../../components/schema/const_nul_characters_in_strings.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md new file mode 100644 index 00000000000..fe28b43a42c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_validation_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_validation_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_validation_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_validation_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstValidationResponseBodyForContentTypes | This api is only for path=/responseBody/postConstValidationResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstValidationResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_validation.ConstValidation**](../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_validation_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_validation_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..565e800024c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_validation.ConstValidation**](../../../../../../../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md new file mode 100644 index 00000000000..6022c0a7720 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..9b29e970658 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../../../../../../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md new file mode 100644 index 00000000000..5bb28a6a8df --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with1_does_not_match_true_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with1_does_not_match_true_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with1_does_not_match_true_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_with1_does_not_match_true_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_with1_does_not_match_true_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_with1_does_not_match_true_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..1f9786798f5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../../../../../../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md new file mode 100644 index 00000000000..754e6eef835 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_with20_matches_integer_and_float_types_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_with20_matches_integer_and_float_types_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..e62302960bd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../../../../../../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md new file mode 100644 index 00000000000..9f80fb1eacb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_const_with_null_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_const_with_null_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | +| post_const_with_null_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_const_with_null_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostConstWithNullResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWithNullResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postConstWithNullResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with_null.ConstWithNull**](../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_const_with_null_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_const_with_null_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ConstApi API]](../../apis/tags/const_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..5534351af9e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**const_with_null.ConstWithNull**](../../../../../../../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 7f5bb50da43..ae14d25ef00 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -23,6 +23,13 @@ from unit_test_api.apis.paths.request_body_post_by_int_request_body import RequestBodyPostByIntRequestBody from unit_test_api.apis.paths.request_body_post_by_number_request_body import RequestBodyPostByNumberRequestBody from unit_test_api.apis.paths.request_body_post_by_small_number_request_body import RequestBodyPostBySmallNumberRequestBody +from unit_test_api.apis.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body import RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody +from unit_test_api.apis.paths.request_body_post_const_nul_characters_in_strings_request_body import RequestBodyPostConstNulCharactersInStringsRequestBody +from unit_test_api.apis.paths.request_body_post_const_validation_request_body import RequestBodyPostConstValidationRequestBody +from unit_test_api.apis.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body import RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody +from unit_test_api.apis.paths.request_body_post_const_with1_does_not_match_true_request_body import RequestBodyPostConstWith1DoesNotMatchTrueRequestBody +from unit_test_api.apis.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body import RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody +from unit_test_api.apis.paths.request_body_post_const_with_null_request_body import RequestBodyPostConstWithNullRequestBody from unit_test_api.apis.paths.request_body_post_date_format_request_body import RequestBodyPostDateFormatRequestBody from unit_test_api.apis.paths.request_body_post_date_time_format_request_body import RequestBodyPostDateTimeFormatRequestBody from unit_test_api.apis.paths.request_body_post_duration_format_request_body import RequestBodyPostDurationFormatRequestBody @@ -125,6 +132,13 @@ from unit_test_api.apis.paths.response_body_post_by_int_response_body_for_content_types import ResponseBodyPostByIntResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_by_number_response_body_for_content_types import ResponseBodyPostByNumberResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_by_small_number_response_body_for_content_types import ResponseBodyPostBySmallNumberResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types import ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types import ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_validation_response_body_for_content_types import ResponseBodyPostConstValidationResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types import ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types import ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types import ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_const_with_null_response_body_for_content_types import ResponseBodyPostConstWithNullResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_format_response_body_for_content_types import ResponseBodyPostDateFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_time_format_response_body_for_content_types import ResponseBodyPostDateTimeFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_duration_format_response_body_for_content_types import ResponseBodyPostDurationFormatResponseBodyForContentTypes @@ -231,6 +245,13 @@ "/requestBody/postByIntRequestBody": typing.Type[RequestBodyPostByIntRequestBody], "/requestBody/postByNumberRequestBody": typing.Type[RequestBodyPostByNumberRequestBody], "/requestBody/postBySmallNumberRequestBody": typing.Type[RequestBodyPostBySmallNumberRequestBody], + "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody": typing.Type[RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody], + "/requestBody/postConstNulCharactersInStringsRequestBody": typing.Type[RequestBodyPostConstNulCharactersInStringsRequestBody], + "/requestBody/postConstValidationRequestBody": typing.Type[RequestBodyPostConstValidationRequestBody], + "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody": typing.Type[RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody], + "/requestBody/postConstWith1DoesNotMatchTrueRequestBody": typing.Type[RequestBodyPostConstWith1DoesNotMatchTrueRequestBody], + "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody": typing.Type[RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody], + "/requestBody/postConstWithNullRequestBody": typing.Type[RequestBodyPostConstWithNullRequestBody], "/requestBody/postDateFormatRequestBody": typing.Type[RequestBodyPostDateFormatRequestBody], "/requestBody/postDateTimeFormatRequestBody": typing.Type[RequestBodyPostDateTimeFormatRequestBody], "/requestBody/postDurationFormatRequestBody": typing.Type[RequestBodyPostDurationFormatRequestBody], @@ -333,6 +354,13 @@ "/responseBody/postByIntResponseBodyForContentTypes": typing.Type[ResponseBodyPostByIntResponseBodyForContentTypes], "/responseBody/postByNumberResponseBodyForContentTypes": typing.Type[ResponseBodyPostByNumberResponseBodyForContentTypes], "/responseBody/postBySmallNumberResponseBodyForContentTypes": typing.Type[ResponseBodyPostBySmallNumberResponseBodyForContentTypes], + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes], + "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes], + "/responseBody/postConstValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstValidationResponseBodyForContentTypes], + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes], + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes], + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes], + "/responseBody/postConstWithNullResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWithNullResponseBodyForContentTypes], "/responseBody/postDateFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateFormatResponseBodyForContentTypes], "/responseBody/postDateTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateTimeFormatResponseBodyForContentTypes], "/responseBody/postDurationFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDurationFormatResponseBodyForContentTypes], @@ -440,6 +468,13 @@ "/requestBody/postByIntRequestBody": RequestBodyPostByIntRequestBody, "/requestBody/postByNumberRequestBody": RequestBodyPostByNumberRequestBody, "/requestBody/postBySmallNumberRequestBody": RequestBodyPostBySmallNumberRequestBody, + "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody": RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, + "/requestBody/postConstNulCharactersInStringsRequestBody": RequestBodyPostConstNulCharactersInStringsRequestBody, + "/requestBody/postConstValidationRequestBody": RequestBodyPostConstValidationRequestBody, + "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody": RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, + "/requestBody/postConstWith1DoesNotMatchTrueRequestBody": RequestBodyPostConstWith1DoesNotMatchTrueRequestBody, + "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody": RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody, + "/requestBody/postConstWithNullRequestBody": RequestBodyPostConstWithNullRequestBody, "/requestBody/postDateFormatRequestBody": RequestBodyPostDateFormatRequestBody, "/requestBody/postDateTimeFormatRequestBody": RequestBodyPostDateTimeFormatRequestBody, "/requestBody/postDurationFormatRequestBody": RequestBodyPostDurationFormatRequestBody, @@ -542,6 +577,13 @@ "/responseBody/postByIntResponseBodyForContentTypes": ResponseBodyPostByIntResponseBodyForContentTypes, "/responseBody/postByNumberResponseBodyForContentTypes": ResponseBodyPostByNumberResponseBodyForContentTypes, "/responseBody/postBySmallNumberResponseBodyForContentTypes": ResponseBodyPostBySmallNumberResponseBodyForContentTypes, + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes": ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, + "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes": ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes, + "/responseBody/postConstValidationResponseBodyForContentTypes": ResponseBodyPostConstValidationResponseBodyForContentTypes, + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes": ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes": ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes": ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, + "/responseBody/postConstWithNullResponseBodyForContentTypes": ResponseBodyPostConstWithNullResponseBodyForContentTypes, "/responseBody/postDateFormatResponseBodyForContentTypes": ResponseBodyPostDateFormatResponseBodyForContentTypes, "/responseBody/postDateTimeFormatResponseBodyForContentTypes": ResponseBodyPostDateTimeFormatResponseBodyForContentTypes, "/responseBody/postDurationFormatResponseBodyForContentTypes": ResponseBodyPostDurationFormatResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py new file mode 100644 index 00000000000..f388fb654f9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py new file mode 100644 index 00000000000..710dec9f41a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstNulCharactersInStringsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py new file mode 100644 index 00000000000..fc576b4c1b2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstValidationRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py new file mode 100644 index 00000000000..40aa28bd2b8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py new file mode 100644 index 00000000000..f0fa70bb2bb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstWith1DoesNotMatchTrueRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py new file mode 100644 index 00000000000..dc70f3be2c6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py new file mode 100644 index 00000000000..79a85d45b32 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import ApiForPost + + +class RequestBodyPostConstWithNullRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py new file mode 100644 index 00000000000..408fdca6554 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py new file mode 100644 index 00000000000..134e66a2f81 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py new file mode 100644 index 00000000000..8d58efc990b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstValidationResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py new file mode 100644 index 00000000000..9c7e02db281 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py new file mode 100644 index 00000000000..1b84b2f07a1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py new file mode 100644 index 00000000000..962fe170ba5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py new file mode 100644 index 00000000000..a566e065fdf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostConstWithNullResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 45d5a2546ee..4cc038bbd20 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -26,6 +26,7 @@ from unit_test_api.apis.tags.properties_api import PropertiesApi from unit_test_api.apis.tags.content_type_json_api import ContentTypeJsonApi from unit_test_api.apis.tags.max_properties_api import MaxPropertiesApi +from unit_test_api.apis.tags.const_api import ConstApi from unit_test_api.apis.tags.enum_api import EnumApi from unit_test_api.apis.tags.max_items_api import MaxItemsApi @@ -57,6 +58,7 @@ "properties": typing.Type[PropertiesApi], "contentType_json": typing.Type[ContentTypeJsonApi], "maxProperties": typing.Type[MaxPropertiesApi], + "const": typing.Type[ConstApi], "enum": typing.Type[EnumApi], "maxItems": typing.Type[MaxItemsApi], } @@ -89,6 +91,7 @@ "properties": PropertiesApi, "contentType_json": ContentTypeJsonApi, "maxProperties": MaxPropertiesApi, + "const": ConstApi, "enum": EnumApi, "maxItems": MaxItemsApi, } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py new file mode 100644 index 00000000000..179f4b12a8a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody +from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody +from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody +from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody +from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody +from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody +from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody +from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes + + +class ConstApi( + PostConstValidationResponseBodyForContentTypes, + PostConstWith1DoesNotMatchTrueRequestBody, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, + PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, + PostConstWith20MatchesIntegerAndFloatTypesRequestBody, + PostConstNulCharactersInStringsResponseBodyForContentTypes, + PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, + PostConstNulCharactersInStringsRequestBody, + PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, + PostConstWithNullRequestBody, + PostConstValidationRequestBody, + PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, + PostConstWithNullResponseBodyForContentTypes, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index 1698d1df837..737b722a71a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -26,10 +26,12 @@ from unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.operation import PostOneofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_type_array_or_object_request_body.post.operation import PostTypeArrayOrObjectRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody @@ -45,6 +47,7 @@ from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody +from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody @@ -52,10 +55,12 @@ from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.operation import PostOneofComplexTypesRequestBody +from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_default_validation_request_body.post.operation import PostRequiredDefaultValidationRequestBody from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -65,6 +70,7 @@ from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody +from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody @@ -72,6 +78,7 @@ from unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.operation import PostUniqueitemsValidationRequestBody from unit_test_api.paths.request_body_post_maximum_validation_request_body.post.operation import PostMaximumValidationRequestBody from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody +from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_pattern_validation_request_body.post.operation import PostPatternValidationRequestBody from unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.operation import PostMaxlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes @@ -120,6 +127,8 @@ from unit_test_api.paths.request_body_post_additionalproperties_with_schema_request_body.post.operation import PostAdditionalpropertiesWithSchemaRequestBody from unit_test_api.paths.response_body_post_by_small_number_response_body_for_content_types.post.operation import PostBySmallNumberResponseBodyForContentTypes from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody +from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody +from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes @@ -134,6 +143,7 @@ from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody +from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody @@ -144,6 +154,7 @@ from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody +from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.operation import PostAllofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody @@ -184,6 +195,7 @@ from unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.operation import PostForbiddenPropertyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_type_array_object_or_null_response_body_for_content_types.post.operation import PostTypeArrayObjectOrNullResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxitems_validation_response_body_for_content_types.post.operation import PostMaxitemsValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.response_body_post_integer_type_matches_integers_response_body_for_content_types.post.operation import PostIntegerTypeMatchesIntegersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.operation import PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes @@ -192,6 +204,7 @@ from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody @@ -200,6 +213,7 @@ from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.operation import PostEnumWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types.post.operation import PostItemsWithNullInstanceElementsResponseBodyForContentTypes @@ -233,10 +247,12 @@ class ContentTypeJsonApi( PostOneofResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, PostUriReferenceFormatResponseBodyForContentTypes, + PostConstNulCharactersInStringsRequestBody, PostIdnEmailFormatResponseBodyForContentTypes, PostTypeArrayOrObjectRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, @@ -252,6 +268,7 @@ class ContentTypeJsonApi( PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, @@ -259,10 +276,12 @@ class ContentTypeJsonApi( PostIriFormatRequestBody, PostMaximumValidationResponseBodyForContentTypes, PostOneofComplexTypesRequestBody, + PostConstValidationResponseBodyForContentTypes, PostRequiredDefaultValidationRequestBody, PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, + PostConstWith1DoesNotMatchTrueRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -272,6 +291,7 @@ class ContentTypeJsonApi( PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostMinlengthValidationRequestBody, + PostConstWithNullRequestBody, PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, @@ -279,6 +299,7 @@ class ContentTypeJsonApi( PostUniqueitemsValidationRequestBody, PostMaximumValidationRequestBody, PostSimpleEnumValidationRequestBody, + PostConstNulCharactersInStringsResponseBodyForContentTypes, PostPatternValidationRequestBody, PostMaxlengthValidationResponseBodyForContentTypes, PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, @@ -327,6 +348,8 @@ class ContentTypeJsonApi( PostAdditionalpropertiesWithSchemaRequestBody, PostBySmallNumberResponseBodyForContentTypes, PostEmailFormatRequestBody, + PostConstValidationRequestBody, + PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, PostEmailFormatResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, @@ -341,6 +364,7 @@ class ContentTypeJsonApi( PostTimeFormatRequestBody, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, + PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, PostOneofWithEmptySchemaRequestBody, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, PostAllofRequestBody, @@ -351,6 +375,7 @@ class ContentTypeJsonApi( PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostPropertiesWithEscapedCharactersRequestBody, + PostConstWithNullResponseBodyForContentTypes, PostAllofWithOneEmptySchemaRequestBody, PostObjectPropertiesValidationRequestBody, PostUriReferenceFormatRequestBody, @@ -391,6 +416,7 @@ class ContentTypeJsonApi( PostForbiddenPropertyResponseBodyForContentTypes, PostTypeArrayObjectOrNullResponseBodyForContentTypes, PostMaxitemsValidationResponseBodyForContentTypes, + PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostIntegerTypeMatchesIntegersResponseBodyForContentTypes, PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, @@ -399,6 +425,7 @@ class ContentTypeJsonApi( PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostRequiredValidationResponseBodyForContentTypes, + PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, PostUriTemplateFormatRequestBody, PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, @@ -407,6 +434,7 @@ class ContentTypeJsonApi( PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, + PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, PostEnumWithEscapedCharactersResponseBodyForContentTypes, PostNumberTypeMatchesNumbersResponseBodyForContentTypes, PostItemsWithNullInstanceElementsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index dc03dc246e7..0ba2b07b532 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -17,12 +17,15 @@ from unit_test_api.paths.request_body_post_anyof_with_one_empty_schema_request_body.post.operation import PostAnyofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody from unit_test_api.paths.request_body_post_null_type_matches_only_the_null_object_request_body.post.operation import PostNullTypeMatchesOnlyTheNullObjectRequestBody +from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody +from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody +from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_type_array_or_object_request_body.post.operation import PostTypeArrayOrObjectRequestBody from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody @@ -34,6 +37,7 @@ from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody from unit_test_api.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody +from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody @@ -55,6 +59,7 @@ from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody +from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody @@ -67,6 +72,7 @@ from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody +from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody @@ -87,6 +93,7 @@ from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody +from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody @@ -122,12 +129,15 @@ class OperationRequestBodyApi( PostAnyofWithOneEmptySchemaRequestBody, PostEmailFormatRequestBody, PostNullTypeMatchesOnlyTheNullObjectRequestBody, + PostConstValidationRequestBody, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, PostMinitemsValidationRequestBody, PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, + PostConstNulCharactersInStringsRequestBody, PostTypeArrayOrObjectRequestBody, PostIdnEmailFormatRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, @@ -139,6 +149,7 @@ class OperationRequestBodyApi( PostTimeFormatRequestBody, PostItemsDoesNotLookInApplicatorsValidCaseRequestBody, PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, + PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, PostIdnHostnameFormatRequestBody, PostOneofWithEmptySchemaRequestBody, PostUriFormatRequestBody, @@ -160,6 +171,7 @@ class OperationRequestBodyApi( PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostRequiredWithEscapedCharactersRequestBody, + PostConstWith1DoesNotMatchTrueRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostByNumberRequestBody, @@ -172,6 +184,7 @@ class OperationRequestBodyApi( PostRequiredWithEmptyArrayRequestBody, PostMinimumValidationRequestBody, PostMinlengthValidationRequestBody, + PostConstWithNullRequestBody, PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, @@ -192,6 +205,7 @@ class OperationRequestBodyApi( PostIpv6FormatRequestBody, PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, + PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostRequiredValidationRequestBody, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 2c7ef7fff90..1456613a484 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -26,10 +26,12 @@ from unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.operation import PostOneofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_type_array_or_object_request_body.post.operation import PostTypeArrayOrObjectRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody @@ -45,6 +47,7 @@ from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody +from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody @@ -52,10 +55,12 @@ from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.operation import PostOneofComplexTypesRequestBody +from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_default_validation_request_body.post.operation import PostRequiredDefaultValidationRequestBody from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -65,6 +70,7 @@ from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody +from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody @@ -72,6 +78,7 @@ from unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.operation import PostUniqueitemsValidationRequestBody from unit_test_api.paths.request_body_post_maximum_validation_request_body.post.operation import PostMaximumValidationRequestBody from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody +from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_pattern_validation_request_body.post.operation import PostPatternValidationRequestBody from unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.operation import PostMaxlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes @@ -120,6 +127,8 @@ from unit_test_api.paths.request_body_post_additionalproperties_with_schema_request_body.post.operation import PostAdditionalpropertiesWithSchemaRequestBody from unit_test_api.paths.response_body_post_by_small_number_response_body_for_content_types.post.operation import PostBySmallNumberResponseBodyForContentTypes from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody +from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody +from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes @@ -134,6 +143,7 @@ from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody +from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody @@ -144,6 +154,7 @@ from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody +from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.operation import PostAllofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody @@ -184,6 +195,7 @@ from unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.operation import PostForbiddenPropertyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_type_array_object_or_null_response_body_for_content_types.post.operation import PostTypeArrayObjectOrNullResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxitems_validation_response_body_for_content_types.post.operation import PostMaxitemsValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.response_body_post_integer_type_matches_integers_response_body_for_content_types.post.operation import PostIntegerTypeMatchesIntegersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.operation import PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes @@ -192,6 +204,7 @@ from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody @@ -200,6 +213,7 @@ from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.operation import PostEnumWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types.post.operation import PostItemsWithNullInstanceElementsResponseBodyForContentTypes @@ -233,10 +247,12 @@ class PathPostApi( PostOneofResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, PostUriReferenceFormatResponseBodyForContentTypes, + PostConstNulCharactersInStringsRequestBody, PostIdnEmailFormatResponseBodyForContentTypes, PostTypeArrayOrObjectRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, @@ -252,6 +268,7 @@ class PathPostApi( PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, @@ -259,10 +276,12 @@ class PathPostApi( PostIriFormatRequestBody, PostMaximumValidationResponseBodyForContentTypes, PostOneofComplexTypesRequestBody, + PostConstValidationResponseBodyForContentTypes, PostRequiredDefaultValidationRequestBody, PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, + PostConstWith1DoesNotMatchTrueRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -272,6 +291,7 @@ class PathPostApi( PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostMinlengthValidationRequestBody, + PostConstWithNullRequestBody, PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, @@ -279,6 +299,7 @@ class PathPostApi( PostUniqueitemsValidationRequestBody, PostMaximumValidationRequestBody, PostSimpleEnumValidationRequestBody, + PostConstNulCharactersInStringsResponseBodyForContentTypes, PostPatternValidationRequestBody, PostMaxlengthValidationResponseBodyForContentTypes, PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, @@ -327,6 +348,8 @@ class PathPostApi( PostAdditionalpropertiesWithSchemaRequestBody, PostBySmallNumberResponseBodyForContentTypes, PostEmailFormatRequestBody, + PostConstValidationRequestBody, + PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, PostEmailFormatResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, @@ -341,6 +364,7 @@ class PathPostApi( PostTimeFormatRequestBody, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, + PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, PostOneofWithEmptySchemaRequestBody, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, PostAllofRequestBody, @@ -351,6 +375,7 @@ class PathPostApi( PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostPropertiesWithEscapedCharactersRequestBody, + PostConstWithNullResponseBodyForContentTypes, PostAllofWithOneEmptySchemaRequestBody, PostObjectPropertiesValidationRequestBody, PostUriReferenceFormatRequestBody, @@ -391,6 +416,7 @@ class PathPostApi( PostForbiddenPropertyResponseBodyForContentTypes, PostTypeArrayObjectOrNullResponseBodyForContentTypes, PostMaxitemsValidationResponseBodyForContentTypes, + PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostIntegerTypeMatchesIntegersResponseBodyForContentTypes, PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, @@ -399,6 +425,7 @@ class PathPostApi( PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostRequiredValidationResponseBodyForContentTypes, + PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, PostUriTemplateFormatRequestBody, PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, @@ -407,6 +434,7 @@ class PathPostApi( PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, + PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, PostEnumWithEscapedCharactersResponseBodyForContentTypes, PostNumberTypeMatchesNumbersResponseBodyForContentTypes, PostItemsWithNullInstanceElementsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 480047c585f..1f687f7083c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -26,6 +26,7 @@ from unit_test_api.paths.response_body_post_simple_enum_validation_response_body_for_content_types.post.operation import PostSimpleEnumValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.operation import PostOneofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes @@ -44,10 +45,13 @@ from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes @@ -63,6 +67,7 @@ from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.operation import PostAllofWithOneEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_array_type_matches_arrays_response_body_for_content_types.post.operation import PostArrayTypeMatchesArraysResponseBodyForContentTypes @@ -90,6 +95,7 @@ from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes @@ -99,6 +105,7 @@ from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.operation import PostEnumWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes @@ -131,6 +138,7 @@ class ResponseContentContentTypeSchemaApi( PostSimpleEnumValidationResponseBodyForContentTypes, PostOneofResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, PostEmailFormatResponseBodyForContentTypes, PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, @@ -149,10 +157,13 @@ class ResponseContentContentTypeSchemaApi( PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, + PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, + PostConstWithNullResponseBodyForContentTypes, PostMaximumValidationResponseBodyForContentTypes, + PostConstValidationResponseBodyForContentTypes, PostOneofWithBaseSchemaResponseBodyForContentTypes, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, @@ -168,6 +179,7 @@ class ResponseContentContentTypeSchemaApi( PostFloatDivisionInfResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, + PostConstNulCharactersInStringsResponseBodyForContentTypes, PostOneofWithRequiredResponseBodyForContentTypes, PostAllofWithOneEmptySchemaResponseBodyForContentTypes, PostArrayTypeMatchesArraysResponseBodyForContentTypes, @@ -195,6 +207,7 @@ class ResponseContentContentTypeSchemaApi( PostMinimumValidationResponseBodyForContentTypes, PostRequiredValidationResponseBodyForContentTypes, PostDateFormatResponseBodyForContentTypes, + PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, PostRelativeJsonPointerFormatResponseBodyForContentTypes, PostUuidFormatResponseBodyForContentTypes, @@ -204,6 +217,7 @@ class ResponseContentContentTypeSchemaApi( PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, + PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, PostEnumWithEscapedCharactersResponseBodyForContentTypes, PostNumberTypeMatchesNumbersResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py new file mode 100644 index 00000000000..1102ee92f7a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +class ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsConst: + + @schemas.classproperty + def POSITIVE_9007199254740992(cls) -> typing.Literal["9007199254740992"]: + return ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate("9007199254740992") + + +@dataclasses.dataclass(frozen=True) +class ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( + default_factory=lambda: { + "9007199254740992": "POSITIVE_9007199254740992", + } + ) + const = ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsConst + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_nul_characters_in_strings.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_nul_characters_in_strings.py new file mode 100644 index 00000000000..c0150715f6b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_nul_characters_in_strings.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +class ConstNulCharactersInStringsConst: + + @schemas.classproperty + def HELLO_NULL_THERE(cls) -> typing.Literal["hello\x00there"]: + return ConstNulCharactersInStrings.validate("hello\x00there") + + +@dataclasses.dataclass(frozen=True) +class ConstNulCharactersInStrings( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( + default_factory=lambda: { + "hello\x00there": "HELLO_NULL_THERE", + } + ) + const = ConstNulCharactersInStringsConst + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py new file mode 100644 index 00000000000..9cec31dc4d3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +class ConstValidationConst: + + @schemas.classproperty + def POSITIVE_2(cls) -> typing.Literal["2"]: + return ConstValidation.validate("2") + + +@dataclasses.dataclass(frozen=True) +class ConstValidation( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( + default_factory=lambda: { + "2": "POSITIVE_2", + } + ) + const = ConstValidationConst + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py new file mode 100644 index 00000000000..55843897f44 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +class ConstWith0DoesNotMatchOtherZeroLikeTypesConst: + + @schemas.classproperty + def POSITIVE_0(cls) -> typing.Literal["0"]: + return ConstWith0DoesNotMatchOtherZeroLikeTypes.validate("0") + + +@dataclasses.dataclass(frozen=True) +class ConstWith0DoesNotMatchOtherZeroLikeTypes( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( + default_factory=lambda: { + "0": "POSITIVE_0", + } + ) + const = ConstWith0DoesNotMatchOtherZeroLikeTypesConst + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py new file mode 100644 index 00000000000..65e6aca1823 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +class ConstWith1DoesNotMatchTrueConst: + + @schemas.classproperty + def POSITIVE_1(cls) -> typing.Literal["1"]: + return ConstWith1DoesNotMatchTrue.validate("1") + + +@dataclasses.dataclass(frozen=True) +class ConstWith1DoesNotMatchTrue( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( + default_factory=lambda: { + "1": "POSITIVE_1", + } + ) + const = ConstWith1DoesNotMatchTrueConst + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py new file mode 100644 index 00000000000..95638ad7b9d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +class ConstWith20MatchesIntegerAndFloatTypesConst: + + @schemas.classproperty + def NEGATIVE_2_PT_0(cls) -> typing.Literal["-2.0"]: + return ConstWith20MatchesIntegerAndFloatTypes.validate("-2.0") + + +@dataclasses.dataclass(frozen=True) +class ConstWith20MatchesIntegerAndFloatTypes( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( + default_factory=lambda: { + "-2.0": "NEGATIVE_2_PT_0", + } + ) + const = ConstWith20MatchesIntegerAndFloatTypesConst + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py new file mode 100644 index 00000000000..d9914add075 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +ConstWithNull: typing_extensions.TypeAlias = schemas.AnyTypeSchema diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index bdefb254eab..3569c051577 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -33,6 +33,13 @@ from unit_test_api.components.schema.by_int import ByInt from unit_test_api.components.schema.by_number import ByNumber from unit_test_api.components.schema.by_small_number import BySmallNumber +from unit_test_api.components.schema.const_float_and_integers_are_equal_up_to64_bit_representation_limits import ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits +from unit_test_api.components.schema.const_nul_characters_in_strings import ConstNulCharactersInStrings +from unit_test_api.components.schema.const_validation import ConstValidation +from unit_test_api.components.schema.const_with0_does_not_match_other_zero_like_types import ConstWith0DoesNotMatchOtherZeroLikeTypes +from unit_test_api.components.schema.const_with1_does_not_match_true import ConstWith1DoesNotMatchTrue +from unit_test_api.components.schema.const_with20_matches_integer_and_float_types import ConstWith20MatchesIntegerAndFloatTypes +from unit_test_api.components.schema.const_with_null import ConstWithNull from unit_test_api.components.schema.date_format import DateFormat from unit_test_api.components.schema.date_time_format import DateTimeFormat from unit_test_api.components.schema.duration_format import DurationFormat diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py new file mode 100644 index 00000000000..b33c9f8e06b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body import RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody + +path = "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py new file mode 100644 index 00000000000..f9f10e8405c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_float_and_integers_are_equal_up_to64_bit_representation_limits + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..bc38ca4fe5a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_float_and_integers_are_equal_up_to64_bit_representation_limits +Schema2: typing_extensions.TypeAlias = const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/__init__.py new file mode 100644 index 00000000000..618b133b401 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_nul_characters_in_strings_request_body import RequestBodyPostConstNulCharactersInStringsRequestBody + +path = "/requestBody/postConstNulCharactersInStringsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py new file mode 100644 index 00000000000..18369da04a2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_nul_characters_in_strings + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_nul_characters_in_strings_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_nul_characters_in_strings_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_nul_characters_in_strings_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstNulCharactersInStringsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_nul_characters_in_strings_request_body = BaseApi._post_const_nul_characters_in_strings_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_nul_characters_in_strings_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..8477b593e09 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_nul_characters_in_strings +Schema2: typing_extensions.TypeAlias = const_nul_characters_in_strings.ConstNulCharactersInStrings diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py new file mode 100644 index 00000000000..079da37166b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_validation_request_body import RequestBodyPostConstValidationRequestBody + +path = "/requestBody/postConstValidationRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py new file mode 100644 index 00000000000..ef28d52be2e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_validation + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstValidationRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_validation_request_body = BaseApi._post_const_validation_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_validation_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..b16be3bde14 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_validation +Schema2: typing_extensions.TypeAlias = const_validation.ConstValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py new file mode 100644 index 00000000000..404de09c6e3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body import RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody + +path = "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py new file mode 100644 index 00000000000..de375d64006 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with0_does_not_match_other_zero_like_types + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with0_does_not_match_other_zero_like_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with0_does_not_match_other_zero_like_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with0_does_not_match_other_zero_like_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with0_does_not_match_other_zero_like_types_request_body = BaseApi._post_const_with0_does_not_match_other_zero_like_types_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with0_does_not_match_other_zero_like_types_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..ca560fd1aad --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with0_does_not_match_other_zero_like_types +Schema2: typing_extensions.TypeAlias = const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py new file mode 100644 index 00000000000..c7777065f25 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_with1_does_not_match_true_request_body import RequestBodyPostConstWith1DoesNotMatchTrueRequestBody + +path = "/requestBody/postConstWith1DoesNotMatchTrueRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py new file mode 100644 index 00000000000..debfc4a7e30 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with1_does_not_match_true + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with1_does_not_match_true_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with1_does_not_match_true_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with1_does_not_match_true_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWith1DoesNotMatchTrueRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with1_does_not_match_true_request_body = BaseApi._post_const_with1_does_not_match_true_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with1_does_not_match_true_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..54a9d3b1d15 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with1_does_not_match_true +Schema2: typing_extensions.TypeAlias = const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py new file mode 100644 index 00000000000..a17437443c0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body import RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody + +path = "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py new file mode 100644 index 00000000000..e4749a1a719 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with20_matches_integer_and_float_types + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with20_matches_integer_and_float_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with20_matches_integer_and_float_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with20_matches_integer_and_float_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWith20MatchesIntegerAndFloatTypesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with20_matches_integer_and_float_types_request_body = BaseApi._post_const_with20_matches_integer_and_float_types_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with20_matches_integer_and_float_types_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..8c88ab5a34b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with20_matches_integer_and_float_types +Schema2: typing_extensions.TypeAlias = const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py new file mode 100644 index 00000000000..aaf3601c9bb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_const_with_null_request_body import RequestBodyPostConstWithNullRequestBody + +path = "/requestBody/postConstWithNullRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py new file mode 100644 index 00000000000..489f055c0a0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with_null + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with_null_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with_null_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with_null_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWithNullRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with_null_request_body = BaseApi._post_const_with_null_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with_null_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..353736b755a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with_null +Schema2: typing_extensions.TypeAlias = const_with_null.ConstWithNull diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..4ae828980ab --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types import ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes + +path = "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..df9246caa69 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..bc38ca4fe5a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_float_and_integers_are_equal_up_to64_bit_representation_limits +Schema2: typing_extensions.TypeAlias = const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..d703069f1e6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types import ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes + +path = "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..82b09a8caeb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_nul_characters_in_strings_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_nul_characters_in_strings_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_nul_characters_in_strings_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstNulCharactersInStringsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_nul_characters_in_strings_response_body_for_content_types = BaseApi._post_const_nul_characters_in_strings_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_nul_characters_in_strings_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..8477b593e09 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_nul_characters_in_strings +Schema2: typing_extensions.TypeAlias = const_nul_characters_in_strings.ConstNulCharactersInStrings diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..ffd67e9bb1a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_validation_response_body_for_content_types import ResponseBodyPostConstValidationResponseBodyForContentTypes + +path = "/responseBody/postConstValidationResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..4c012634fd2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_validation_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_validation_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_validation_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstValidationResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_validation_response_body_for_content_types = BaseApi._post_const_validation_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_validation_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..b16be3bde14 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_validation +Schema2: typing_extensions.TypeAlias = const_validation.ConstValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..bc3f7c73809 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types import ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes + +path = "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..47e5335fb4a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types = BaseApi._post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..ca560fd1aad --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with0_does_not_match_other_zero_like_types +Schema2: typing_extensions.TypeAlias = const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..130437c0768 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types import ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes + +path = "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..537a54f827a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with1_does_not_match_true_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with1_does_not_match_true_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with1_does_not_match_true_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with1_does_not_match_true_response_body_for_content_types = BaseApi._post_const_with1_does_not_match_true_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with1_does_not_match_true_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..54a9d3b1d15 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with1_does_not_match_true +Schema2: typing_extensions.TypeAlias = const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..c59f704c84a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types import ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes + +path = "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..45b61e1baba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with20_matches_integer_and_float_types_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with20_matches_integer_and_float_types_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with20_matches_integer_and_float_types_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with20_matches_integer_and_float_types_response_body_for_content_types = BaseApi._post_const_with20_matches_integer_and_float_types_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with20_matches_integer_and_float_types_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..8c88ab5a34b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with20_matches_integer_and_float_types +Schema2: typing_extensions.TypeAlias = const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e687881a068 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_const_with_null_response_body_for_content_types import ResponseBodyPostConstWithNullResponseBodyForContentTypes + +path = "/responseBody/postConstWithNullResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..175472c6251 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_const_with_null_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_const_with_null_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_const_with_null_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostConstWithNullResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_const_with_null_response_body_for_content_types = BaseApi._post_const_with_null_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_const_with_null_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..353736b755a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import const_with_null +Schema2: typing_extensions.TypeAlias = const_with_null.ConstWithNull diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py new file mode 100644 index 00000000000..2d797855ba1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_float_and_integers_are_equal_up_to64_bit_representation_limits import ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits +from unit_test_api.configurations import schema_configuration + + +class TestConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits(unittest.TestCase): + """ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_integer_is_valid_passes(self): + # integer is valid + ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( + 9007199254740992, + configuration=self.configuration + ) + + def test_integer_minus_one_is_invalid_fails(self): + # integer minus one is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( + 9007199254740991, + configuration=self.configuration + ) + + def test_float_is_valid_passes(self): + # float is valid + ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( + 9.007199254740992E15, + configuration=self.configuration + ) + + def test_float_minus_one_is_invalid_fails(self): + # float minus one is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( + 9.007199254740991E15, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_nul_characters_in_strings.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_nul_characters_in_strings.py new file mode 100644 index 00000000000..d9c14b5ab10 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_nul_characters_in_strings.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_nul_characters_in_strings import ConstNulCharactersInStrings +from unit_test_api.configurations import schema_configuration + + +class TestConstNulCharactersInStrings(unittest.TestCase): + """ConstNulCharactersInStrings unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_match_string_with_nul_passes(self): + # match string with nul + ConstNulCharactersInStrings.validate( + "hello\x00there", + configuration=self.configuration + ) + + def test_do_not_match_string_lacking_nul_fails(self): + # do not match string lacking nul + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstNulCharactersInStrings.validate( + "hellothere", + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py new file mode 100644 index 00000000000..34f0110bb61 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_validation import ConstValidation +from unit_test_api.configurations import schema_configuration + + +class TestConstValidation(unittest.TestCase): + """ConstValidation unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_another_value_is_invalid_fails(self): + # another value is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstValidation.validate( + 5, + configuration=self.configuration + ) + + def test_another_type_is_invalid_fails(self): + # another type is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstValidation.validate( + "a", + configuration=self.configuration + ) + + def test_same_value_is_valid_passes(self): + # same value is valid + ConstValidation.validate( + 2, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py new file mode 100644 index 00000000000..d4c56424255 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_with0_does_not_match_other_zero_like_types import ConstWith0DoesNotMatchOtherZeroLikeTypes +from unit_test_api.configurations import schema_configuration + + +class TestConstWith0DoesNotMatchOtherZeroLikeTypes(unittest.TestCase): + """ConstWith0DoesNotMatchOtherZeroLikeTypes unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_empty_array_is_invalid_fails(self): + # empty array is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( + [ + ], + configuration=self.configuration + ) + + def test_integer_zero_is_valid_passes(self): + # integer zero is valid + ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( + 0, + configuration=self.configuration + ) + + def test_float_zero_is_valid_passes(self): + # float zero is valid + ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( + 0.0, + configuration=self.configuration + ) + + def test_empty_object_is_invalid_fails(self): + # empty object is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( + { + }, + configuration=self.configuration + ) + + def test_empty_string_is_invalid_fails(self): + # empty string is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( + "", + configuration=self.configuration + ) + + def test_false_is_invalid_fails(self): + # false is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( + False, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py new file mode 100644 index 00000000000..1f94e24c93f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_with1_does_not_match_true import ConstWith1DoesNotMatchTrue +from unit_test_api.configurations import schema_configuration + + +class TestConstWith1DoesNotMatchTrue(unittest.TestCase): + """ConstWith1DoesNotMatchTrue unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_true_is_invalid_fails(self): + # true is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith1DoesNotMatchTrue.validate( + True, + configuration=self.configuration + ) + + def test_integer_one_is_valid_passes(self): + # integer one is valid + ConstWith1DoesNotMatchTrue.validate( + 1, + configuration=self.configuration + ) + + def test_float_one_is_valid_passes(self): + # float one is valid + ConstWith1DoesNotMatchTrue.validate( + 1.0, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py new file mode 100644 index 00000000000..d5a52ea4d09 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_with20_matches_integer_and_float_types import ConstWith20MatchesIntegerAndFloatTypes +from unit_test_api.configurations import schema_configuration + + +class TestConstWith20MatchesIntegerAndFloatTypes(unittest.TestCase): + """ConstWith20MatchesIntegerAndFloatTypes unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_float200001_is_invalid_fails(self): + # float -2.00001 is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith20MatchesIntegerAndFloatTypes.validate( + -2.00001, + configuration=self.configuration + ) + + def test_integer2_is_invalid_fails(self): + # integer 2 is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith20MatchesIntegerAndFloatTypes.validate( + 2, + configuration=self.configuration + ) + + def test_float20_is_valid_passes(self): + # float -2.0 is valid + ConstWith20MatchesIntegerAndFloatTypes.validate( + -2.0, + configuration=self.configuration + ) + + def test_float20_is_invalid_fails(self): + # float 2.0 is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWith20MatchesIntegerAndFloatTypes.validate( + 2.0, + configuration=self.configuration + ) + + def test_integer2_is_valid_passes(self): + # integer -2 is valid + ConstWith20MatchesIntegerAndFloatTypes.validate( + -2, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py new file mode 100644 index 00000000000..8f0b81b43dd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.const_with_null import ConstWithNull +from unit_test_api.configurations import schema_configuration + + +class TestConstWithNull(unittest.TestCase): + """ConstWithNull unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_null_is_valid_passes(self): + # null is valid + ConstWithNull.validate( + None, + configuration=self.configuration + ) + + def test_not_null_is_invalid_fails(self): + # not null is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ConstWithNull.validate( + 0, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py new file mode 100644 index 00000000000..56ac55a2fce --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_integer_is_valid_passes(self): + content_type = 'application/json' + # integer is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9007199254740992 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_integer_minus_one_is_invalid_fails(self): + content_type = 'application/json' + # integer minus one is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9007199254740991 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_float_is_valid_passes(self): + content_type = 'application/json' + # float is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9.007199254740992E15 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_float_minus_one_is_invalid_fails(self): + content_type = 'application/json' + # float minus one is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9.007199254740991E15 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py new file mode 100644 index 00000000000..7bfcf39c404 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_match_string_with_nul_passes(self): + content_type = 'application/json' + # match string with nul + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "hello\x00there" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstNulCharactersInStringsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_do_not_match_string_lacking_nul_fails(self): + content_type = 'application/json' + # do not match string lacking nul + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "hellothere" + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py new file mode 100644 index 00000000000..83b2d816974 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_validation_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_another_value_is_invalid_fails(self): + content_type = 'application/json' + # another value is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 5 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_another_type_is_invalid_fails(self): + content_type = 'application/json' + # another type is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "a" + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_same_value_is_valid_passes(self): + content_type = 'application/json' + # same value is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 2 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py new file mode 100644 index 00000000000..695634063dd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_empty_array_is_invalid_fails(self): + content_type = 'application/json' + # empty array is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_integer_zero_is_valid_passes(self): + content_type = 'application/json' + # integer zero is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 0 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_float_zero_is_valid_passes(self): + content_type = 'application/json' + # float zero is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 0.0 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_empty_object_is_invalid_fails(self): + content_type = 'application/json' + # empty object is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_empty_string_is_invalid_fails(self): + content_type = 'application/json' + # empty string is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "" + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_false_is_invalid_fails(self): + content_type = 'application/json' + # false is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + False + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py new file mode 100644 index 00000000000..622f9014334 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_true_is_invalid_fails(self): + content_type = 'application/json' + # true is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + True + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_integer_one_is_valid_passes(self): + content_type = 'application/json' + # integer one is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith1DoesNotMatchTrueRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_float_one_is_valid_passes(self): + content_type = 'application/json' + # float one is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1.0 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith1DoesNotMatchTrueRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py new file mode 100644 index 00000000000..f7b69580096 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_float200001_is_invalid_fails(self): + content_type = 'application/json' + # float -2.00001 is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + -2.00001 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_integer2_is_invalid_fails(self): + content_type = 'application/json' + # integer 2 is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 2 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_float20_is_valid_passes(self): + content_type = 'application/json' + # float -2.0 is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + -2.0 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_float20_is_invalid_fails(self): + content_type = 'application/json' + # float 2.0 is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 2.0 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_integer2_is_valid_passes(self): + content_type = 'application/json' + # integer -2 is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + -2 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py new file mode 100644 index 00000000000..ad8c502bf2e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_const_with_null_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_null_is_valid_passes(self): + content_type = 'application/json' + # null is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + None + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postConstWithNullRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_not_null_is_invalid_fails(self): + content_type = 'application/json' + # not null is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 0 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py index a2095252e52..fdc63430555 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py @@ -37,7 +37,7 @@ def test_invalid_idn_hostname_string_is_only_an_annotation_by_default_passes(sel # invalid idn-hostname string is only an annotation by default with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "〮실례.테스트" + "〮실례.테스트" ) body = post.request_body.RequestBody.content["application/json"].schema.validate( payload, diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py index ae69c8dfa6b..a85e2dcdf3f 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py @@ -96,7 +96,7 @@ def test_invalid_iri_reference_string_is_only_an_annotation_by_default_passes(se # invalid iri-reference string is only an annotation by default with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "\\\\WINDOWS\\filëßåré" + "\\\\WINDOWS\\filëßåré" ) body = post.request_body.RequestBody.content["application/json"].schema.validate( payload, diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..0157890e00c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_integer_is_valid_passes(self): + # integer is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9007199254740992 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_integer_minus_one_is_invalid_fails(self): + # integer minus one is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9007199254740991 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_float_is_valid_passes(self): + # float is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9.007199254740992E15 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_float_minus_one_is_invalid_fails(self): + # float minus one is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 9.007199254740991E15 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..c7fb3d9df37 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_match_string_with_nul_passes(self): + # match string with nul + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "hello\x00there" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_do_not_match_string_lacking_nul_fails(self): + # do not match string lacking nul + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "hellothere" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..26483a0bcbc --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_another_value_is_invalid_fails(self): + # another value is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 5 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstValidationResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_another_type_is_invalid_fails(self): + # another type is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "a" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstValidationResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_same_value_is_valid_passes(self): + # same value is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 2 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..b07f6c72c29 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_empty_array_is_invalid_fails(self): + # empty array is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_integer_zero_is_valid_passes(self): + # integer zero is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 0 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_float_zero_is_valid_passes(self): + # float zero is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 0.0 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_empty_object_is_invalid_fails(self): + # empty object is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_empty_string_is_invalid_fails(self): + # empty string is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_false_is_invalid_fails(self): + # false is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + False + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..6800c6aa356 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_true_is_invalid_fails(self): + # true is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + True + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_integer_one_is_valid_passes(self): + # integer one is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_float_one_is_valid_passes(self): + # float one is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1.0 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..d8b940196d9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_float200001_is_invalid_fails(self): + # float -2.00001 is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + -2.00001 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_integer2_is_invalid_fails(self): + # integer 2 is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 2 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_float20_is_valid_passes(self): + # float -2.0 is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + -2.0 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_float20_is_invalid_fails(self): + # float 2.0 is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 2.0 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_integer2_is_valid_passes(self): + # integer -2 is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + -2 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..fd8d3506c2f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_null_is_valid_passes(self): + # null is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + None + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWithNullResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_not_null_is_invalid_fails(self): + # not null is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 0 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postConstWithNullResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py index 115bbc8060d..d19f5cd2ea7 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py @@ -39,7 +39,7 @@ def test_invalid_idn_hostname_string_is_only_an_annotation_by_default_passes(sel with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "〮실례.테스트" + "〮실례.테스트" ) mock_request.return_value = self.response( self.json_bytes(payload), diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py index 2be416be6e5..85b81372ee1 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py @@ -98,7 +98,7 @@ def test_invalid_iri_reference_string_is_only_an_annotation_by_default_passes(se with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "\\\\WINDOWS\\filëßåré" + "\\\\WINDOWS\\filëßåré" ) mock_request.return_value = self.response( self.json_bytes(payload), From 90caf1a474aa23a1d470e701da179ab6034442b9 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 12:39:10 -0700 Subject: [PATCH 06/34] removes error files --- hs_err_pid5576.log | 196 --------------------------------------------- hs_err_pid7980.log | 196 --------------------------------------------- 2 files changed, 392 deletions(-) delete mode 100644 hs_err_pid5576.log delete mode 100644 hs_err_pid7980.log diff --git a/hs_err_pid5576.log b/hs_err_pid5576.log deleted file mode 100644 index 3326889c63f..00000000000 --- a/hs_err_pid5576.log +++ /dev/null @@ -1,196 +0,0 @@ -# -# There is insufficient memory for the Java Runtime Environment to continue. -# Native memory allocation (mmap) failed to map 134217728 bytes for Failed to commit area from 0x0000000081200000 to 0x0000000089200000 of length 134217728. -# Possible reasons: -# The system is out of physical RAM or swap space -# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap -# Possible solutions: -# Reduce memory load on the system -# Increase physical memory or swap space -# Check if swap backing store is full -# Decrease Java heap size (-Xmx/-Xms) -# Decrease number of Java threads -# Decrease Java thread stack sizes (-Xss) -# Set larger code cache with -XX:ReservedCodeCacheSize= -# This output file may be truncated or incomplete. -# -# Out of Memory Error (./open/src/hotspot/os/windows/os_windows.cpp:3293), pid=5576, tid=4676 -# -# JRE version: (11.0.20+9) (build ) -# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) -# No core dump will be written. Minidumps are not enabled by default on client versions of Windows -# - ---------------- S U M M A R Y ------------ - -Command Line: C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671\surefirebooter-20230919195204946_3.jar C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671 2023-09-19T19-52-04_213-jvmRun1 surefire-20230919195204946_1tmp surefire_0-20230919195204946_2tmp - -Host: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz, 4 cores, 7G, Windows 10 , 64 bit Build 18362 (10.0.18362.1110) -Time: Tue Sep 19 19:52:05 2023 Pacific Daylight Time elapsed time: 0.028448 seconds (0d 0h 0m 0s) - ---------------- T H R E A D --------------- - -Current thread (0x000001fdaad60000): JavaThread "Unknown thread" [_thread_in_vm, id=4676, stack(0x000000b62da00000,0x000000b62db00000)] - -Stack: [0x000000b62da00000,0x000000b62db00000] -Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) -V [jvm.dll+0x6602ba] -V [jvm.dll+0x7a32af] -V [jvm.dll+0x7a4979] -V [jvm.dll+0x7a5013] -V [jvm.dll+0x258ef5] -V [jvm.dll+0x65d619] -V [jvm.dll+0x652375] -V [jvm.dll+0x31359d] -V [jvm.dll+0x313402] -V [jvm.dll+0x318036] -V [jvm.dll+0x360130] -V [jvm.dll+0x35fba2] -V [jvm.dll+0x2eec28] -V [jvm.dll+0x2efd35] -V [jvm.dll+0x77c327] -V [jvm.dll+0x77dc0f] -V [jvm.dll+0x36d3d9] -V [jvm.dll+0x760d0f] -V [jvm.dll+0x3df467] -V [jvm.dll+0x3e1511] -C [jli.dll+0x52e7] -C [ucrtbase.dll+0x210b2] -C [KERNEL32.DLL+0x17c24] -C [ntdll.dll+0x6d4d1] - - ---------------- P R O C E S S --------------- - -Threads class SMR info: -_java_thread_list=0x000001fda8bf5110, length=0, elements={ -} - -Java Threads: ( => current thread ) - -Other Threads: - 0x000001fdaad76800 GCTaskThread "GC Thread#0" [stack: 0x000000b62db00000,0x000000b62dc00000] [id=3364] - 0x000001fdaada8000 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000b62dc00000,0x000000b62dd00000] [id=4608] - 0x000001fdaada9000 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000b62dd00000,0x000000b62de00000] [id=12952] - -[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff719bf6e7] - -VM state:not at safepoint (not fully initialized) - -VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) -[0x000001fdaad5d770] Heap_lock - owner thread: 0x000001fdaad60000 - -Heap address: 0x0000000081200000, size: 2030 MB, Compressed Oops mode: Non-zero based: 0x0000000081200000 -Narrow klass base: 0x0000000000000000, Narrow klass shift: 0 - -GC Heap History (0 events): -No events - -Deoptimization events (0 events): -No events - -Classes redefined (0 events): -No events - -Internal exceptions (0 events): -No events - -Events (0 events): -No events - - -Dynamic libraries: -0x00007ff6b9ef0000 - 0x00007ff6b9f00000 C:\Program Files\Java\jdk-11\bin\java.exe -0x00007fffa5f20000 - 0x00007fffa6110000 C:\WINDOWS\SYSTEM32\ntdll.dll -0x00007fffa3fd0000 - 0x00007fffa4082000 C:\WINDOWS\System32\KERNEL32.DLL -0x00007fffa2fe0000 - 0x00007fffa3285000 C:\WINDOWS\System32\KERNELBASE.dll -0x00007fffa3a40000 - 0x00007fffa3b3a000 C:\WINDOWS\System32\ucrtbase.dll -0x00007fff9f890000 - 0x00007fff9f8ab000 C:\Program Files\Java\jdk-11\bin\VCRUNTIME140.dll -0x00007fff9f870000 - 0x00007fff9f889000 C:\Program Files\Java\jdk-11\bin\jli.dll -0x00007fffa4ae0000 - 0x00007fffa4b83000 C:\WINDOWS\System32\ADVAPI32.dll -0x00007fffa5d90000 - 0x00007fffa5e2e000 C:\WINDOWS\System32\msvcrt.dll -0x00007fffa5110000 - 0x00007fffa51a7000 C:\WINDOWS\System32\sechost.dll -0x00007fffa4960000 - 0x00007fffa4a80000 C:\WINDOWS\System32\RPCRT4.dll -0x00007fffa47c0000 - 0x00007fffa4954000 C:\WINDOWS\System32\USER32.dll -0x00007fffa3ef0000 - 0x00007fffa3f11000 C:\WINDOWS\System32\win32u.dll -0x00007fffa50d0000 - 0x00007fffa50f6000 C:\WINDOWS\System32\GDI32.dll -0x00007fffa3c80000 - 0x00007fffa3e16000 C:\WINDOWS\System32\gdi32full.dll -0x00007fff86a10000 - 0x00007fff86c94000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2\COMCTL32.dll -0x00007fffa3e20000 - 0x00007fffa3ebe000 C:\WINDOWS\System32\msvcp_win.dll -0x00007fffa4d60000 - 0x00007fffa5096000 C:\WINDOWS\System32\combase.dll -0x00007fffa3b40000 - 0x00007fffa3bc1000 C:\WINDOWS\System32\bcryptPrimitives.dll -0x00007fffa1900000 - 0x00007fffa190a000 C:\WINDOWS\SYSTEM32\VERSION.dll -0x00007fffa50a0000 - 0x00007fffa50ce000 C:\WINDOWS\System32\IMM32.DLL -0x00007fff9e8c0000 - 0x00007fff9e8cc000 C:\Program Files\Java\jdk-11\bin\vcruntime140_1.dll -0x00007fff96370000 - 0x00007fff963fe000 C:\Program Files\Java\jdk-11\bin\msvcp140.dll -0x00007fff716c0000 - 0x00007fff7222d000 C:\Program Files\Java\jdk-11\bin\server\jvm.dll -0x00007fffa5100000 - 0x00007fffa5108000 C:\WINDOWS\System32\PSAPI.DLL -0x00007fff869d0000 - 0x00007fff869d9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll -0x00007fffa5280000 - 0x00007fffa52ef000 C:\WINDOWS\System32\WS2_32.dll -0x00007fff9d560000 - 0x00007fff9d584000 C:\WINDOWS\SYSTEM32\WINMM.dll -0x00007fff9d530000 - 0x00007fff9d55d000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll -0x00007fffa3f20000 - 0x00007fffa3f6a000 C:\WINDOWS\System32\cfgmgr32.dll -0x00007fffa2dd0000 - 0x00007fffa2de1000 C:\WINDOWS\System32\kernel.appcore.dll -0x00007fff9e8b0000 - 0x00007fff9e8c0000 C:\Program Files\Java\jdk-11\bin\verify.dll -0x00007fff9c200000 - 0x00007fff9c3f4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL -0x00007fff9be40000 - 0x00007fff9be6a000 C:\WINDOWS\SYSTEM32\dbgcore.DLL -0x00007fff9df20000 - 0x00007fff9df48000 C:\Program Files\Java\jdk-11\bin\java.dll -0x00007fff9e8a0000 - 0x00007fff9e8aa000 C:\Program Files\Java\jdk-11\bin\jimage.dll -0x00007fff9c480000 - 0x00007fff9c497000 C:\Program Files\Java\jdk-11\bin\zip.dll - -dbghelp: loaded successfully - version: 4.0.5 - missing functions: none -symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Program Files\Java\jdk-11\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2;C:\Program Files\Java\jdk-11\bin\server - -VM Arguments: -java_command: C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671\surefirebooter-20230919195204946_3.jar C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671 2023-09-19T19-52-04_213-jvmRun1 surefire-20230919195204946_1tmp surefire_0-20230919195204946_2tmp -java_class_path (initial): C:\Users\Justin\AppData\Local\Temp\surefire16377215204165075671\surefirebooter-20230919195204946_3.jar -Launcher Type: SUN_STANDARD - -[Global flags] - intx CICompilerCount = 3 {product} {ergonomic} - uint ConcGCThreads = 1 {product} {ergonomic} - uint G1ConcRefinementThreads = 4 {product} {ergonomic} - size_t G1HeapRegionSize = 1048576 {product} {ergonomic} - uintx GCDrainStackTargetSize = 64 {product} {ergonomic} - size_t InitialHeapSize = 134217728 {product} {ergonomic} - size_t MarkStackSize = 4194304 {product} {ergonomic} - size_t MaxHeapSize = 2128609280 {product} {ergonomic} - size_t MinHeapDeltaBytes = 1048576 {product} {ergonomic} - uintx NonNMethodCodeHeapSize = 5830732 {pd product} {ergonomic} - uintx NonProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} - uintx ProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} - uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic} - bool SegmentedCodeCache = true {product} {ergonomic} - bool UseCompressedClassPointers = true {lp64_product} {ergonomic} - bool UseCompressedOops = true {lp64_product} {ergonomic} - bool UseG1GC = true {product} {ergonomic} - bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic} - -Logging: -Log output configuration: - #0: stdout all=warning uptime,level,tags - #1: stderr all=off uptime,level,tags - -Environment Variables: -PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Go\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files\Maven\apache-maven-3.9.4\bin;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\Justin\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Justin\AppData\Local\Programs\Python\Python38\;C:\Ruby23\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\AppData\Local\atom\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\go\bin;;C:\Users\Justin\AppData\Local\Programs\Microsoft VS Code\bin -USERNAME=Justin -OS=Windows_NT -PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel - - - ---------------- S Y S T E M --------------- - -OS: Windows 10 , 64 bit Build 18362 (10.0.18362.1110) -Hyper-V role detected - -CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1 microcode 0x26, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, fma - -Memory: 4k page, system-wide physical 8117M (1706M free) -TotalPageFile size 8517M (AvailPageFile size 37M) -current process WorkingSet (physical memory assigned to process): 9M, peak: 9M -current process commit charge ("private bytes"): 51M, peak: 179M - -vm_info: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256) for windows-amd64 JRE (11.0.20+9-LTS-256), built on Jun 14 2023 10:34:22 by "mach5one" with MS VC++ 17.1 (VS2022) - -END. diff --git a/hs_err_pid7980.log b/hs_err_pid7980.log deleted file mode 100644 index eda441f4fc7..00000000000 --- a/hs_err_pid7980.log +++ /dev/null @@ -1,196 +0,0 @@ -# -# There is insufficient memory for the Java Runtime Environment to continue. -# Native memory allocation (mmap) failed to map 134217728 bytes for Failed to commit area from 0x0000000081200000 to 0x0000000089200000 of length 134217728. -# Possible reasons: -# The system is out of physical RAM or swap space -# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap -# Possible solutions: -# Reduce memory load on the system -# Increase physical memory or swap space -# Check if swap backing store is full -# Decrease Java heap size (-Xmx/-Xms) -# Decrease number of Java threads -# Decrease Java thread stack sizes (-Xss) -# Set larger code cache with -XX:ReservedCodeCacheSize= -# This output file may be truncated or incomplete. -# -# Out of Memory Error (./open/src/hotspot/os/windows/os_windows.cpp:3293), pid=7980, tid=13508 -# -# JRE version: (11.0.20+9) (build ) -# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64) -# No core dump will be written. Minidumps are not enabled by default on client versions of Windows -# - ---------------- S U M M A R Y ------------ - -Command Line: C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396\surefirebooter-20230919195253159_3.jar C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396 2023-09-19T19-52-52_517-jvmRun1 surefire-20230919195253159_1tmp surefire_0-20230919195253159_2tmp - -Host: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz, 4 cores, 7G, Windows 10 , 64 bit Build 18362 (10.0.18362.1110) -Time: Tue Sep 19 19:52:53 2023 Pacific Daylight Time elapsed time: 0.027585 seconds (0d 0h 0m 0s) - ---------------- T H R E A D --------------- - -Current thread (0x000002c91530f000): JavaThread "Unknown thread" [_thread_in_vm, id=13508, stack(0x000000ee7dc00000,0x000000ee7dd00000)] - -Stack: [0x000000ee7dc00000,0x000000ee7dd00000] -Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) -V [jvm.dll+0x6602ba] -V [jvm.dll+0x7a32af] -V [jvm.dll+0x7a4979] -V [jvm.dll+0x7a5013] -V [jvm.dll+0x258ef5] -V [jvm.dll+0x65d619] -V [jvm.dll+0x652375] -V [jvm.dll+0x31359d] -V [jvm.dll+0x313402] -V [jvm.dll+0x318036] -V [jvm.dll+0x360130] -V [jvm.dll+0x35fba2] -V [jvm.dll+0x2eec28] -V [jvm.dll+0x2efd35] -V [jvm.dll+0x77c327] -V [jvm.dll+0x77dc0f] -V [jvm.dll+0x36d3d9] -V [jvm.dll+0x760d0f] -V [jvm.dll+0x3df467] -V [jvm.dll+0x3e1511] -C [jli.dll+0x52e7] -C [ucrtbase.dll+0x210b2] -C [KERNEL32.DLL+0x17c24] -C [ntdll.dll+0x6d4d1] - - ---------------- P R O C E S S --------------- - -Threads class SMR info: -_java_thread_list=0x000002c9130b5cd0, length=0, elements={ -} - -Java Threads: ( => current thread ) - -Other Threads: - 0x000002c915325800 GCTaskThread "GC Thread#0" [stack: 0x000000ee7dd00000,0x000000ee7de00000] [id=4184] - 0x000002c915356800 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000ee7de00000,0x000000ee7df00000] [id=4316] - 0x000002c915358000 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000ee7df00000,0x000000ee7e000000] [id=12340] - -[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff719bf6e7] - -VM state:not at safepoint (not fully initialized) - -VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) -[0x000002c91530ba80] Heap_lock - owner thread: 0x000002c91530f000 - -Heap address: 0x0000000081200000, size: 2030 MB, Compressed Oops mode: Non-zero based: 0x0000000081200000 -Narrow klass base: 0x0000000000000000, Narrow klass shift: 0 - -GC Heap History (0 events): -No events - -Deoptimization events (0 events): -No events - -Classes redefined (0 events): -No events - -Internal exceptions (0 events): -No events - -Events (0 events): -No events - - -Dynamic libraries: -0x00007ff6b9ef0000 - 0x00007ff6b9f00000 C:\Program Files\Java\jdk-11\bin\java.exe -0x00007fffa5f20000 - 0x00007fffa6110000 C:\WINDOWS\SYSTEM32\ntdll.dll -0x00007fffa3fd0000 - 0x00007fffa4082000 C:\WINDOWS\System32\KERNEL32.DLL -0x00007fffa2fe0000 - 0x00007fffa3285000 C:\WINDOWS\System32\KERNELBASE.dll -0x00007fffa3a40000 - 0x00007fffa3b3a000 C:\WINDOWS\System32\ucrtbase.dll -0x00007fff9f870000 - 0x00007fff9f889000 C:\Program Files\Java\jdk-11\bin\jli.dll -0x00007fffa4ae0000 - 0x00007fffa4b83000 C:\WINDOWS\System32\ADVAPI32.dll -0x00007fffa5d90000 - 0x00007fffa5e2e000 C:\WINDOWS\System32\msvcrt.dll -0x00007fffa5110000 - 0x00007fffa51a7000 C:\WINDOWS\System32\sechost.dll -0x00007fffa4960000 - 0x00007fffa4a80000 C:\WINDOWS\System32\RPCRT4.dll -0x00007fffa47c0000 - 0x00007fffa4954000 C:\WINDOWS\System32\USER32.dll -0x00007fffa3ef0000 - 0x00007fffa3f11000 C:\WINDOWS\System32\win32u.dll -0x00007fffa50d0000 - 0x00007fffa50f6000 C:\WINDOWS\System32\GDI32.dll -0x00007fffa3c80000 - 0x00007fffa3e16000 C:\WINDOWS\System32\gdi32full.dll -0x00007fffa3e20000 - 0x00007fffa3ebe000 C:\WINDOWS\System32\msvcp_win.dll -0x00007fff9f890000 - 0x00007fff9f8ab000 C:\Program Files\Java\jdk-11\bin\VCRUNTIME140.dll -0x00007fff86a10000 - 0x00007fff86c94000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2\COMCTL32.dll -0x00007fffa4d60000 - 0x00007fffa5096000 C:\WINDOWS\System32\combase.dll -0x00007fffa3b40000 - 0x00007fffa3bc1000 C:\WINDOWS\System32\bcryptPrimitives.dll -0x00007fffa1900000 - 0x00007fffa190a000 C:\WINDOWS\SYSTEM32\VERSION.dll -0x00007fffa50a0000 - 0x00007fffa50ce000 C:\WINDOWS\System32\IMM32.DLL -0x00007fff9e8c0000 - 0x00007fff9e8cc000 C:\Program Files\Java\jdk-11\bin\vcruntime140_1.dll -0x00007fff96370000 - 0x00007fff963fe000 C:\Program Files\Java\jdk-11\bin\msvcp140.dll -0x00007fff716c0000 - 0x00007fff7222d000 C:\Program Files\Java\jdk-11\bin\server\jvm.dll -0x00007fffa5100000 - 0x00007fffa5108000 C:\WINDOWS\System32\PSAPI.DLL -0x00007fff869d0000 - 0x00007fff869d9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll -0x00007fffa5280000 - 0x00007fffa52ef000 C:\WINDOWS\System32\WS2_32.dll -0x00007fff9d560000 - 0x00007fff9d584000 C:\WINDOWS\SYSTEM32\WINMM.dll -0x00007fff9d530000 - 0x00007fff9d55d000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll -0x00007fffa3f20000 - 0x00007fffa3f6a000 C:\WINDOWS\System32\cfgmgr32.dll -0x00007fffa2dd0000 - 0x00007fffa2de1000 C:\WINDOWS\System32\kernel.appcore.dll -0x00007fff9e8b0000 - 0x00007fff9e8c0000 C:\Program Files\Java\jdk-11\bin\verify.dll -0x00007fff9c200000 - 0x00007fff9c3f4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL -0x00007fff9be40000 - 0x00007fff9be6a000 C:\WINDOWS\SYSTEM32\dbgcore.DLL -0x00007fff9df20000 - 0x00007fff9df48000 C:\Program Files\Java\jdk-11\bin\java.dll -0x00007fff9e8a0000 - 0x00007fff9e8aa000 C:\Program Files\Java\jdk-11\bin\jimage.dll -0x00007fff9c480000 - 0x00007fff9c497000 C:\Program Files\Java\jdk-11\bin\zip.dll - -dbghelp: loaded successfully - version: 4.0.5 - missing functions: none -symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Program Files\Java\jdk-11\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.1256_none_9e7e379be45e40e2;C:\Program Files\Java\jdk-11\bin\server - -VM Arguments: -java_command: C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396\surefirebooter-20230919195253159_3.jar C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396 2023-09-19T19-52-52_517-jvmRun1 surefire-20230919195253159_1tmp surefire_0-20230919195253159_2tmp -java_class_path (initial): C:\Users\Justin\AppData\Local\Temp\surefire11741276394403452396\surefirebooter-20230919195253159_3.jar -Launcher Type: SUN_STANDARD - -[Global flags] - intx CICompilerCount = 3 {product} {ergonomic} - uint ConcGCThreads = 1 {product} {ergonomic} - uint G1ConcRefinementThreads = 4 {product} {ergonomic} - size_t G1HeapRegionSize = 1048576 {product} {ergonomic} - uintx GCDrainStackTargetSize = 64 {product} {ergonomic} - size_t InitialHeapSize = 134217728 {product} {ergonomic} - size_t MarkStackSize = 4194304 {product} {ergonomic} - size_t MaxHeapSize = 2128609280 {product} {ergonomic} - size_t MinHeapDeltaBytes = 1048576 {product} {ergonomic} - uintx NonNMethodCodeHeapSize = 5830732 {pd product} {ergonomic} - uintx NonProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} - uintx ProfiledCodeHeapSize = 122913754 {pd product} {ergonomic} - uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic} - bool SegmentedCodeCache = true {product} {ergonomic} - bool UseCompressedClassPointers = true {lp64_product} {ergonomic} - bool UseCompressedOops = true {lp64_product} {ergonomic} - bool UseG1GC = true {product} {ergonomic} - bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic} - -Logging: -Log output configuration: - #0: stdout all=warning uptime,level,tags - #1: stderr all=off uptime,level,tags - -Environment Variables: -PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Go\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files\Maven\apache-maven-3.9.4\bin;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\Justin\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Justin\AppData\Local\Programs\Python\Python38\;C:\Ruby23\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\AppData\Local\atom\bin;C:\Users\Justin\AppData\Local\Microsoft\WindowsApps;C:\Users\Justin\go\bin;;C:\Users\Justin\AppData\Local\Programs\Microsoft VS Code\bin -USERNAME=Justin -OS=Windows_NT -PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel - - - ---------------- S Y S T E M --------------- - -OS: Windows 10 , 64 bit Build 18362 (10.0.18362.1110) -Hyper-V role detected - -CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1 microcode 0x26, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, fma - -Memory: 4k page, system-wide physical 8117M (1744M free) -TotalPageFile size 8517M (AvailPageFile size 37M) -current process WorkingSet (physical memory assigned to process): 9M, peak: 9M -current process commit charge ("private bytes"): 51M, peak: 179M - -vm_info: Java HotSpot(TM) 64-Bit Server VM (11.0.20+9-LTS-256) for windows-amd64 JRE (11.0.20+9-LTS-256), built on Jun 14 2023 10:34:22 by "mach5one" with MS VC++ 17.1 (VS2022) - -END. From e00573f6f30c8ed953d12a304ad5a232ffaf354f Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 13:10:35 -0700 Subject: [PATCH 07/34] Removes failing test cases --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 337 +----------------- .../3_1/unit_test_spec/spec_writer.py | 6 + 2 files changed, 8 insertions(+), 335 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 0c571c11350..93852860cb8 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -720,222 +720,6 @@ paths: - path.post - contentType_json - anyOf - /requestBody/postConstValidationRequestBody: - post: - operationId: postConstValidationRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstValidation' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstValidation' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstValidationResponseBodyForContentTypes: - post: - operationId: postConstValidationResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstValidation' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstValidation' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWithNullRequestBody: - post: - operationId: postConstWithNullRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithNull' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithNull' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWithNullResponseBodyForContentTypes: - post: - operationId: postConstWithNullResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWithNull' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWithNull' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody: - post: - operationId: postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWith0DoesNotMatchOtherZeroLikeTypes' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWith0DoesNotMatchOtherZeroLikeTypes' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes: - post: - operationId: postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWith0DoesNotMatchOtherZeroLikeTypes' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWith0DoesNotMatchOtherZeroLikeTypes' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWith1DoesNotMatchTrueRequestBody: - post: - operationId: postConstWith1DoesNotMatchTrueRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWith1DoesNotMatchTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWith1DoesNotMatchTrue' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes: - post: - operationId: postConstWith1DoesNotMatchTrueResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWith1DoesNotMatchTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWith1DoesNotMatchTrue' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody: - post: - operationId: postConstWith20MatchesIntegerAndFloatTypesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWith20MatchesIntegerAndFloatTypes' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWith20MatchesIntegerAndFloatTypes' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes: - post: - operationId: postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstWith20MatchesIntegerAndFloatTypes' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstWith20MatchesIntegerAndFloatTypes' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const - /requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody: - post: - operationId: postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - const - /responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes: - post: - operationId: postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - const /requestBody/postConstNulCharactersInStringsRequestBody: post: operationId: postConstNulCharactersInStringsRequestBody @@ -4091,24 +3875,6 @@ components: anyOf: - anyOf: - type: 'null' - ConstValidation: - $schema: https://json-schema.org/draft/2020-12/schema - const: 2 - ConstWithNull: - $schema: https://json-schema.org/draft/2020-12/schema - const: null - ConstWith0DoesNotMatchOtherZeroLikeTypes: - $schema: https://json-schema.org/draft/2020-12/schema - const: 0 - ConstWith1DoesNotMatchTrue: - $schema: https://json-schema.org/draft/2020-12/schema - const: 1 - ConstWith20MatchesIntegerAndFloatTypes: - $schema: https://json-schema.org/draft/2020-12/schema - const: -2.0 - ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits: - $schema: https://json-schema.org/draft/2020-12/schema - const: 9007199254740992 ConstNulCharactersInStrings: $schema: https://json-schema.org/draft/2020-12/schema const: "hello\0there" @@ -4752,104 +4518,6 @@ components: description: anything non-null is invalid data: 123 valid: false - ConstValidation: - SameValueIsValid: - description: same value is valid - data: 2 - valid: true - AnotherValueIsInvalid: - description: another value is invalid - data: 5 - valid: false - AnotherTypeIsInvalid: - description: another type is invalid - data: a - valid: false - ConstWithNull: - NullIsValid: - description: null is valid - data: null - valid: true - NotNullIsInvalid: - description: not null is invalid - data: 0 - valid: false - ConstWith0DoesNotMatchOtherZeroLikeTypes: - FalseIsInvalid: - description: false is invalid - data: false - valid: false - IntegerZeroIsValid: - description: integer zero is valid - data: 0 - valid: true - FloatZeroIsValid: - description: float zero is valid - data: 0.0 - valid: true - EmptyObjectIsInvalid: - description: empty object is invalid - data: {} - valid: false - EmptyArrayIsInvalid: - description: empty array is invalid - data: [] - valid: false - EmptyStringIsInvalid: - description: empty string is invalid - data: '' - valid: false - ConstWith1DoesNotMatchTrue: - TrueIsInvalid: - description: true is invalid - data: true - valid: false - IntegerOneIsValid: - description: integer one is valid - data: 1 - valid: true - FloatOneIsValid: - description: float one is valid - data: 1.0 - valid: true - ConstWith20MatchesIntegerAndFloatTypes: - Integer2IsValid: - description: integer -2 is valid - data: -2 - valid: true - Integer2IsInvalid: - description: integer 2 is invalid - data: 2 - valid: false - Float20IsValid: - description: float -2.0 is valid - data: -2.0 - valid: true - Float20IsInvalid: - description: float 2.0 is invalid - data: 2.0 - valid: false - Float200001IsInvalid: - description: float -2.00001 is invalid - data: -2.00001 - valid: false - ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits: - IntegerIsValid: - description: integer is valid - data: 9007199254740992 - valid: true - IntegerMinusOneIsInvalid: - description: integer minus one is invalid - data: 9007199254740991 - valid: false - FloatIsValid: - description: float is valid - data: 9007199254740992.0 - valid: true - FloatMinusOneIsInvalid: - description: float minus one is invalid - data: 9007199254740991.0 - valid: false ConstNulCharactersInStrings: MatchStringWithNul: description: match string with nul @@ -5149,8 +4817,7 @@ components: valid: true InvalidIdnHostnameStringIsOnlyAnAnnotationByDefault: description: invalid idn-hostname string is only an annotation by default - data: "\xE3\u20AC\xAE\xEC\u2039\xA4\xEB\xA1\u20AC.\xED\u2026\u0152\xEC\u0160\ - \xA4\xED\u0160\xB8" + data: "\u302E\uC2E4\uB840.\uD14C\uC2A4\uD2B8" valid: true HostnameFormat: AllStringFormatsIgnoreIntegers: @@ -5383,7 +5050,7 @@ components: valid: true InvalidIriReferenceStringIsOnlyAnAnnotationByDefault: description: invalid iri-reference string is only an annotation by default - data: "\\\\WINDOWS\\fil\xC3\xAB\xC3\u0178\xC3\xA5r\xC3\xA9" + data: "\\\\WINDOWS\\fil\xEB\xDF\xE5r\xE9" valid: true UriFormat: AllStringFormatsIgnoreIntegers: diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 2c9a8a1aa3a..b7d18927809 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -129,6 +129,12 @@ class ExclusionReason: 'const with {"a": true} does not match {"a": 1}': ExclusionReason.bug_with_non_string_const_values, "const with [false] does not match [0]": ExclusionReason.bug_with_non_string_const_values, "const with [true] does not match [1]": ExclusionReason.bug_with_non_string_const_values, + "float and integers are equal up to 64-bit representation limits": ExclusionReason.bug_with_non_string_const_values, + "const validation": ExclusionReason.bug_with_non_string_const_values, + "const with 0 does not match other zero-like types": ExclusionReason.bug_with_non_string_const_values, + "const with 1 does not match true": ExclusionReason.bug_with_non_string_const_values, + "const with -2.0 matches integer and float types": ExclusionReason.bug_with_non_string_const_values, + "const with null": ExclusionReason.bug_with_non_string_const_values, }, (json_schema_test_draft, 'default.json'): { 'invalid type for default': ExclusionReason.v303_requires_that_the_default_value_is_an_allowed_type, From d7c6790d878c5d45517e28cabfafa885eaa85957 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 13:31:32 -0700 Subject: [PATCH 08/34] Samples regen --- .../python/.openapi-generator/FILES | 294 ++++++------------ .../client/3_1_0_unit_test/python/README.md | 18 -- .../python/docs/apis/tags/const_api.md | 12 - .../docs/apis/tags/content_type_json_api.md | 12 - .../apis/tags/operation_request_body_api.md | 6 - .../python/docs/apis/tags/path_post_api.md | 12 - ...esponse_content_content_type_schema_api.md | 6 - ...equal_up_to64_bit_representation_limits.md | 12 - .../components/schema/const_validation.md | 12 - ...h0_does_not_match_other_zero_like_types.md | 12 - .../schema/const_with1_does_not_match_true.md | 12 - ..._with20_matches_integer_and_float_types.md | 12 - .../docs/components/schema/const_with_null.md | 12 - .../empty_tokens_in_ref_json_pointer.md | 28 -- ...th_file_uri_still_resolves_pointers_nix.md | 12 - ...ile_uri_still_resolves_pointers_windows.md | 12 - .../maxitems_validation_with_a_decimal.md | 12 - .../maxlength_validation_with_a_decimal.md | 12 - ...maxproperties_validation_with_a_decimal.md | 12 - .../minitems_validation_with_a_decimal.md | 12 - .../minlength_validation_with_a_decimal.md | 12 - ...minproperties_validation_with_a_decimal.md | 12 - .../docs/components/schema/ref_to_else.md | 12 - .../docs/components/schema/ref_to_if.md | 12 - .../docs/components/schema/ref_to_then.md | 12 - .../ref_with_absolute_path_reference.md | 12 - .../simple_urn_base_uri_with_json_pointer.md | 42 --- ...imple_urn_base_uri_with_ref_via_the_urn.md | 42 --- .../schema/urn_base_uri_with_f_component.md | 12 - .../schema/urn_base_uri_with_nss.md | 42 --- .../schema/urn_base_uri_with_q_component.md | 42 --- .../schema/urn_base_uri_with_r_component.md | 42 --- .../urn_base_uri_with_urn_and_anchor_ref.md | 42 --- ..._base_uri_with_urn_and_json_pointer_ref.md | 42 --- .../schema/urn_ref_with_nested_pointer_ref.md | 12 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 116 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../post.md | 111 ------- .../content/application_json/schema.md | 10 - .../src/unit_test_api/apis/path_to_api.py | 36 --- ..._bit_representation_limits_request_body.py | 13 - ...body_post_const_validation_request_body.py | 13 - ...atch_other_zero_like_types_request_body.py | 13 - ..._with1_does_not_match_true_request_body.py | 13 - ...es_integer_and_float_types_request_body.py | 13 - ..._body_post_const_with_null_request_body.py | 13 - ..._limits_response_body_for_content_types.py | 13 - ...idation_response_body_for_content_types.py | 13 - ...e_types_response_body_for_content_types.py | 13 - ...ch_true_response_body_for_content_types.py | 13 - ...t_types_response_body_for_content_types.py | 13 - ...th_null_response_body_for_content_types.py | 13 - .../src/unit_test_api/apis/tags/const_api.py | 24 -- .../apis/tags/content_type_json_api.py | 24 -- .../apis/tags/operation_request_body_api.py | 12 - .../unit_test_api/apis/tags/path_post_api.py | 24 -- ...esponse_content_content_type_schema_api.py | 12 - ...equal_up_to64_bit_representation_limits.py | 38 --- .../components/schema/const_validation.py | 38 --- ...h0_does_not_match_other_zero_like_types.py | 38 --- .../schema/const_with1_does_not_match_true.py | 38 --- ..._with20_matches_integer_and_float_types.py | 38 --- .../components/schema/const_with_null.py | 13 - .../components/schemas/__init__.py | 6 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 -- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 -- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 -- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 -- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 -- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 -- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - ...equal_up_to64_bit_representation_limits.py | 55 ---- .../schema/test_const_validation.py | 48 --- ...h0_does_not_match_other_zero_like_types.py | 73 ----- .../test_const_with1_does_not_match_true.py | 47 --- ..._with20_matches_integer_and_float_types.py | 63 ---- .../components/schema/test_const_with_null.py | 40 --- .../__init__.py | 0 .../test_post.py | 122 -------- .../__init__.py | 0 .../test_post.py | 93 ------ .../__init__.py | 0 .../test_post.py | 152 --------- .../__init__.py | 0 .../test_post.py | 108 ------- .../__init__.py | 0 .../test_post.py | 136 -------- .../__init__.py | 0 .../test_post.py | 79 ----- .../test_post.py | 2 +- .../test_post.py | 2 +- .../__init__.py | 0 .../test_post.py | 143 --------- .../__init__.py | 0 .../test_post.py | 114 ------- .../__init__.py | 0 .../test_post.py | 193 ------------ .../__init__.py | 0 .../test_post.py | 119 ------- .../__init__.py | 0 .../test_post.py | 167 ---------- .../__init__.py | 0 .../test_post.py | 90 ------ .../test_post.py | 2 +- .../test_post.py | 2 +- 244 files changed, 106 insertions(+), 8227 deletions(-) delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/empty_tokens_in_ref_json_pointer.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_nix.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_windows.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/maxitems_validation_with_a_decimal.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/maxlength_validation_with_a_decimal.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/maxproperties_validation_with_a_decimal.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/minitems_validation_with_a_decimal.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/minlength_validation_with_a_decimal.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/minproperties_validation_with_a_decimal.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_else.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_if.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_then.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/ref_with_absolute_path_reference.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_json_pointer.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_ref_via_the_urn.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_f_component.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_nss.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_q_component.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_r_component.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_anchor_ref.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_json_pointer_ref.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/urn_ref_with_nested_pointer_ref.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 055aaf9d810..0685fc16e31 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -53,13 +53,7 @@ docs/components/schema/boolean_type_matches_booleans.md docs/components/schema/by_int.md docs/components/schema/by_number.md docs/components/schema/by_small_number.md -docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md docs/components/schema/const_nul_characters_in_strings.md -docs/components/schema/const_validation.md -docs/components/schema/const_with0_does_not_match_other_zero_like_types.md -docs/components/schema/const_with1_does_not_match_true.md -docs/components/schema/const_with20_matches_integer_and_float_types.md -docs/components/schema/const_with_null.md docs/components/schema/date_format.md docs/components/schema/date_time_format.md docs/components/schema/duration_format.md @@ -183,20 +177,8 @@ docs/paths/request_body_post_by_number_request_body/post.md docs/paths/request_body_post_by_number_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_by_small_number_request_body/post.md docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md -docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_const_validation_request_body/post.md -docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md -docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md -docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md -docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_const_with_null_request_body/post.md -docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_format_request_body/post.md docs/paths/request_body_post_date_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md @@ -401,20 +383,8 @@ docs/paths/response_body_post_by_number_response_body_for_content_types/post.md docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md -docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md -docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md -docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md -docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md -docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md -docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_format_response_body_for_content_types/post.md docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -609,13 +579,7 @@ src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_req src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py -src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py -src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py -src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py -src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py -src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py -src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py @@ -718,13 +682,7 @@ src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_re src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py @@ -860,13 +818,7 @@ src/unit_test_api/components/schema/boolean_type_matches_booleans.py src/unit_test_api/components/schema/by_int.py src/unit_test_api/components/schema/by_number.py src/unit_test_api/components/schema/by_small_number.py -src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py src/unit_test_api/components/schema/const_nul_characters_in_strings.py -src/unit_test_api/components/schema/const_validation.py -src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py -src/unit_test_api/components/schema/const_with1_does_not_match_true.py -src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py -src/unit_test_api/components/schema/const_with_null.py src/unit_test_api/components/schema/date_format.py src/unit_test_api/components/schema/date_time_format.py src/unit_test_api/components/schema/duration_format.py @@ -1150,15 +1102,6 @@ src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/requ src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/__init__.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py @@ -1168,51 +1111,6 @@ src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_reques src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py @@ -2109,14 +2007,6 @@ src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_con src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -2125,46 +2015,6 @@ src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_respo src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py @@ -2828,25 +2678,109 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py +test/components/schema/test__not.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_does_not_look_in_applicators.py +test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py +test/components/schema/test_additionalproperties_with_schema.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_const_validation.py -test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py -test/components/schema/test_const_with1_does_not_match_true.py -test/components/schema/test_const_with20_matches_integer_and_float_types.py -test/components/schema/test_const_with_null.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py +test/components/schema/test_date_format.py +test/components/schema/test_date_time_format.py +test/components/schema/test_duration_format.py +test/components/schema/test_email_format.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_float_division_inf.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_idn_email_format.py +test/components/schema/test_idn_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_iri_format.py +test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_does_not_look_in_applicators_valid_case.py +test/components/schema/test_items_with_null_instance_elements.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py +test/components/schema/test_multiple_types_can_be_specified_in_an_array.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_properties_with_null_valued_instance_properties.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py +test/components/schema/test_regex_format.py +test/components/schema/test_relative_json_pointer_format.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py +test/components/schema/test_small_multiple_of_large_integer.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_time_format.py +test/components/schema/test_type_array_object_or_null.py +test/components/schema/test_type_array_or_object.py +test/components/schema/test_type_as_array_with_one_item.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_false_with_an_array_of_items.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uniqueitems_with_an_array_of_items.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py +test/components/schema/test_uuid_format.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3097,20 +3031,8 @@ test/test_paths/test_request_body_post_by_number_request_body/__init__.py test/test_paths/test_request_body_post_by_number_request_body/test_post.py test/test_paths/test_request_body_post_by_small_number_request_body/__init__.py test/test_paths/test_request_body_post_by_small_number_request_body/test_post.py -test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py -test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/__init__.py test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py -test/test_paths/test_request_body_post_const_validation_request_body/__init__.py -test/test_paths/test_request_body_post_const_validation_request_body/test_post.py -test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py -test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py -test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py -test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py -test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py -test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py -test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py -test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py test/test_paths/test_request_body_post_date_format_request_body/__init__.py test/test_paths/test_request_body_post_date_format_request_body/test_post.py test/test_paths/test_request_body_post_date_time_format_request_body/__init__.py @@ -3315,20 +3237,8 @@ test/test_paths/test_response_body_post_by_number_response_body_for_content_type test/test_paths/test_response_body_post_by_number_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_by_small_number_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_by_small_number_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_date_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 8f2305770e8..16f531b10dd 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -192,13 +192,7 @@ HTTP request | Method | Description /requestBody/postByIntRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_int_request_body](docs/paths/request_body_post_by_int_request_body/post.md) | /requestBody/postByNumberRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) | /requestBody/postBySmallNumberRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) | -/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body](docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | /requestBody/postConstNulCharactersInStringsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | -/requestBody/postConstValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_validation_request_body](docs/paths/request_body_post_const_validation_request_body/post.md) | -/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with0_does_not_match_other_zero_like_types_request_body](docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | -/requestBody/postConstWith1DoesNotMatchTrueRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with1_does_not_match_true_request_body](docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | -/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with20_matches_integer_and_float_types_request_body](docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | -/requestBody/postConstWithNullRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with_null_request_body](docs/paths/request_body_post_const_with_null_request_body/post.md) | /requestBody/postDateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) | /requestBody/postDateTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) | /requestBody/postDurationFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) | @@ -301,13 +295,7 @@ HTTP request | Method | Description /responseBody/postByIntResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_int_response_body_for_content_types](docs/paths/response_body_post_by_int_response_body_for_content_types/post.md) | /responseBody/postByNumberResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) | /responseBody/postBySmallNumberResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | -/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types](docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | /responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | -/responseBody/postConstValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_validation_response_body_for_content_types](docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md) | -/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types](docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | -/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | -/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with20_matches_integer_and_float_types_response_body_for_content_types](docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | -/responseBody/postConstWithNullResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_with_null_response_body_for_content_types](docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | /responseBody/postDateFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) | /responseBody/postDateTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | /responseBody/postDurationFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) | @@ -415,13 +403,7 @@ Class | Description [ByInt](docs/components/schema/by_int.md) | [ByNumber](docs/components/schema/by_number.md) | [BySmallNumber](docs/components/schema/by_small_number.md) | -[ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits](docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | [ConstNulCharactersInStrings](docs/components/schema/const_nul_characters_in_strings.md) | -[ConstValidation](docs/components/schema/const_validation.md) | -[ConstWith0DoesNotMatchOtherZeroLikeTypes](docs/components/schema/const_with0_does_not_match_other_zero_like_types.md) | -[ConstWith1DoesNotMatchTrue](docs/components/schema/const_with1_does_not_match_true.md) | -[ConstWith20MatchesIntegerAndFloatTypes](docs/components/schema/const_with20_matches_integer_and_float_types.md) | -[ConstWithNull](docs/components/schema/const_with_null.md) | [DateFormat](docs/components/schema/date_format.md) | [DateTimeFormat](docs/components/schema/date_time_format.md) | [DurationFormat](docs/components/schema/duration_format.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md index 27752866d42..d8d502a150e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/const_api.md @@ -9,19 +9,7 @@ All URIs are relative to the selected server Method | Description ------ | ------------- -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | -[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | -[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | -[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | -[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | -[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | -[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | -[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | -[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index a382542cfff..86e8c10d61b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -53,20 +53,8 @@ Method | Description [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | -[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | -[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | -[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | -[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | -[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | -[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | -[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | -[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 520f70dc1f7..5d22b564bf3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -31,13 +31,7 @@ Method | Description [**post_by_int_request_body**](../../paths/request_body_post_by_int_request_body/post.md) | [**post_by_number_request_body**](../../paths/request_body_post_by_number_request_body/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | -[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | -[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | -[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | -[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index a716efb919f..4d3540fd41e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -53,20 +53,8 @@ Method | Description [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body**](../../paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | -[**post_const_validation_request_body**](../../paths/request_body_post_const_validation_request_body/post.md) | -[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_request_body**](../../paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | -[**post_const_with1_does_not_match_true_request_body**](../../paths/request_body_post_const_with1_does_not_match_true_request_body/post.md) | -[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | -[**post_const_with20_matches_integer_and_float_types_request_body**](../../paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md) | -[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | -[**post_const_with_null_request_body**](../../paths/request_body_post_const_with_null_request_body/post.md) | -[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 6b3fc118ae6..49b217274c1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -31,13 +31,7 @@ Method | Description [**post_by_int_response_body_for_content_types**](../../paths/response_body_post_by_int_response_body_for_content_types/post.md) | [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | -[**post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types**](../../paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | -[**post_const_validation_response_body_for_content_types**](../../paths/response_body_post_const_validation_response_body_for_content_types/post.md) | -[**post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types**](../../paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md) | -[**post_const_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md) | -[**post_const_with20_matches_integer_and_float_types_response_body_for_content_types**](../../paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md) | -[**post_const_with_null_response_body_for_content_types**](../../paths/response_body_post_const_with_null_response_body_for_content_types/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md deleted file mode 100644 index 260ed8aadc1..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits -unit_test_api.components.schema.const_float_and_integers_are_equal_up_to64_bit_representation_limits -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md deleted file mode 100644 index 24e83487057..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_validation.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConstValidation -unit_test_api.components.schema.const_validation -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md deleted file mode 100644 index b3aebb508cb..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with0_does_not_match_other_zero_like_types.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConstWith0DoesNotMatchOtherZeroLikeTypes -unit_test_api.components.schema.const_with0_does_not_match_other_zero_like_types -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md deleted file mode 100644 index aaa776a151a..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with1_does_not_match_true.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConstWith1DoesNotMatchTrue -unit_test_api.components.schema.const_with1_does_not_match_true -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md deleted file mode 100644 index 6d849a22f8c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with20_matches_integer_and_float_types.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConstWith20MatchesIntegerAndFloatTypes -unit_test_api.components.schema.const_with20_matches_integer_and_float_types -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md deleted file mode 100644 index 6e165dcef58..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/const_with_null.md +++ /dev/null @@ -1,12 +0,0 @@ -# ConstWithNull -unit_test_api.components.schema.const_with_null -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/empty_tokens_in_ref_json_pointer.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/empty_tokens_in_ref_json_pointer.md deleted file mode 100644 index 70db01a7591..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/empty_tokens_in_ref_json_pointer.md +++ /dev/null @@ -1,28 +0,0 @@ -# EmptyTokensInRefJsonPointer -unit_test_api.components.schema.empty_tokens_in_ref_json_pointer -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -## Composed Schemas (allOf/anyOf/oneOf/not) -## allOf -Schema Class | Input Type | Return Type ------------- | ---------- | ----------- -[_02](#_02) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -# _02 -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**defs.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_nix.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_nix.md deleted file mode 100644 index 837b684c313..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_nix.md +++ /dev/null @@ -1,12 +0,0 @@ -# IdWithFileUriStillResolvesPointersNix2 -unit_test_api.components.schema.id_with_file_uri_still_resolves_pointers_nix -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**foo.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_windows.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_windows.md deleted file mode 100644 index 56196e1b766..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/id_with_file_uri_still_resolves_pointers_windows.md +++ /dev/null @@ -1,12 +0,0 @@ -# IdWithFileUriStillResolvesPointersWindows2 -unit_test_api.components.schema.id_with_file_uri_still_resolves_pointers_windows -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**foo.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxitems_validation_with_a_decimal.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/maxitems_validation_with_a_decimal.md deleted file mode 100644 index f24f44fd2e0..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxitems_validation_with_a_decimal.md +++ /dev/null @@ -1,12 +0,0 @@ -# MaxitemsValidationWithADecimal -unit_test_api.components.schema.maxitems_validation_with_a_decimal -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxlength_validation_with_a_decimal.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/maxlength_validation_with_a_decimal.md deleted file mode 100644 index e7d2933d573..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxlength_validation_with_a_decimal.md +++ /dev/null @@ -1,12 +0,0 @@ -# MaxlengthValidationWithADecimal -unit_test_api.components.schema.maxlength_validation_with_a_decimal -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxproperties_validation_with_a_decimal.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/maxproperties_validation_with_a_decimal.md deleted file mode 100644 index 5a7a67073e5..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxproperties_validation_with_a_decimal.md +++ /dev/null @@ -1,12 +0,0 @@ -# MaxpropertiesValidationWithADecimal -unit_test_api.components.schema.maxproperties_validation_with_a_decimal -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/minitems_validation_with_a_decimal.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/minitems_validation_with_a_decimal.md deleted file mode 100644 index fe25bcfb48c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/minitems_validation_with_a_decimal.md +++ /dev/null @@ -1,12 +0,0 @@ -# MinitemsValidationWithADecimal -unit_test_api.components.schema.minitems_validation_with_a_decimal -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/minlength_validation_with_a_decimal.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/minlength_validation_with_a_decimal.md deleted file mode 100644 index 55e83b86baa..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/minlength_validation_with_a_decimal.md +++ /dev/null @@ -1,12 +0,0 @@ -# MinlengthValidationWithADecimal -unit_test_api.components.schema.minlength_validation_with_a_decimal -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/minproperties_validation_with_a_decimal.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/minproperties_validation_with_a_decimal.md deleted file mode 100644 index 50f5d628f4c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/minproperties_validation_with_a_decimal.md +++ /dev/null @@ -1,12 +0,0 @@ -# MinpropertiesValidationWithADecimal -unit_test_api.components.schema.minproperties_validation_with_a_decimal -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_else.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_else.md deleted file mode 100644 index 4433ec4e79a..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_else.md +++ /dev/null @@ -1,12 +0,0 @@ -# RefToElse2 -unit_test_api.components.schema.ref_to_else -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**_else.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_if.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_if.md deleted file mode 100644 index 70c0ffe4c1e..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_if.md +++ /dev/null @@ -1,12 +0,0 @@ -# RefToIf2 -unit_test_api.components.schema.ref_to_if -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**_if.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_then.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_then.md deleted file mode 100644 index 259c4d472b1..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_to_then.md +++ /dev/null @@ -1,12 +0,0 @@ -# RefToThen2 -unit_test_api.components.schema.ref_to_then -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**then.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_with_absolute_path_reference.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_with_absolute_path_reference.md deleted file mode 100644 index cd6b6621705..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/ref_with_absolute_path_reference.md +++ /dev/null @@ -1,12 +0,0 @@ -# RefWithAbsolutePathReference2 -unit_test_api.components.schema.ref_with_absolute_path_reference -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**foobar_json.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_json_pointer.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_json_pointer.md deleted file mode 100644 index c370ee4fc1f..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_json_pointer.md +++ /dev/null @@ -1,42 +0,0 @@ -# SimpleUrnBaseUriWithJsonPointer -unit_test_api.components.schema.simple_urn_base_uri_with_json_pointer -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[SimpleUrnBaseUriWithJsonPointerDictInput](#simpleurnbaseuriwithjsonpointerdictinput), [SimpleUrnBaseUriWithJsonPointerDict](#simpleurnbaseuriwithjsonpointerdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [SimpleUrnBaseUriWithJsonPointerDict](#simpleurnbaseuriwithjsonpointerdict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## SimpleUrnBaseUriWithJsonPointerDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## SimpleUrnBaseUriWithJsonPointerDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [SimpleUrnBaseUriWithJsonPointerDictInput](#simpleurnbaseuriwithjsonpointerdictinput), [SimpleUrnBaseUriWithJsonPointerDict](#simpleurnbaseuriwithjsonpointerdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [SimpleUrnBaseUriWithJsonPointerDict](#simpleurnbaseuriwithjsonpointerdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_ref_via_the_urn.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_ref_via_the_urn.md deleted file mode 100644 index d13ad236f83..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/simple_urn_base_uri_with_ref_via_the_urn.md +++ /dev/null @@ -1,42 +0,0 @@ -# SimpleUrnBaseUriWithRefViaTheUrn -unit_test_api.components.schema.simple_urn_base_uri_with_ref_via_the_urn -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[SimpleUrnBaseUriWithRefViaTheUrnDictInput](#simpleurnbaseuriwithrefviatheurndictinput), [SimpleUrnBaseUriWithRefViaTheUrnDict](#simpleurnbaseuriwithrefviatheurndict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [SimpleUrnBaseUriWithRefViaTheUrnDict](#simpleurnbaseuriwithrefviatheurndict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## SimpleUrnBaseUriWithRefViaTheUrnDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## SimpleUrnBaseUriWithRefViaTheUrnDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [SimpleUrnBaseUriWithRefViaTheUrnDictInput](#simpleurnbaseuriwithrefviatheurndictinput), [SimpleUrnBaseUriWithRefViaTheUrnDict](#simpleurnbaseuriwithrefviatheurndict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [SimpleUrnBaseUriWithRefViaTheUrnDict](#simpleurnbaseuriwithrefviatheurndict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_f_component.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_f_component.md deleted file mode 100644 index 9059c3768fe..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_f_component.md +++ /dev/null @@ -1,12 +0,0 @@ -# UrnBaseUriWithFComponent2 -unit_test_api.components.schema.urn_base_uri_with_f_component -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**schema.**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_nss.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_nss.md deleted file mode 100644 index d916e2632b9..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_nss.md +++ /dev/null @@ -1,42 +0,0 @@ -# UrnBaseUriWithNss -unit_test_api.components.schema.urn_base_uri_with_nss -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[UrnBaseUriWithNssDictInput](#urnbaseuriwithnssdictinput), [UrnBaseUriWithNssDict](#urnbaseuriwithnssdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithNssDict](#urnbaseuriwithnssdict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## UrnBaseUriWithNssDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## UrnBaseUriWithNssDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [UrnBaseUriWithNssDictInput](#urnbaseuriwithnssdictinput), [UrnBaseUriWithNssDict](#urnbaseuriwithnssdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithNssDict](#urnbaseuriwithnssdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_q_component.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_q_component.md deleted file mode 100644 index ce97ee5b687..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_q_component.md +++ /dev/null @@ -1,42 +0,0 @@ -# UrnBaseUriWithQComponent -unit_test_api.components.schema.urn_base_uri_with_q_component -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[UrnBaseUriWithQComponentDictInput](#urnbaseuriwithqcomponentdictinput), [UrnBaseUriWithQComponentDict](#urnbaseuriwithqcomponentdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithQComponentDict](#urnbaseuriwithqcomponentdict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## UrnBaseUriWithQComponentDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## UrnBaseUriWithQComponentDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [UrnBaseUriWithQComponentDictInput](#urnbaseuriwithqcomponentdictinput), [UrnBaseUriWithQComponentDict](#urnbaseuriwithqcomponentdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithQComponentDict](#urnbaseuriwithqcomponentdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_r_component.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_r_component.md deleted file mode 100644 index 05cf330dbb5..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_r_component.md +++ /dev/null @@ -1,42 +0,0 @@ -# UrnBaseUriWithRComponent -unit_test_api.components.schema.urn_base_uri_with_r_component -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[UrnBaseUriWithRComponentDictInput](#urnbaseuriwithrcomponentdictinput), [UrnBaseUriWithRComponentDict](#urnbaseuriwithrcomponentdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithRComponentDict](#urnbaseuriwithrcomponentdict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## UrnBaseUriWithRComponentDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## UrnBaseUriWithRComponentDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [UrnBaseUriWithRComponentDictInput](#urnbaseuriwithrcomponentdictinput), [UrnBaseUriWithRComponentDict](#urnbaseuriwithrcomponentdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithRComponentDict](#urnbaseuriwithrcomponentdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_anchor_ref.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_anchor_ref.md deleted file mode 100644 index fe5a26de7d7..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_anchor_ref.md +++ /dev/null @@ -1,42 +0,0 @@ -# UrnBaseUriWithUrnAndAnchorRef -unit_test_api.components.schema.urn_base_uri_with_urn_and_anchor_ref -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[UrnBaseUriWithUrnAndAnchorRefDictInput](#urnbaseuriwithurnandanchorrefdictinput), [UrnBaseUriWithUrnAndAnchorRefDict](#urnbaseuriwithurnandanchorrefdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithUrnAndAnchorRefDict](#urnbaseuriwithurnandanchorrefdict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## UrnBaseUriWithUrnAndAnchorRefDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## UrnBaseUriWithUrnAndAnchorRefDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [UrnBaseUriWithUrnAndAnchorRefDictInput](#urnbaseuriwithurnandanchorrefdictinput), [UrnBaseUriWithUrnAndAnchorRefDict](#urnbaseuriwithurnandanchorrefdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithUrnAndAnchorRefDict](#urnbaseuriwithurnandanchorrefdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_json_pointer_ref.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_json_pointer_ref.md deleted file mode 100644 index 19ac99cc1cf..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_base_uri_with_urn_and_json_pointer_ref.md +++ /dev/null @@ -1,42 +0,0 @@ -# UrnBaseUriWithUrnAndJsonPointerRef -unit_test_api.components.schema.urn_base_uri_with_urn_and_json_pointer_ref -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[UrnBaseUriWithUrnAndJsonPointerRefDictInput](#urnbaseuriwithurnandjsonpointerrefdictinput), [UrnBaseUriWithUrnAndJsonPointerRefDict](#urnbaseuriwithurnandjsonpointerrefdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithUrnAndJsonPointerRefDict](#urnbaseuriwithurnandjsonpointerrefdict), str, float, int, bool, None, tuple, bytes, io.FileIO | - -## UrnBaseUriWithUrnAndJsonPointerRefDictInput -``` -type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] - -## UrnBaseUriWithUrnAndJsonPointerRefDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [UrnBaseUriWithUrnAndJsonPointerRefDictInput](#urnbaseuriwithurnandjsonpointerrefdictinput), [UrnBaseUriWithUrnAndJsonPointerRefDict](#urnbaseuriwithurnandjsonpointerrefdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [UrnBaseUriWithUrnAndJsonPointerRefDict](#urnbaseuriwithurnandjsonpointerrefdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor -get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_ref_with_nested_pointer_ref.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_ref_with_nested_pointer_ref.md deleted file mode 100644 index 3d4ae536019..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/urn_ref_with_nested_pointer_ref.md +++ /dev/null @@ -1,12 +0,0 @@ -# UrnRefWithNestedPointerRef2 -unit_test_api.components.schema.urn_ref_with_nested_pointer_ref -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**urnuuiddeadbeef4321_ffff_ffff1234feebdaed.Urnuuiddeadbeef4321FfffFfff1234feebdaed**](../../.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md deleted file mode 100644 index 500564f0a88..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody | This api is only for path=/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate(None) - try: - api_response = api_instance.post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 288fdefacd2..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../../../../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md deleted file mode 100644 index 9676c83d8cd..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_const_validation_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_validation_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_const_validation_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_validation_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_validation_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostConstValidationRequestBody | This api is only for path=/requestBody/postConstValidationRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postConstValidationRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_const_validation_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_validation.ConstValidation**](../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = const_validation.ConstValidation.validate(None) - try: - api_response = api_instance.post_const_validation_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_const_validation_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 2cb03a07420..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_const_validation_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_validation.ConstValidation**](../../../../../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md deleted file mode 100644 index bfdaf6ed3e6..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with0_does_not_match_other_zero_like_types_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_const_with0_does_not_match_other_zero_like_types_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with0_does_not_match_other_zero_like_types_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with0_does_not_match_other_zero_like_types_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody | This api is only for path=/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes.validate(None) - try: - api_response = api_instance.post_const_with0_does_not_match_other_zero_like_types_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_const_with0_does_not_match_other_zero_like_types_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 4b6a60633cd..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../../../../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md deleted file mode 100644 index e9031179aa8..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with1_does_not_match_true_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_const_with1_does_not_match_true_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with1_does_not_match_true_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with1_does_not_match_true_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostConstWith1DoesNotMatchTrueRequestBody | This api is only for path=/requestBody/postConstWith1DoesNotMatchTrueRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postConstWith1DoesNotMatchTrueRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue.validate(None) - try: - api_response = api_instance.post_const_with1_does_not_match_true_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_const_with1_does_not_match_true_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 3257bafd51b..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../../../../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md deleted file mode 100644 index 15a6fc4695c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with20_matches_integer_and_float_types_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_const_with20_matches_integer_and_float_types_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with20_matches_integer_and_float_types_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with20_matches_integer_and_float_types_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody | This api is only for path=/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes.validate(None) - try: - api_response = api_instance.post_const_with20_matches_integer_and_float_types_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_const_with20_matches_integer_and_float_types_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 9153e112fb6..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../../../../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md deleted file mode 100644 index 71d57eac4a3..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_const_with_null_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with_null_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_const_with_null_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with_null_request_body | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with_null_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostConstWithNullRequestBody | This api is only for path=/requestBody/postConstWithNullRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postConstWithNullRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_const_with_null_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with_null.ConstWithNull**](../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = const_with_null.ConstWithNull.validate(None) - try: - api_response = api_instance.post_const_with_null_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_const_with_null_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index eb059827167..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_const_with_null_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with_null.ConstWithNull**](../../../../../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post.md deleted file mode 100644 index 68bb542d6bd..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_maxitems_validation_with_a_decimal_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_maxitems_validation_with_a_decimal_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_maxitems_validation_with_a_decimal_request_body | [MaxItemsApi](../../apis/tags/max_items_api.md) | This api is only for tag=maxItems | -| post_maxitems_validation_with_a_decimal_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_maxitems_validation_with_a_decimal_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostMaxitemsValidationWithADecimalRequestBody | This api is only for path=/requestBody/postMaxitemsValidationWithADecimalRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postMaxitemsValidationWithADecimalRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_maxitems_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxitems_validation_with_a_decimal.MaxitemsValidationWithADecimal**](../../components/schema/maxitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = maxitems_validation_with_a_decimal.MaxitemsValidationWithADecimal(None) - try: - api_response = api_instance.post_maxitems_validation_with_a_decimal_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_maxitems_validation_with_a_decimal_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to MaxItemsApi API]](../../apis/tags/max_items_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index edc9d99d979..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_maxitems_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxitems_validation_with_a_decimal.MaxitemsValidationWithADecimal**](../../../../../../components/schema/maxitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post.md deleted file mode 100644 index a4382634bd2..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_maxlength_validation_with_a_decimal_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_maxlength_validation_with_a_decimal_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_maxlength_validation_with_a_decimal_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_maxlength_validation_with_a_decimal_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_maxlength_validation_with_a_decimal_request_body | [MaxLengthApi](../../apis/tags/max_length_api.md) | This api is only for tag=maxLength | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostMaxlengthValidationWithADecimalRequestBody | This api is only for path=/requestBody/postMaxlengthValidationWithADecimalRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postMaxlengthValidationWithADecimalRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_maxlength_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxlength_validation_with_a_decimal.MaxlengthValidationWithADecimal**](../../components/schema/maxlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = maxlength_validation_with_a_decimal.MaxlengthValidationWithADecimal(None) - try: - api_response = api_instance.post_maxlength_validation_with_a_decimal_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_maxlength_validation_with_a_decimal_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to MaxLengthApi API]](../../apis/tags/max_length_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 3acc49eb63f..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_maxlength_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxlength_validation_with_a_decimal.MaxlengthValidationWithADecimal**](../../../../../../components/schema/maxlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post.md deleted file mode 100644 index df733b7e2f0..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_maxproperties_validation_with_a_decimal_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_maxproperties_validation_with_a_decimal_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_maxproperties_validation_with_a_decimal_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_maxproperties_validation_with_a_decimal_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_maxproperties_validation_with_a_decimal_request_body | [MaxPropertiesApi](../../apis/tags/max_properties_api.md) | This api is only for tag=maxProperties | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostMaxpropertiesValidationWithADecimalRequestBody | This api is only for path=/requestBody/postMaxpropertiesValidationWithADecimalRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postMaxpropertiesValidationWithADecimalRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_maxproperties_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxproperties_validation_with_a_decimal.MaxpropertiesValidationWithADecimal**](../../components/schema/maxproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = maxproperties_validation_with_a_decimal.MaxpropertiesValidationWithADecimal(None) - try: - api_response = api_instance.post_maxproperties_validation_with_a_decimal_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_maxproperties_validation_with_a_decimal_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to MaxPropertiesApi API]](../../apis/tags/max_properties_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index dc0d6e9ee1f..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_maxproperties_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxproperties_validation_with_a_decimal.MaxpropertiesValidationWithADecimal**](../../../../../../components/schema/maxproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post.md deleted file mode 100644 index 94d22f4c9e0..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_minitems_validation_with_a_decimal_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_minitems_validation_with_a_decimal_request_body | [MinItemsApi](../../apis/tags/min_items_api.md) | This api is only for tag=minItems | -| post_minitems_validation_with_a_decimal_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_minitems_validation_with_a_decimal_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_minitems_validation_with_a_decimal_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostMinitemsValidationWithADecimalRequestBody | This api is only for path=/requestBody/postMinitemsValidationWithADecimalRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postMinitemsValidationWithADecimalRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_minitems_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minitems_validation_with_a_decimal.MinitemsValidationWithADecimal**](../../components/schema/minitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import min_items_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = min_items_api.MinItemsApi(api_client) - - # example passing only required values which don't have defaults set - body = minitems_validation_with_a_decimal.MinitemsValidationWithADecimal(None) - try: - api_response = api_instance.post_minitems_validation_with_a_decimal_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling MinItemsApi->post_minitems_validation_with_a_decimal_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to MinItemsApi API]](../../apis/tags/min_items_api.md) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 39ea140d872..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minitems_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_minitems_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minitems_validation_with_a_decimal.MinitemsValidationWithADecimal**](../../../../../../components/schema/minitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post.md deleted file mode 100644 index 49da2b1ce16..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_minlength_validation_with_a_decimal_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_minlength_validation_with_a_decimal_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_minlength_validation_with_a_decimal_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_minlength_validation_with_a_decimal_request_body | [MinLengthApi](../../apis/tags/min_length_api.md) | This api is only for tag=minLength | -| post_minlength_validation_with_a_decimal_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostMinlengthValidationWithADecimalRequestBody | This api is only for path=/requestBody/postMinlengthValidationWithADecimalRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postMinlengthValidationWithADecimalRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_minlength_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minlength_validation_with_a_decimal.MinlengthValidationWithADecimal**](../../components/schema/minlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = minlength_validation_with_a_decimal.MinlengthValidationWithADecimal(None) - try: - api_response = api_instance.post_minlength_validation_with_a_decimal_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_minlength_validation_with_a_decimal_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to MinLengthApi API]](../../apis/tags/min_length_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index a99edbc910a..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minlength_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_minlength_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minlength_validation_with_a_decimal.MinlengthValidationWithADecimal**](../../../../../../components/schema/minlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post.md deleted file mode 100644 index 2eea6f40abb..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_minproperties_validation_with_a_decimal_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_minproperties_validation_with_a_decimal_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_minproperties_validation_with_a_decimal_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_minproperties_validation_with_a_decimal_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_minproperties_validation_with_a_decimal_request_body | [MinPropertiesApi](../../apis/tags/min_properties_api.md) | This api is only for tag=minProperties | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostMinpropertiesValidationWithADecimalRequestBody | This api is only for path=/requestBody/postMinpropertiesValidationWithADecimalRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postMinpropertiesValidationWithADecimalRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_minproperties_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minproperties_validation_with_a_decimal.MinpropertiesValidationWithADecimal**](../../components/schema/minproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = minproperties_validation_with_a_decimal.MinpropertiesValidationWithADecimal(None) - try: - api_response = api_instance.post_minproperties_validation_with_a_decimal_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_minproperties_validation_with_a_decimal_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to MinPropertiesApi API]](../../apis/tags/min_properties_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index c5657d5a8f2..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_minproperties_validation_with_a_decimal_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_minproperties_validation_with_a_decimal_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minproperties_validation_with_a_decimal.MinpropertiesValidationWithADecimal**](../../../../../../components/schema/minproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md deleted file mode 100644 index 254437e4ec9..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes | This api is only for path=/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 68a5aeccd08..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits**](../../../../../../../../components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md deleted file mode 100644 index fe28b43a42c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_validation_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_validation_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_validation_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_const_validation_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostConstValidationResponseBodyForContentTypes | This api is only for path=/responseBody/postConstValidationResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postConstValidationResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_validation.ConstValidation**](../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_const_validation_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_const_validation_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 565e800024c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_validation.ConstValidation**](../../../../../../../../components/schema/const_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md deleted file mode 100644 index 6022c0a7720..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 9b29e970658..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes**](../../../../../../../../components/schema/const_with0_does_not_match_other_zero_like_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md deleted file mode 100644 index 5bb28a6a8df..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with1_does_not_match_true_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with1_does_not_match_true_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with1_does_not_match_true_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_const_with1_does_not_match_true_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_const_with1_does_not_match_true_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_const_with1_does_not_match_true_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 1f9786798f5..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue**](../../../../../../../../components/schema/const_with1_does_not_match_true.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md deleted file mode 100644 index 754e6eef835..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_const_with20_matches_integer_and_float_types_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_const_with20_matches_integer_and_float_types_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_const_with20_matches_integer_and_float_types_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index e62302960bd..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes**](../../../../../../../../components/schema/const_with20_matches_integer_and_float_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md deleted file mode 100644 index 9f80fb1eacb..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_const_with_null_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_const_with_null_response_body_for_content_types | [ConstApi](../../apis/tags/const_api.md) | This api is only for tag=const | -| post_const_with_null_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_const_with_null_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostConstWithNullResponseBodyForContentTypes | This api is only for path=/responseBody/postConstWithNullResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postConstWithNullResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with_null.ConstWithNull**](../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_const_with_null_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_const_with_null_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ConstApi API]](../../apis/tags/const_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 5534351af9e..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**const_with_null.ConstWithNull**](../../../../../../../../components/schema/const_with_null.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post.md deleted file mode 100644 index 81655cfa9b9..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_maxitems_validation_with_a_decimal_response_body_for_content_types | [MaxItemsApi](../../apis/tags/max_items_api.md) | This api is only for tag=maxItems | -| post_maxitems_validation_with_a_decimal_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_maxitems_validation_with_a_decimal_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_maxitems_validation_with_a_decimal_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostMaxitemsValidationWithADecimalResponseBodyForContentTypes | This api is only for path=/responseBody/postMaxitemsValidationWithADecimalResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postMaxitemsValidationWithADecimalResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxitems_validation_with_a_decimal.MaxitemsValidationWithADecimal**](../../components/schema/maxitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import max_items_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = max_items_api.MaxItemsApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_maxitems_validation_with_a_decimal_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling MaxItemsApi->post_maxitems_validation_with_a_decimal_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to MaxItemsApi API]](../../apis/tags/max_items_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 3d04108c8ba..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_maxitems_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxitems_validation_with_a_decimal.MaxitemsValidationWithADecimal**](../../../../../../../../components/schema/maxitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post.md deleted file mode 100644 index 7f392b69aaa..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_maxlength_validation_with_a_decimal_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_maxlength_validation_with_a_decimal_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_maxlength_validation_with_a_decimal_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post_maxlength_validation_with_a_decimal_response_body_for_content_types | [MaxLengthApi](../../apis/tags/max_length_api.md) | This api is only for tag=maxLength | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostMaxlengthValidationWithADecimalResponseBodyForContentTypes | This api is only for path=/responseBody/postMaxlengthValidationWithADecimalResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postMaxlengthValidationWithADecimalResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxlength_validation_with_a_decimal.MaxlengthValidationWithADecimal**](../../components/schema/maxlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_maxlength_validation_with_a_decimal_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_maxlength_validation_with_a_decimal_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to MaxLengthApi API]](../../apis/tags/max_length_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index f8749a73cd4..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_maxlength_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxlength_validation_with_a_decimal.MaxlengthValidationWithADecimal**](../../../../../../../../components/schema/maxlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post.md deleted file mode 100644 index 46629a80867..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_maxproperties_validation_with_a_decimal_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_maxproperties_validation_with_a_decimal_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_maxproperties_validation_with_a_decimal_response_body_for_content_types | [MaxPropertiesApi](../../apis/tags/max_properties_api.md) | This api is only for tag=maxProperties | -| post_maxproperties_validation_with_a_decimal_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostMaxpropertiesValidationWithADecimalResponseBodyForContentTypes | This api is only for path=/responseBody/postMaxpropertiesValidationWithADecimalResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postMaxpropertiesValidationWithADecimalResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxproperties_validation_with_a_decimal.MaxpropertiesValidationWithADecimal**](../../components/schema/maxproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_maxproperties_validation_with_a_decimal_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_maxproperties_validation_with_a_decimal_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to MaxPropertiesApi API]](../../apis/tags/max_properties_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index a6ed98860a1..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_maxproperties_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**maxproperties_validation_with_a_decimal.MaxpropertiesValidationWithADecimal**](../../../../../../../../components/schema/maxproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post.md deleted file mode 100644 index 44b5a28636d..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_minitems_validation_with_a_decimal_response_body_for_content_types | [MinItemsApi](../../apis/tags/min_items_api.md) | This api is only for tag=minItems | -| post_minitems_validation_with_a_decimal_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_minitems_validation_with_a_decimal_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_minitems_validation_with_a_decimal_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostMinitemsValidationWithADecimalResponseBodyForContentTypes | This api is only for path=/responseBody/postMinitemsValidationWithADecimalResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postMinitemsValidationWithADecimalResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minitems_validation_with_a_decimal.MinitemsValidationWithADecimal**](../../components/schema/minitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import min_items_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = min_items_api.MinItemsApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_minitems_validation_with_a_decimal_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling MinItemsApi->post_minitems_validation_with_a_decimal_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to MinItemsApi API]](../../apis/tags/min_items_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index fb5ca1f4660..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_minitems_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minitems_validation_with_a_decimal.MinitemsValidationWithADecimal**](../../../../../../../../components/schema/minitems_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post.md deleted file mode 100644 index 0b7ec1e07f8..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_minlength_validation_with_a_decimal_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_minlength_validation_with_a_decimal_response_body_for_content_types | [MinLengthApi](../../apis/tags/min_length_api.md) | This api is only for tag=minLength | -| post_minlength_validation_with_a_decimal_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_minlength_validation_with_a_decimal_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostMinlengthValidationWithADecimalResponseBodyForContentTypes | This api is only for path=/responseBody/postMinlengthValidationWithADecimalResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postMinlengthValidationWithADecimalResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minlength_validation_with_a_decimal.MinlengthValidationWithADecimal**](../../components/schema/minlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_minlength_validation_with_a_decimal_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_minlength_validation_with_a_decimal_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to MinLengthApi API]](../../apis/tags/min_length_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 9c5d33d5059..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_minlength_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minlength_validation_with_a_decimal.MinlengthValidationWithADecimal**](../../../../../../../../components/schema/minlength_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post.md deleted file mode 100644 index 5a009dfd3ea..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_minproperties_validation_with_a_decimal_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_minproperties_validation_with_a_decimal_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_minproperties_validation_with_a_decimal_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post_minproperties_validation_with_a_decimal_response_body_for_content_types | [MinPropertiesApi](../../apis/tags/min_properties_api.md) | This api is only for tag=minProperties | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostMinpropertiesValidationWithADecimalResponseBodyForContentTypes | This api is only for path=/responseBody/postMinpropertiesValidationWithADecimalResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postMinpropertiesValidationWithADecimalResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minproperties_validation_with_a_decimal.MinpropertiesValidationWithADecimal**](../../components/schema/minproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_minproperties_validation_with_a_decimal_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_minproperties_validation_with_a_decimal_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to MinPropertiesApi API]](../../apis/tags/min_properties_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index e24cc4c104e..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_minproperties_validation_with_a_decimal_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**minproperties_validation_with_a_decimal.MinpropertiesValidationWithADecimal**](../../../../../../../../components/schema/minproperties_validation_with_a_decimal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index ae14d25ef00..42e40f19288 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -23,13 +23,7 @@ from unit_test_api.apis.paths.request_body_post_by_int_request_body import RequestBodyPostByIntRequestBody from unit_test_api.apis.paths.request_body_post_by_number_request_body import RequestBodyPostByNumberRequestBody from unit_test_api.apis.paths.request_body_post_by_small_number_request_body import RequestBodyPostBySmallNumberRequestBody -from unit_test_api.apis.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body import RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.apis.paths.request_body_post_const_nul_characters_in_strings_request_body import RequestBodyPostConstNulCharactersInStringsRequestBody -from unit_test_api.apis.paths.request_body_post_const_validation_request_body import RequestBodyPostConstValidationRequestBody -from unit_test_api.apis.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body import RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody -from unit_test_api.apis.paths.request_body_post_const_with1_does_not_match_true_request_body import RequestBodyPostConstWith1DoesNotMatchTrueRequestBody -from unit_test_api.apis.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body import RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody -from unit_test_api.apis.paths.request_body_post_const_with_null_request_body import RequestBodyPostConstWithNullRequestBody from unit_test_api.apis.paths.request_body_post_date_format_request_body import RequestBodyPostDateFormatRequestBody from unit_test_api.apis.paths.request_body_post_date_time_format_request_body import RequestBodyPostDateTimeFormatRequestBody from unit_test_api.apis.paths.request_body_post_duration_format_request_body import RequestBodyPostDurationFormatRequestBody @@ -132,13 +126,7 @@ from unit_test_api.apis.paths.response_body_post_by_int_response_body_for_content_types import ResponseBodyPostByIntResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_by_number_response_body_for_content_types import ResponseBodyPostByNumberResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_by_small_number_response_body_for_content_types import ResponseBodyPostBySmallNumberResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types import ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types import ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_const_validation_response_body_for_content_types import ResponseBodyPostConstValidationResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types import ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types import ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types import ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_const_with_null_response_body_for_content_types import ResponseBodyPostConstWithNullResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_format_response_body_for_content_types import ResponseBodyPostDateFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_time_format_response_body_for_content_types import ResponseBodyPostDateTimeFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_duration_format_response_body_for_content_types import ResponseBodyPostDurationFormatResponseBodyForContentTypes @@ -245,13 +233,7 @@ "/requestBody/postByIntRequestBody": typing.Type[RequestBodyPostByIntRequestBody], "/requestBody/postByNumberRequestBody": typing.Type[RequestBodyPostByNumberRequestBody], "/requestBody/postBySmallNumberRequestBody": typing.Type[RequestBodyPostBySmallNumberRequestBody], - "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody": typing.Type[RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody], "/requestBody/postConstNulCharactersInStringsRequestBody": typing.Type[RequestBodyPostConstNulCharactersInStringsRequestBody], - "/requestBody/postConstValidationRequestBody": typing.Type[RequestBodyPostConstValidationRequestBody], - "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody": typing.Type[RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody], - "/requestBody/postConstWith1DoesNotMatchTrueRequestBody": typing.Type[RequestBodyPostConstWith1DoesNotMatchTrueRequestBody], - "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody": typing.Type[RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody], - "/requestBody/postConstWithNullRequestBody": typing.Type[RequestBodyPostConstWithNullRequestBody], "/requestBody/postDateFormatRequestBody": typing.Type[RequestBodyPostDateFormatRequestBody], "/requestBody/postDateTimeFormatRequestBody": typing.Type[RequestBodyPostDateTimeFormatRequestBody], "/requestBody/postDurationFormatRequestBody": typing.Type[RequestBodyPostDurationFormatRequestBody], @@ -354,13 +336,7 @@ "/responseBody/postByIntResponseBodyForContentTypes": typing.Type[ResponseBodyPostByIntResponseBodyForContentTypes], "/responseBody/postByNumberResponseBodyForContentTypes": typing.Type[ResponseBodyPostByNumberResponseBodyForContentTypes], "/responseBody/postBySmallNumberResponseBodyForContentTypes": typing.Type[ResponseBodyPostBySmallNumberResponseBodyForContentTypes], - "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes], "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes], - "/responseBody/postConstValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstValidationResponseBodyForContentTypes], - "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes], - "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes], - "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes], - "/responseBody/postConstWithNullResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstWithNullResponseBodyForContentTypes], "/responseBody/postDateFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateFormatResponseBodyForContentTypes], "/responseBody/postDateTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateTimeFormatResponseBodyForContentTypes], "/responseBody/postDurationFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDurationFormatResponseBodyForContentTypes], @@ -468,13 +444,7 @@ "/requestBody/postByIntRequestBody": RequestBodyPostByIntRequestBody, "/requestBody/postByNumberRequestBody": RequestBodyPostByNumberRequestBody, "/requestBody/postBySmallNumberRequestBody": RequestBodyPostBySmallNumberRequestBody, - "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody": RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, "/requestBody/postConstNulCharactersInStringsRequestBody": RequestBodyPostConstNulCharactersInStringsRequestBody, - "/requestBody/postConstValidationRequestBody": RequestBodyPostConstValidationRequestBody, - "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody": RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, - "/requestBody/postConstWith1DoesNotMatchTrueRequestBody": RequestBodyPostConstWith1DoesNotMatchTrueRequestBody, - "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody": RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody, - "/requestBody/postConstWithNullRequestBody": RequestBodyPostConstWithNullRequestBody, "/requestBody/postDateFormatRequestBody": RequestBodyPostDateFormatRequestBody, "/requestBody/postDateTimeFormatRequestBody": RequestBodyPostDateTimeFormatRequestBody, "/requestBody/postDurationFormatRequestBody": RequestBodyPostDurationFormatRequestBody, @@ -577,13 +547,7 @@ "/responseBody/postByIntResponseBodyForContentTypes": ResponseBodyPostByIntResponseBodyForContentTypes, "/responseBody/postByNumberResponseBodyForContentTypes": ResponseBodyPostByNumberResponseBodyForContentTypes, "/responseBody/postBySmallNumberResponseBodyForContentTypes": ResponseBodyPostBySmallNumberResponseBodyForContentTypes, - "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes": ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes": ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes, - "/responseBody/postConstValidationResponseBodyForContentTypes": ResponseBodyPostConstValidationResponseBodyForContentTypes, - "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes": ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, - "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes": ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, - "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes": ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, - "/responseBody/postConstWithNullResponseBodyForContentTypes": ResponseBodyPostConstWithNullResponseBodyForContentTypes, "/responseBody/postDateFormatResponseBodyForContentTypes": ResponseBodyPostDateFormatResponseBodyForContentTypes, "/responseBody/postDateTimeFormatResponseBodyForContentTypes": ResponseBodyPostDateTimeFormatResponseBodyForContentTypes, "/responseBody/postDurationFormatResponseBodyForContentTypes": ResponseBodyPostDurationFormatResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py deleted file mode 100644 index f388fb654f9..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import ApiForPost - - -class RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py deleted file mode 100644 index fc576b4c1b2..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_validation_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import ApiForPost - - -class RequestBodyPostConstValidationRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py deleted file mode 100644 index 40aa28bd2b8..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import ApiForPost - - -class RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py deleted file mode 100644 index f0fa70bb2bb..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with1_does_not_match_true_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import ApiForPost - - -class RequestBodyPostConstWith1DoesNotMatchTrueRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py deleted file mode 100644 index dc70f3be2c6..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import ApiForPost - - -class RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py deleted file mode 100644 index 79a85d45b32..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_with_null_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import ApiForPost - - -class RequestBodyPostConstWithNullRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py deleted file mode 100644 index 408fdca6554..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py deleted file mode 100644 index 8d58efc990b..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_validation_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostConstValidationResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py deleted file mode 100644 index 9c7e02db281..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py deleted file mode 100644 index 1b84b2f07a1..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py deleted file mode 100644 index 962fe170ba5..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py deleted file mode 100644 index a566e065fdf..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_with_null_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostConstWithNullResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py index 179f4b12a8a..c47a8884b5d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py @@ -4,37 +4,13 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody -from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody -from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody -from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody -from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody -from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody -from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes class ConstApi( - PostConstValidationResponseBodyForContentTypes, - PostConstWith1DoesNotMatchTrueRequestBody, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, - PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, - PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostConstNulCharactersInStringsResponseBodyForContentTypes, - PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostConstNulCharactersInStringsRequestBody, - PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, - PostConstWithNullRequestBody, - PostConstValidationRequestBody, - PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, - PostConstWithNullResponseBodyForContentTypes, ): """NOTE: This class is auto generated by OpenAPI JSON Schema Generator Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index 737b722a71a..ddf810ad7fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -26,7 +26,6 @@ from unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.operation import PostOneofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody @@ -47,7 +46,6 @@ from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody -from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody @@ -55,12 +53,10 @@ from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.operation import PostOneofComplexTypesRequestBody -from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_default_validation_request_body.post.operation import PostRequiredDefaultValidationRequestBody from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -70,7 +66,6 @@ from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody -from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody @@ -127,8 +122,6 @@ from unit_test_api.paths.request_body_post_additionalproperties_with_schema_request_body.post.operation import PostAdditionalpropertiesWithSchemaRequestBody from unit_test_api.paths.response_body_post_by_small_number_response_body_for_content_types.post.operation import PostBySmallNumberResponseBodyForContentTypes from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody -from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody -from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes @@ -143,7 +136,6 @@ from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody -from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody @@ -154,7 +146,6 @@ from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody -from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.operation import PostAllofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody @@ -195,7 +186,6 @@ from unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.operation import PostForbiddenPropertyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_type_array_object_or_null_response_body_for_content_types.post.operation import PostTypeArrayObjectOrNullResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxitems_validation_response_body_for_content_types.post.operation import PostMaxitemsValidationResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.response_body_post_integer_type_matches_integers_response_body_for_content_types.post.operation import PostIntegerTypeMatchesIntegersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.operation import PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes @@ -204,7 +194,6 @@ from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody @@ -213,7 +202,6 @@ from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.operation import PostEnumWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types.post.operation import PostItemsWithNullInstanceElementsResponseBodyForContentTypes @@ -247,7 +235,6 @@ class ContentTypeJsonApi( PostOneofResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, @@ -268,7 +255,6 @@ class ContentTypeJsonApi( PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, @@ -276,12 +262,10 @@ class ContentTypeJsonApi( PostIriFormatRequestBody, PostMaximumValidationResponseBodyForContentTypes, PostOneofComplexTypesRequestBody, - PostConstValidationResponseBodyForContentTypes, PostRequiredDefaultValidationRequestBody, PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, - PostConstWith1DoesNotMatchTrueRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -291,7 +275,6 @@ class ContentTypeJsonApi( PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostMinlengthValidationRequestBody, - PostConstWithNullRequestBody, PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, @@ -348,8 +331,6 @@ class ContentTypeJsonApi( PostAdditionalpropertiesWithSchemaRequestBody, PostBySmallNumberResponseBodyForContentTypes, PostEmailFormatRequestBody, - PostConstValidationRequestBody, - PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, PostEmailFormatResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, @@ -364,7 +345,6 @@ class ContentTypeJsonApi( PostTimeFormatRequestBody, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, - PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, PostOneofWithEmptySchemaRequestBody, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, PostAllofRequestBody, @@ -375,7 +355,6 @@ class ContentTypeJsonApi( PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostPropertiesWithEscapedCharactersRequestBody, - PostConstWithNullResponseBodyForContentTypes, PostAllofWithOneEmptySchemaRequestBody, PostObjectPropertiesValidationRequestBody, PostUriReferenceFormatRequestBody, @@ -416,7 +395,6 @@ class ContentTypeJsonApi( PostForbiddenPropertyResponseBodyForContentTypes, PostTypeArrayObjectOrNullResponseBodyForContentTypes, PostMaxitemsValidationResponseBodyForContentTypes, - PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostIntegerTypeMatchesIntegersResponseBodyForContentTypes, PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, @@ -425,7 +403,6 @@ class ContentTypeJsonApi( PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostRequiredValidationResponseBodyForContentTypes, - PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, PostUriTemplateFormatRequestBody, PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, @@ -434,7 +411,6 @@ class ContentTypeJsonApi( PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, - PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, PostEnumWithEscapedCharactersResponseBodyForContentTypes, PostNumberTypeMatchesNumbersResponseBodyForContentTypes, PostItemsWithNullInstanceElementsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 0ba2b07b532..24bf79a3e16 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -17,8 +17,6 @@ from unit_test_api.paths.request_body_post_anyof_with_one_empty_schema_request_body.post.operation import PostAnyofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody from unit_test_api.paths.request_body_post_null_type_matches_only_the_null_object_request_body.post.operation import PostNullTypeMatchesOnlyTheNullObjectRequestBody -from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody -from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody @@ -37,7 +35,6 @@ from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody from unit_test_api.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody -from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody @@ -59,7 +56,6 @@ from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody -from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody @@ -72,7 +68,6 @@ from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody -from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody @@ -93,7 +88,6 @@ from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody -from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody @@ -129,8 +123,6 @@ class OperationRequestBodyApi( PostAnyofWithOneEmptySchemaRequestBody, PostEmailFormatRequestBody, PostNullTypeMatchesOnlyTheNullObjectRequestBody, - PostConstValidationRequestBody, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, @@ -149,7 +141,6 @@ class OperationRequestBodyApi( PostTimeFormatRequestBody, PostItemsDoesNotLookInApplicatorsValidCaseRequestBody, PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, - PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, PostIdnHostnameFormatRequestBody, PostOneofWithEmptySchemaRequestBody, PostUriFormatRequestBody, @@ -171,7 +162,6 @@ class OperationRequestBodyApi( PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostRequiredWithEscapedCharactersRequestBody, - PostConstWith1DoesNotMatchTrueRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostByNumberRequestBody, @@ -184,7 +174,6 @@ class OperationRequestBodyApi( PostRequiredWithEmptyArrayRequestBody, PostMinimumValidationRequestBody, PostMinlengthValidationRequestBody, - PostConstWithNullRequestBody, PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, @@ -205,7 +194,6 @@ class OperationRequestBodyApi( PostIpv6FormatRequestBody, PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, - PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostRequiredValidationRequestBody, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 1456613a484..066dcf6b902 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -26,7 +26,6 @@ from unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.operation import PostOneofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody @@ -47,7 +46,6 @@ from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody -from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody @@ -55,12 +53,10 @@ from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.operation import PostOneofComplexTypesRequestBody -from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_default_validation_request_body.post.operation import PostRequiredDefaultValidationRequestBody from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post.operation import PostConstWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -70,7 +66,6 @@ from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody -from unit_test_api.paths.request_body_post_const_with_null_request_body.post.operation import PostConstWithNullRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody @@ -127,8 +122,6 @@ from unit_test_api.paths.request_body_post_additionalproperties_with_schema_request_body.post.operation import PostAdditionalpropertiesWithSchemaRequestBody from unit_test_api.paths.response_body_post_by_small_number_response_body_for_content_types.post.operation import PostBySmallNumberResponseBodyForContentTypes from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody -from unit_test_api.paths.request_body_post_const_validation_request_body.post.operation import PostConstValidationRequestBody -from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes @@ -143,7 +136,6 @@ from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody -from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody @@ -154,7 +146,6 @@ from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody -from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.operation import PostAllofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody @@ -195,7 +186,6 @@ from unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.operation import PostForbiddenPropertyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_type_array_object_or_null_response_body_for_content_types.post.operation import PostTypeArrayObjectOrNullResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxitems_validation_response_body_for_content_types.post.operation import PostMaxitemsValidationResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post.operation import PostConstWith20MatchesIntegerAndFloatTypesRequestBody from unit_test_api.paths.response_body_post_integer_type_matches_integers_response_body_for_content_types.post.operation import PostIntegerTypeMatchesIntegersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.operation import PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes @@ -204,7 +194,6 @@ from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody @@ -213,7 +202,6 @@ from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.operation import PostEnumWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types.post.operation import PostItemsWithNullInstanceElementsResponseBodyForContentTypes @@ -247,7 +235,6 @@ class PathPostApi( PostOneofResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, @@ -268,7 +255,6 @@ class PathPostApi( PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, @@ -276,12 +262,10 @@ class PathPostApi( PostIriFormatRequestBody, PostMaximumValidationResponseBodyForContentTypes, PostOneofComplexTypesRequestBody, - PostConstValidationResponseBodyForContentTypes, PostRequiredDefaultValidationRequestBody, PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, - PostConstWith1DoesNotMatchTrueRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -291,7 +275,6 @@ class PathPostApi( PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostMinlengthValidationRequestBody, - PostConstWithNullRequestBody, PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, @@ -348,8 +331,6 @@ class PathPostApi( PostAdditionalpropertiesWithSchemaRequestBody, PostBySmallNumberResponseBodyForContentTypes, PostEmailFormatRequestBody, - PostConstValidationRequestBody, - PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, PostEmailFormatResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, @@ -364,7 +345,6 @@ class PathPostApi( PostTimeFormatRequestBody, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, - PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody, PostOneofWithEmptySchemaRequestBody, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, PostAllofRequestBody, @@ -375,7 +355,6 @@ class PathPostApi( PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostPropertiesWithEscapedCharactersRequestBody, - PostConstWithNullResponseBodyForContentTypes, PostAllofWithOneEmptySchemaRequestBody, PostObjectPropertiesValidationRequestBody, PostUriReferenceFormatRequestBody, @@ -416,7 +395,6 @@ class PathPostApi( PostForbiddenPropertyResponseBodyForContentTypes, PostTypeArrayObjectOrNullResponseBodyForContentTypes, PostMaxitemsValidationResponseBodyForContentTypes, - PostConstWith20MatchesIntegerAndFloatTypesRequestBody, PostIntegerTypeMatchesIntegersResponseBodyForContentTypes, PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, @@ -425,7 +403,6 @@ class PathPostApi( PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostRequiredValidationResponseBodyForContentTypes, - PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, PostUriTemplateFormatRequestBody, PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, @@ -434,7 +411,6 @@ class PathPostApi( PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, - PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, PostEnumWithEscapedCharactersResponseBodyForContentTypes, PostNumberTypeMatchesNumbersResponseBodyForContentTypes, PostItemsWithNullInstanceElementsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 1f687f7083c..a24f5d6ea05 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -26,7 +26,6 @@ from unit_test_api.paths.response_body_post_simple_enum_validation_response_body_for_content_types.post.operation import PostSimpleEnumValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_response_body_for_content_types.post.operation import PostOneofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post.operation import PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes @@ -45,13 +44,10 @@ from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post.operation import PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post.operation import PostConstWithNullResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post.operation import PostConstValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes @@ -95,7 +91,6 @@ from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post.operation import PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes @@ -105,7 +100,6 @@ from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post.operation import PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types.post.operation import PostEnumWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes @@ -138,7 +132,6 @@ class ResponseContentContentTypeSchemaApi( PostSimpleEnumValidationResponseBodyForContentTypes, PostOneofResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, - PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes, PostEmailFormatResponseBodyForContentTypes, PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, @@ -157,13 +150,10 @@ class ResponseContentContentTypeSchemaApi( PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, - PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, - PostConstWithNullResponseBodyForContentTypes, PostMaximumValidationResponseBodyForContentTypes, - PostConstValidationResponseBodyForContentTypes, PostOneofWithBaseSchemaResponseBodyForContentTypes, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, @@ -207,7 +197,6 @@ class ResponseContentContentTypeSchemaApi( PostMinimumValidationResponseBodyForContentTypes, PostRequiredValidationResponseBodyForContentTypes, PostDateFormatResponseBodyForContentTypes, - PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, PostRelativeJsonPointerFormatResponseBodyForContentTypes, PostUuidFormatResponseBodyForContentTypes, @@ -217,7 +206,6 @@ class ResponseContentContentTypeSchemaApi( PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, - PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, PostEnumWithEscapedCharactersResponseBodyForContentTypes, PostNumberTypeMatchesNumbersResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py deleted file mode 100644 index 1102ee92f7a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_float_and_integers_are_equal_up_to64_bit_representation_limits.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - - -class ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsConst: - - @schemas.classproperty - def POSITIVE_9007199254740992(cls) -> typing.Literal["9007199254740992"]: - return ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate("9007199254740992") - - -@dataclasses.dataclass(frozen=True) -class ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits( - schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - # any type - const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( - default_factory=lambda: { - "9007199254740992": "POSITIVE_9007199254740992", - } - ) - const = ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsConst - diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py deleted file mode 100644 index 9cec31dc4d3..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_validation.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - - -class ConstValidationConst: - - @schemas.classproperty - def POSITIVE_2(cls) -> typing.Literal["2"]: - return ConstValidation.validate("2") - - -@dataclasses.dataclass(frozen=True) -class ConstValidation( - schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - # any type - const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( - default_factory=lambda: { - "2": "POSITIVE_2", - } - ) - const = ConstValidationConst - diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py deleted file mode 100644 index 55843897f44..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with0_does_not_match_other_zero_like_types.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - - -class ConstWith0DoesNotMatchOtherZeroLikeTypesConst: - - @schemas.classproperty - def POSITIVE_0(cls) -> typing.Literal["0"]: - return ConstWith0DoesNotMatchOtherZeroLikeTypes.validate("0") - - -@dataclasses.dataclass(frozen=True) -class ConstWith0DoesNotMatchOtherZeroLikeTypes( - schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - # any type - const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( - default_factory=lambda: { - "0": "POSITIVE_0", - } - ) - const = ConstWith0DoesNotMatchOtherZeroLikeTypesConst - diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py deleted file mode 100644 index 65e6aca1823..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with1_does_not_match_true.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - - -class ConstWith1DoesNotMatchTrueConst: - - @schemas.classproperty - def POSITIVE_1(cls) -> typing.Literal["1"]: - return ConstWith1DoesNotMatchTrue.validate("1") - - -@dataclasses.dataclass(frozen=True) -class ConstWith1DoesNotMatchTrue( - schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - # any type - const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( - default_factory=lambda: { - "1": "POSITIVE_1", - } - ) - const = ConstWith1DoesNotMatchTrueConst - diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py deleted file mode 100644 index 95638ad7b9d..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with20_matches_integer_and_float_types.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - - -class ConstWith20MatchesIntegerAndFloatTypesConst: - - @schemas.classproperty - def NEGATIVE_2_PT_0(cls) -> typing.Literal["-2.0"]: - return ConstWith20MatchesIntegerAndFloatTypes.validate("-2.0") - - -@dataclasses.dataclass(frozen=True) -class ConstWith20MatchesIntegerAndFloatTypes( - schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - # any type - const_value_to_name: typing.Mapping[typing.Union[int, float, str, schemas.Bool, None], str] = dataclasses.field( - default_factory=lambda: { - "-2.0": "NEGATIVE_2_PT_0", - } - ) - const = ConstWith20MatchesIntegerAndFloatTypesConst - diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py deleted file mode 100644 index d9914add075..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/const_with_null.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -ConstWithNull: typing_extensions.TypeAlias = schemas.AnyTypeSchema diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 3569c051577..1eb55074d69 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -33,13 +33,7 @@ from unit_test_api.components.schema.by_int import ByInt from unit_test_api.components.schema.by_number import ByNumber from unit_test_api.components.schema.by_small_number import BySmallNumber -from unit_test_api.components.schema.const_float_and_integers_are_equal_up_to64_bit_representation_limits import ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits from unit_test_api.components.schema.const_nul_characters_in_strings import ConstNulCharactersInStrings -from unit_test_api.components.schema.const_validation import ConstValidation -from unit_test_api.components.schema.const_with0_does_not_match_other_zero_like_types import ConstWith0DoesNotMatchOtherZeroLikeTypes -from unit_test_api.components.schema.const_with1_does_not_match_true import ConstWith1DoesNotMatchTrue -from unit_test_api.components.schema.const_with20_matches_integer_and_float_types import ConstWith20MatchesIntegerAndFloatTypes -from unit_test_api.components.schema.const_with_null import ConstWithNull from unit_test_api.components.schema.date_format import DateFormat from unit_test_api.components.schema.date_time_format import DateTimeFormat from unit_test_api.components.schema.duration_format import DurationFormat diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py deleted file mode 100644 index b33c9f8e06b..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body import RequestBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody - -path = "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py deleted file mode 100644 index f9f10e8405c..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_float_and_integers_are_equal_up_to64_bit_representation_limits - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index bc38ca4fe5a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_float_and_integers_are_equal_up_to64_bit_representation_limits -Schema2: typing_extensions.TypeAlias = const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py deleted file mode 100644 index 079da37166b..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_const_validation_request_body import RequestBodyPostConstValidationRequestBody - -path = "/requestBody/postConstValidationRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py deleted file mode 100644 index ef28d52be2e..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_validation - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_validation_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_validation_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_validation_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstValidationRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_validation_request_body = BaseApi._post_const_validation_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_validation_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index b16be3bde14..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_validation -Schema2: typing_extensions.TypeAlias = const_validation.ConstValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_validation_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py deleted file mode 100644 index 404de09c6e3..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body import RequestBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody - -path = "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py deleted file mode 100644 index de375d64006..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with0_does_not_match_other_zero_like_types - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with0_does_not_match_other_zero_like_types_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with0_does_not_match_other_zero_like_types_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with0_does_not_match_other_zero_like_types_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with0_does_not_match_other_zero_like_types_request_body = BaseApi._post_const_with0_does_not_match_other_zero_like_types_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with0_does_not_match_other_zero_like_types_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index ca560fd1aad..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with0_does_not_match_other_zero_like_types -Schema2: typing_extensions.TypeAlias = const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py deleted file mode 100644 index c7777065f25..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_const_with1_does_not_match_true_request_body import RequestBodyPostConstWith1DoesNotMatchTrueRequestBody - -path = "/requestBody/postConstWith1DoesNotMatchTrueRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py deleted file mode 100644 index debfc4a7e30..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with1_does_not_match_true - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with1_does_not_match_true_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with1_does_not_match_true_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with1_does_not_match_true_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWith1DoesNotMatchTrueRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with1_does_not_match_true_request_body = BaseApi._post_const_with1_does_not_match_true_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with1_does_not_match_true_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index 54a9d3b1d15..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with1_does_not_match_true -Schema2: typing_extensions.TypeAlias = const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py deleted file mode 100644 index a17437443c0..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body import RequestBodyPostConstWith20MatchesIntegerAndFloatTypesRequestBody - -path = "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py deleted file mode 100644 index e4749a1a719..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with20_matches_integer_and_float_types - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with20_matches_integer_and_float_types_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with20_matches_integer_and_float_types_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with20_matches_integer_and_float_types_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWith20MatchesIntegerAndFloatTypesRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with20_matches_integer_and_float_types_request_body = BaseApi._post_const_with20_matches_integer_and_float_types_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with20_matches_integer_and_float_types_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index 8c88ab5a34b..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with20_matches_integer_and_float_types -Schema2: typing_extensions.TypeAlias = const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with20_matches_integer_and_float_types_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py deleted file mode 100644 index aaf3601c9bb..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_const_with_null_request_body import RequestBodyPostConstWithNullRequestBody - -path = "/requestBody/postConstWithNullRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py deleted file mode 100644 index 489f055c0a0..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with_null - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with_null_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with_null_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with_null_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWithNullRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with_null_request_body = BaseApi._post_const_with_null_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with_null_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index 353736b755a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with_null -Schema2: typing_extensions.TypeAlias = const_with_null.ConstWithNull diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_with_null_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py deleted file mode 100644 index 4ae828980ab..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types import ResponseBodyPostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes - -path = "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py deleted file mode 100644 index df9246caa69..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index bc38ca4fe5a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_float_and_integers_are_equal_up_to64_bit_representation_limits -Schema2: typing_extensions.TypeAlias = const_float_and_integers_are_equal_up_to64_bit_representation_limits.ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py deleted file mode 100644 index ffd67e9bb1a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_const_validation_response_body_for_content_types import ResponseBodyPostConstValidationResponseBodyForContentTypes - -path = "/responseBody/postConstValidationResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py deleted file mode 100644 index 4c012634fd2..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_validation_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_validation_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_validation_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstValidationResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_validation_response_body_for_content_types = BaseApi._post_const_validation_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_validation_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index b16be3bde14..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_validation -Schema2: typing_extensions.TypeAlias = const_validation.ConstValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py deleted file mode 100644 index bc3f7c73809..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types import ResponseBodyPostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes - -path = "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py deleted file mode 100644 index 47e5335fb4a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types = BaseApi._post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index ca560fd1aad..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with0_does_not_match_other_zero_like_types -Schema2: typing_extensions.TypeAlias = const_with0_does_not_match_other_zero_like_types.ConstWith0DoesNotMatchOtherZeroLikeTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py deleted file mode 100644 index 130437c0768..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types import ResponseBodyPostConstWith1DoesNotMatchTrueResponseBodyForContentTypes - -path = "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py deleted file mode 100644 index 537a54f827a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with1_does_not_match_true_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with1_does_not_match_true_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with1_does_not_match_true_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with1_does_not_match_true_response_body_for_content_types = BaseApi._post_const_with1_does_not_match_true_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with1_does_not_match_true_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index 54a9d3b1d15..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with1_does_not_match_true -Schema2: typing_extensions.TypeAlias = const_with1_does_not_match_true.ConstWith1DoesNotMatchTrue diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py deleted file mode 100644 index c59f704c84a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types import ResponseBodyPostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes - -path = "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py deleted file mode 100644 index 45b61e1baba..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with20_matches_integer_and_float_types_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with20_matches_integer_and_float_types_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with20_matches_integer_and_float_types_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with20_matches_integer_and_float_types_response_body_for_content_types = BaseApi._post_const_with20_matches_integer_and_float_types_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with20_matches_integer_and_float_types_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index 8c88ab5a34b..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with20_matches_integer_and_float_types -Schema2: typing_extensions.TypeAlias = const_with20_matches_integer_and_float_types.ConstWith20MatchesIntegerAndFloatTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py deleted file mode 100644 index e687881a068..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_const_with_null_response_body_for_content_types import ResponseBodyPostConstWithNullResponseBodyForContentTypes - -path = "/responseBody/postConstWithNullResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py deleted file mode 100644 index 175472c6251..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_const_with_null_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_const_with_null_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_const_with_null_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostConstWithNullResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_const_with_null_response_body_for_content_types = BaseApi._post_const_with_null_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_const_with_null_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index 353736b755a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_with_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import const_with_null -Schema2: typing_extensions.TypeAlias = const_with_null.ConstWithNull diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py deleted file mode 100644 index 2d797855ba1..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_float_and_integers_are_equal_up_to64_bit_representation_limits.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.const_float_and_integers_are_equal_up_to64_bit_representation_limits import ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits -from unit_test_api.configurations import schema_configuration - - -class TestConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits(unittest.TestCase): - """ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_integer_is_valid_passes(self): - # integer is valid - ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( - 9007199254740992, - configuration=self.configuration - ) - - def test_integer_minus_one_is_invalid_fails(self): - # integer minus one is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( - 9007199254740991, - configuration=self.configuration - ) - - def test_float_is_valid_passes(self): - # float is valid - ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( - 9.007199254740992E15, - configuration=self.configuration - ) - - def test_float_minus_one_is_invalid_fails(self): - # float minus one is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimits.validate( - 9.007199254740991E15, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py deleted file mode 100644 index 34f0110bb61..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_validation.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.const_validation import ConstValidation -from unit_test_api.configurations import schema_configuration - - -class TestConstValidation(unittest.TestCase): - """ConstValidation unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_another_value_is_invalid_fails(self): - # another value is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstValidation.validate( - 5, - configuration=self.configuration - ) - - def test_another_type_is_invalid_fails(self): - # another type is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstValidation.validate( - "a", - configuration=self.configuration - ) - - def test_same_value_is_valid_passes(self): - # same value is valid - ConstValidation.validate( - 2, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py deleted file mode 100644 index d4c56424255..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with0_does_not_match_other_zero_like_types.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.const_with0_does_not_match_other_zero_like_types import ConstWith0DoesNotMatchOtherZeroLikeTypes -from unit_test_api.configurations import schema_configuration - - -class TestConstWith0DoesNotMatchOtherZeroLikeTypes(unittest.TestCase): - """ConstWith0DoesNotMatchOtherZeroLikeTypes unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_empty_array_is_invalid_fails(self): - # empty array is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( - [ - ], - configuration=self.configuration - ) - - def test_integer_zero_is_valid_passes(self): - # integer zero is valid - ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( - 0, - configuration=self.configuration - ) - - def test_float_zero_is_valid_passes(self): - # float zero is valid - ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( - 0.0, - configuration=self.configuration - ) - - def test_empty_object_is_invalid_fails(self): - # empty object is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( - { - }, - configuration=self.configuration - ) - - def test_empty_string_is_invalid_fails(self): - # empty string is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( - "", - configuration=self.configuration - ) - - def test_false_is_invalid_fails(self): - # false is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith0DoesNotMatchOtherZeroLikeTypes.validate( - False, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py deleted file mode 100644 index 1f94e24c93f..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with1_does_not_match_true.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.const_with1_does_not_match_true import ConstWith1DoesNotMatchTrue -from unit_test_api.configurations import schema_configuration - - -class TestConstWith1DoesNotMatchTrue(unittest.TestCase): - """ConstWith1DoesNotMatchTrue unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_true_is_invalid_fails(self): - # true is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith1DoesNotMatchTrue.validate( - True, - configuration=self.configuration - ) - - def test_integer_one_is_valid_passes(self): - # integer one is valid - ConstWith1DoesNotMatchTrue.validate( - 1, - configuration=self.configuration - ) - - def test_float_one_is_valid_passes(self): - # float one is valid - ConstWith1DoesNotMatchTrue.validate( - 1.0, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py deleted file mode 100644 index d5a52ea4d09..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with20_matches_integer_and_float_types.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.const_with20_matches_integer_and_float_types import ConstWith20MatchesIntegerAndFloatTypes -from unit_test_api.configurations import schema_configuration - - -class TestConstWith20MatchesIntegerAndFloatTypes(unittest.TestCase): - """ConstWith20MatchesIntegerAndFloatTypes unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_float200001_is_invalid_fails(self): - # float -2.00001 is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith20MatchesIntegerAndFloatTypes.validate( - -2.00001, - configuration=self.configuration - ) - - def test_integer2_is_invalid_fails(self): - # integer 2 is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith20MatchesIntegerAndFloatTypes.validate( - 2, - configuration=self.configuration - ) - - def test_float20_is_valid_passes(self): - # float -2.0 is valid - ConstWith20MatchesIntegerAndFloatTypes.validate( - -2.0, - configuration=self.configuration - ) - - def test_float20_is_invalid_fails(self): - # float 2.0 is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWith20MatchesIntegerAndFloatTypes.validate( - 2.0, - configuration=self.configuration - ) - - def test_integer2_is_valid_passes(self): - # integer -2 is valid - ConstWith20MatchesIntegerAndFloatTypes.validate( - -2, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py deleted file mode 100644 index 8f0b81b43dd..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_const_with_null.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.const_with_null import ConstWithNull -from unit_test_api.configurations import schema_configuration - - -class TestConstWithNull(unittest.TestCase): - """ConstWithNull unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_null_is_valid_passes(self): - # null is valid - ConstWithNull.validate( - None, - configuration=self.configuration - ) - - def test_not_null_is_invalid_fails(self): - # not null is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - ConstWithNull.validate( - 0, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py deleted file mode 100644 index 56ac55a2fce..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body/test_post.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_integer_is_valid_passes(self): - content_type = 'application/json' - # integer is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9007199254740992 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_integer_minus_one_is_invalid_fails(self): - content_type = 'application/json' - # integer minus one is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9007199254740991 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_float_is_valid_passes(self): - content_type = 'application/json' - # float is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9.007199254740992E15 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_float_minus_one_is_invalid_fails(self): - content_type = 'application/json' - # float minus one is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9.007199254740991E15 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py deleted file mode 100644 index 83b2d816974..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_validation_request_body/test_post.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_const_validation_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_another_value_is_invalid_fails(self): - content_type = 'application/json' - # another value is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 5 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_another_type_is_invalid_fails(self): - content_type = 'application/json' - # another type is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - "a" - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_same_value_is_valid_passes(self): - content_type = 'application/json' - # same value is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 2 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstValidationRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py deleted file mode 100644 index 695634063dd..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with0_does_not_match_other_zero_like_types_request_body/test_post.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_const_with0_does_not_match_other_zero_like_types_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_empty_array_is_invalid_fails(self): - content_type = 'application/json' - # empty array is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - [ - ] - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_integer_zero_is_valid_passes(self): - content_type = 'application/json' - # integer zero is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 0 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_float_zero_is_valid_passes(self): - content_type = 'application/json' - # float zero is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 0.0 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith0DoesNotMatchOtherZeroLikeTypesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_empty_object_is_invalid_fails(self): - content_type = 'application/json' - # empty object is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - } - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_empty_string_is_invalid_fails(self): - content_type = 'application/json' - # empty string is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - "" - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_false_is_invalid_fails(self): - content_type = 'application/json' - # false is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - False - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py deleted file mode 100644 index 622f9014334..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with1_does_not_match_true_request_body/test_post.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_const_with1_does_not_match_true_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_true_is_invalid_fails(self): - content_type = 'application/json' - # true is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - True - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_integer_one_is_valid_passes(self): - content_type = 'application/json' - # integer one is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 1 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith1DoesNotMatchTrueRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_float_one_is_valid_passes(self): - content_type = 'application/json' - # float one is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 1.0 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith1DoesNotMatchTrueRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py deleted file mode 100644 index f7b69580096..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with20_matches_integer_and_float_types_request_body/test_post.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_const_with20_matches_integer_and_float_types_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_float200001_is_invalid_fails(self): - content_type = 'application/json' - # float -2.00001 is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - -2.00001 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_integer2_is_invalid_fails(self): - content_type = 'application/json' - # integer 2 is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 2 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_float20_is_valid_passes(self): - content_type = 'application/json' - # float -2.0 is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - -2.0 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_float20_is_invalid_fails(self): - content_type = 'application/json' - # float 2.0 is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 2.0 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_integer2_is_valid_passes(self): - content_type = 'application/json' - # integer -2 is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - -2 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWith20MatchesIntegerAndFloatTypesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py deleted file mode 100644 index ad8c502bf2e..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_const_with_null_request_body/test_post.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_const_with_null_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_null_is_valid_passes(self): - content_type = 'application/json' - # null is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - None - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postConstWithNullRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_not_null_is_invalid_fails(self): - content_type = 'application/json' - # not null is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 0 - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py index fdc63430555..a2095252e52 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_idn_hostname_format_request_body/test_post.py @@ -37,7 +37,7 @@ def test_invalid_idn_hostname_string_is_only_an_annotation_by_default_passes(sel # invalid idn-hostname string is only an annotation by default with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "〮실례.테스트" + "〮실례.테스트" ) body = post.request_body.RequestBody.content["application/json"].schema.validate( payload, diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py index a85e2dcdf3f..ae69c8dfa6b 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py @@ -96,7 +96,7 @@ def test_invalid_iri_reference_string_is_only_an_annotation_by_default_passes(se # invalid iri-reference string is only an annotation by default with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "\\\\WINDOWS\\filëßåré" + "\\\\WINDOWS\\filëßåré" ) body = post.request_body.RequestBody.content["application/json"].schema.validate( payload, diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py deleted file mode 100644 index 0157890e00c..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_const_float_and_integers_are_equal_up_to64_bit_representation_limits_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_integer_is_valid_passes(self): - # integer is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9007199254740992 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_integer_minus_one_is_invalid_fails(self): - # integer minus one is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9007199254740991 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_float_is_valid_passes(self): - # float is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9.007199254740992E15 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_float_minus_one_is_invalid_fails(self): - # float minus one is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 9.007199254740991E15 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstFloatAndIntegersAreEqualUpTo64BitRepresentationLimitsResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py deleted file mode 100644 index 26483a0bcbc..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_validation_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_const_validation_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_another_value_is_invalid_fails(self): - # another value is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 5 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstValidationResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_another_type_is_invalid_fails(self): - # another type is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - "a" - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstValidationResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_same_value_is_valid_passes(self): - # same value is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 2 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstValidationResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py deleted file mode 100644 index b07f6c72c29..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_const_with0_does_not_match_other_zero_like_types_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_empty_array_is_invalid_fails(self): - # empty array is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - [ - ] - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_integer_zero_is_valid_passes(self): - # integer zero is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 0 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_float_zero_is_valid_passes(self): - # float zero is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 0.0 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_empty_object_is_invalid_fails(self): - # empty object is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_empty_string_is_invalid_fails(self): - # empty string is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - "" - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_false_is_invalid_fails(self): - # false is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - False - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith0DoesNotMatchOtherZeroLikeTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py deleted file mode 100644 index 6800c6aa356..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with1_does_not_match_true_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_const_with1_does_not_match_true_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_true_is_invalid_fails(self): - # true is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - True - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_integer_one_is_valid_passes(self): - # integer one is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 1 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_float_one_is_valid_passes(self): - # float one is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 1.0 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith1DoesNotMatchTrueResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py deleted file mode 100644 index d8b940196d9..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_const_with20_matches_integer_and_float_types_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_float200001_is_invalid_fails(self): - # float -2.00001 is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - -2.00001 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_integer2_is_invalid_fails(self): - # integer 2 is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 2 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_float20_is_valid_passes(self): - # float -2.0 is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - -2.0 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_float20_is_invalid_fails(self): - # float 2.0 is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 2.0 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_integer2_is_valid_passes(self): - # integer -2 is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - -2 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWith20MatchesIntegerAndFloatTypesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py deleted file mode 100644 index fd8d3506c2f..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_const_with_null_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_const_with_null_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_null_is_valid_passes(self): - # null is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - None - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWithNullResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_not_null_is_invalid_fails(self): - # not null is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 0 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postConstWithNullResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py index d19f5cd2ea7..115bbc8060d 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_idn_hostname_format_response_body_for_content_types/test_post.py @@ -39,7 +39,7 @@ def test_invalid_idn_hostname_string_is_only_an_annotation_by_default_passes(sel with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "〮실례.테스트" + "〮실례.테스트" ) mock_request.return_value = self.response( self.json_bytes(payload), diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py index 85b81372ee1..2be416be6e5 100644 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py @@ -98,7 +98,7 @@ def test_invalid_iri_reference_string_is_only_an_annotation_by_default_passes(se with patch.object(urllib3.PoolManager, 'request') as mock_request: payload = ( - "\\\\WINDOWS\\filëßåré" + "\\\\WINDOWS\\filëßåré" ) mock_request.return_value = self.response( self.json_bytes(payload), From bdf3d1f1b0144584b5177680662a161d5fd77641 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 13:38:12 -0700 Subject: [PATCH 09/34] Adds contains samples in test spec --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 411 ++++++++++++++++++ .../3_1/unit_test_spec/spec_writer.py | 3 +- 2 files changed, 412 insertions(+), 2 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 93852860cb8..ce48e159820 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -15,6 +15,7 @@ tags: - name: allOf - name: anyOf - name: const +- name: contains - name: enum - name: format - name: items @@ -756,6 +757,258 @@ paths: - path.post - contentType_json - const + /requestBody/postContainsKeywordValidationRequestBody: + post: + operationId: postContainsKeywordValidationRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordValidation' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postContainsKeywordValidationResponseBodyForContentTypes: + post: + operationId: postContainsKeywordValidationResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordValidation' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains + /requestBody/postContainsKeywordWithConstKeywordRequestBody: + post: + operationId: postContainsKeywordWithConstKeywordRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordWithConstKeyword' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordWithConstKeyword' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postContainsKeywordWithConstKeywordResponseBodyForContentTypes: + post: + operationId: postContainsKeywordWithConstKeywordResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordWithConstKeyword' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordWithConstKeyword' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains + /requestBody/postContainsKeywordWithBooleanSchemaTrueRequestBody: + post: + operationId: postContainsKeywordWithBooleanSchemaTrueRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaTrue' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaTrue' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postContainsKeywordWithBooleanSchemaTrueResponseBodyForContentTypes: + post: + operationId: postContainsKeywordWithBooleanSchemaTrueResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaTrue' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaTrue' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains + /requestBody/postContainsKeywordWithBooleanSchemaFalseRequestBody: + post: + operationId: postContainsKeywordWithBooleanSchemaFalseRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaFalse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaFalse' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postContainsKeywordWithBooleanSchemaFalseResponseBodyForContentTypes: + post: + operationId: postContainsKeywordWithBooleanSchemaFalseResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaFalse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaFalse' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains + /requestBody/postItemsContainsRequestBody: + post: + operationId: postItemsContainsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ItemsContains' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ItemsContains' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postItemsContainsResponseBodyForContentTypes: + post: + operationId: postItemsContainsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ItemsContains' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ItemsContains' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains + /requestBody/postContainsWithFalseIfSubschemaRequestBody: + post: + operationId: postContainsWithFalseIfSubschemaRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsWithFalseIfSubschema' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsWithFalseIfSubschema' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postContainsWithFalseIfSubschemaResponseBodyForContentTypes: + post: + operationId: postContainsWithFalseIfSubschemaResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsWithFalseIfSubschema' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsWithFalseIfSubschema' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains + /requestBody/postContainsWithNullInstanceElementsRequestBody: + post: + operationId: postContainsWithNullInstanceElementsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsWithNullInstanceElements' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsWithNullInstanceElements' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - contains + /responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes: + post: + operationId: postContainsWithNullInstanceElementsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ContainsWithNullInstanceElements' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ContainsWithNullInstanceElements' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - contains /requestBody/postSimpleEnumValidationRequestBody: post: operationId: postSimpleEnumValidationRequestBody @@ -3878,6 +4131,35 @@ components: ConstNulCharactersInStrings: $schema: https://json-schema.org/draft/2020-12/schema const: "hello\0there" + ContainsKeywordValidation: + $schema: https://json-schema.org/draft/2020-12/schema + contains: + minimum: 5 + ContainsKeywordWithConstKeyword: + $schema: https://json-schema.org/draft/2020-12/schema + contains: + const: 5 + ContainsKeywordWithBooleanSchemaTrue: + $schema: https://json-schema.org/draft/2020-12/schema + contains: true + ContainsKeywordWithBooleanSchemaFalse: + $schema: https://json-schema.org/draft/2020-12/schema + contains: false + ItemsContains: + $schema: https://json-schema.org/draft/2020-12/schema + items: + multipleOf: 2 + contains: + multipleOf: 3 + ContainsWithFalseIfSubschema: + $schema: https://json-schema.org/draft/2020-12/schema + contains: + if: false + else: true + ContainsWithNullInstanceElements: + $schema: https://json-schema.org/draft/2020-12/schema + contains: + type: 'null' SimpleEnumValidation: $schema: https://json-schema.org/draft/2020-12/schema enum: @@ -4527,6 +4809,135 @@ components: description: do not match string lacking nul data: hellothere valid: false + ContainsKeywordValidation: + ArrayWithItemMatchingSchema5IsValid: + description: array with item matching schema (5) is valid + data: + - 3 + - 4 + - 5 + valid: true + ArrayWithItemMatchingSchema6IsValid: + description: array with item matching schema (6) is valid + data: + - 3 + - 4 + - 6 + valid: true + ArrayWithTwoItemsMatchingSchema56IsValid: + description: array with two items matching schema (5, 6) is valid + data: + - 3 + - 4 + - 5 + - 6 + valid: true + ArrayWithoutItemsMatchingSchemaIsInvalid: + description: array without items matching schema is invalid + data: + - 2 + - 3 + - 4 + valid: false + EmptyArrayIsInvalid: + description: empty array is invalid + data: [] + valid: false + NotArrayIsValid: + description: not array is valid + data: {} + valid: true + ContainsKeywordWithConstKeyword: + ArrayWithItem5IsValid: + description: array with item 5 is valid + data: + - 3 + - 4 + - 5 + valid: true + ArrayWithTwoItems5IsValid: + description: array with two items 5 is valid + data: + - 3 + - 4 + - 5 + - 5 + valid: true + ArrayWithoutItem5IsInvalid: + description: array without item 5 is invalid + data: + - 1 + - 2 + - 3 + - 4 + valid: false + ContainsKeywordWithBooleanSchemaTrue: + AnyNonEmptyArrayIsValid: + description: any non-empty array is valid + data: + - foo + valid: true + EmptyArrayIsInvalid: + description: empty array is invalid + data: [] + valid: false + ContainsKeywordWithBooleanSchemaFalse: + AnyNonEmptyArrayIsInvalid: + description: any non-empty array is invalid + data: + - foo + valid: false + EmptyArrayIsInvalid: + description: empty array is invalid + data: [] + valid: false + NonArraysAreValid: + description: non-arrays are valid + data: contains does not apply to strings + valid: true + ItemsContains: + MatchesItemsDoesNotMatchContains: + description: matches items, does not match contains + data: + - 2 + - 4 + - 8 + valid: false + DoesNotMatchItemsMatchesContains: + description: does not match items, matches contains + data: + - 3 + - 6 + - 9 + valid: false + MatchesBothItemsAndContains: + description: matches both items and contains + data: + - 6 + - 12 + valid: true + MatchesNeitherItemsNorContains: + description: matches neither items nor contains + data: + - 1 + - 5 + valid: false + ContainsWithFalseIfSubschema: + AnyNonEmptyArrayIsValid: + description: any non-empty array is valid + data: + - foo + valid: true + EmptyArrayIsInvalid: + description: empty array is invalid + data: [] + valid: false + ContainsWithNullInstanceElements: + AllowsNullItems: + description: allows null items + data: + - null + valid: true SimpleEnumValidation: OneOfTheEnumIsValid: description: one of the enum is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index b7d18927809..d6ecb01e85c 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -253,7 +253,6 @@ class ExclusionReason: FILEPATH_TO_EXCLUDE_REASON = { (json_schema_test_draft, 'additionalItems.json'): ExclusionReason.v303_does_not_support_additionalItems, (json_schema_test_draft, 'boolean_schema.json'): ExclusionReason.bug_does_not_support_boolean_schemas_in_location, - (json_schema_test_draft, 'contains.json'): ExclusionReason.v303_does_not_support_contains, (json_schema_test_draft, 'definitions.json'): ExclusionReason.bug_does_not_support_definitions, (json_schema_test_draft, 'dependencies.json'): ExclusionReason.v303_does_not_support_dependencies, (json_schema_test_draft, 'exclusiveMaximum.json'): ExclusionReason.swagger_parser_validation_missing_bug, @@ -272,7 +271,7 @@ class ExclusionReason: 'anyOf.json': (json_schema_test_draft,), 'boolean_schema.json': (json_schema_test_draft,), 'const.json': (json_schema_test_draft,), -# 'contains.json': (json_schema_test_draft,), + 'contains.json': (json_schema_test_draft,), # 'default.json': (json_schema_test_draft,), # 'definitions.json': (json_schema_test_draft,), # 'dependencies.json': (json_schema_test_draft,), From 6c7117d4fc8cfe588f5fe1f6bb9048eef1cc4e1d Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 14:11:19 -0700 Subject: [PATCH 10/34] Adds contains test cases --- .../python/.openapi-generator/FILES | 98 ++++++++ .../client/3_1_0_unit_test/python/README.md | 9 + .../python/docs/apis/tags/contains_api.md | 19 ++ .../docs/apis/tags/content_type_json_api.md | 6 + .../apis/tags/operation_request_body_api.md | 3 + .../python/docs/apis/tags/path_post_api.md | 6 + ...esponse_content_content_type_schema_api.md | 3 + .../schema/contains_keyword_validation.md | 12 + .../contains_with_null_instance_elements.md | 12 + .../docs/components/schema/items_contains.md | 52 +++++ .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 118 ++++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 18 ++ ...ontains_keyword_validation_request_body.py | 13 ++ ...ith_null_instance_elements_request_body.py | 13 ++ ...t_body_post_items_contains_request_body.py | 13 ++ ...idation_response_body_for_content_types.py | 13 ++ ...lements_response_body_for_content_types.py | 13 ++ ...ontains_response_body_for_content_types.py | 13 ++ .../src/unit_test_api/apis/tag_to_api.py | 3 + .../unit_test_api/apis/tags/contains_api.py | 28 +++ .../apis/tags/content_type_json_api.py | 12 + .../apis/tags/operation_request_body_api.py | 6 + .../unit_test_api/apis/tags/path_post_api.py | 12 + ...esponse_content_content_type_schema_api.py | 6 + .../schema/contains_keyword_validation.py | 35 +++ .../contains_with_null_instance_elements.py | 27 +++ .../components/schema/items_contains.py | 92 ++++++++ .../components/schemas/__init__.py | 3 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../test_contains_keyword_validation.py | 88 +++++++ ...st_contains_with_null_instance_elements.py | 34 +++ .../components/schema/test_items_contains.py | 70 ++++++ .../__init__.py | 0 .../test_post.py | 199 ++++++++++++++++ .../__init__.py | 0 .../test_post.py | 67 ++++++ .../__init__.py | 0 .../test_post.py | 121 ++++++++++ .../__init__.py | 0 .../test_post.py | 220 ++++++++++++++++++ .../__init__.py | 0 .../test_post.py | 68 ++++++ .../__init__.py | 0 .../test_post.py | 152 ++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 217 ----------------- .../3_1/unit_test_spec/spec_writer.py | 6 + 107 files changed, 3358 insertions(+), 217 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/contains_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/contains_keyword_validation.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/contains_with_null_instance_elements.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/items_contains.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_keyword_validation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_with_null_instance_elements.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/items_contains.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_keyword_validation.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_with_null_instance_elements.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_items_contains.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 0685fc16e31..1a786342108 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -7,6 +7,7 @@ docs/apis/tags/additional_properties_api.md docs/apis/tags/all_of_api.md docs/apis/tags/any_of_api.md docs/apis/tags/const_api.md +docs/apis/tags/contains_api.md docs/apis/tags/content_type_json_api.md docs/apis/tags/enum_api.md docs/apis/tags/format_api.md @@ -54,6 +55,8 @@ docs/components/schema/by_int.md docs/components/schema/by_number.md docs/components/schema/by_small_number.md docs/components/schema/const_nul_characters_in_strings.md +docs/components/schema/contains_keyword_validation.md +docs/components/schema/contains_with_null_instance_elements.md docs/components/schema/date_format.md docs/components/schema/date_time_format.md docs/components/schema/duration_format.md @@ -74,6 +77,7 @@ docs/components/schema/ipv4_format.md docs/components/schema/ipv6_format.md docs/components/schema/iri_format.md docs/components/schema/iri_reference_format.md +docs/components/schema/items_contains.md docs/components/schema/items_does_not_look_in_applicators_valid_case.md docs/components/schema/items_with_null_instance_elements.md docs/components/schema/json_pointer_format.md @@ -179,6 +183,10 @@ docs/paths/request_body_post_by_small_number_request_body/post.md docs/paths/request_body_post_by_small_number_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_contains_keyword_validation_request_body/post.md +docs/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md +docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_format_request_body/post.md docs/paths/request_body_post_date_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md @@ -219,6 +227,8 @@ docs/paths/request_body_post_iri_format_request_body/post.md docs/paths/request_body_post_iri_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_iri_reference_format_request_body/post.md docs/paths/request_body_post_iri_reference_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_items_contains_request_body/post.md +docs/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md @@ -385,6 +395,10 @@ docs/paths/response_body_post_by_small_number_response_body_for_content_types/po docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md +docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_format_response_body_for_content_types/post.md docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md @@ -425,6 +439,8 @@ docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md docs/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md +docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md @@ -580,6 +596,8 @@ src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py +src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py +src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py @@ -600,6 +618,7 @@ src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py src/unit_test_api/apis/paths/request_body_post_iri_format_request_body.py src/unit_test_api/apis/paths/request_body_post_iri_reference_format_request_body.py +src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py src/unit_test_api/apis/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body.py src/unit_test_api/apis/paths/request_body_post_items_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py @@ -683,6 +702,8 @@ src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py @@ -703,6 +724,7 @@ src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_co src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_iri_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_iri_reference_format_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py @@ -770,6 +792,7 @@ src/unit_test_api/apis/tags/additional_properties_api.py src/unit_test_api/apis/tags/all_of_api.py src/unit_test_api/apis/tags/any_of_api.py src/unit_test_api/apis/tags/const_api.py +src/unit_test_api/apis/tags/contains_api.py src/unit_test_api/apis/tags/content_type_json_api.py src/unit_test_api/apis/tags/enum_api.py src/unit_test_api/apis/tags/format_api.py @@ -819,6 +842,8 @@ src/unit_test_api/components/schema/by_int.py src/unit_test_api/components/schema/by_number.py src/unit_test_api/components/schema/by_small_number.py src/unit_test_api/components/schema/const_nul_characters_in_strings.py +src/unit_test_api/components/schema/contains_keyword_validation.py +src/unit_test_api/components/schema/contains_with_null_instance_elements.py src/unit_test_api/components/schema/date_format.py src/unit_test_api/components/schema/date_time_format.py src/unit_test_api/components/schema/duration_format.py @@ -839,6 +864,7 @@ src/unit_test_api/components/schema/ipv4_format.py src/unit_test_api/components/schema/ipv6_format.py src/unit_test_api/components/schema/iri_format.py src/unit_test_api/components/schema/iri_reference_format.py +src/unit_test_api/components/schema/items_contains.py src/unit_test_api/components/schema/items_does_not_look_in_applicators_valid_case.py src/unit_test_api/components/schema/items_with_null_instance_elements.py src/unit_test_api/components/schema/json_pointer_format.py @@ -1111,6 +1137,24 @@ src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_reques src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py @@ -1291,6 +1335,15 @@ src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/__init__.py src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py @@ -2015,6 +2068,22 @@ src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_respo src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py @@ -2175,6 +2244,14 @@ src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_fo src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py @@ -2702,6 +2779,8 @@ test/components/schema/test_by_int.py test/components/schema/test_by_number.py test/components/schema/test_by_small_number.py test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_contains_keyword_validation.py +test/components/schema/test_contains_with_null_instance_elements.py test/components/schema/test_date_format.py test/components/schema/test_date_time_format.py test/components/schema/test_duration_format.py @@ -2722,6 +2801,7 @@ test/components/schema/test_ipv4_format.py test/components/schema/test_ipv6_format.py test/components/schema/test_iri_format.py test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_contains.py test/components/schema/test_items_does_not_look_in_applicators_valid_case.py test/components/schema/test_items_with_null_instance_elements.py test/components/schema/test_json_pointer_format.py @@ -2987,6 +3067,12 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py @@ -3033,6 +3119,10 @@ test/test_paths/test_request_body_post_by_small_number_request_body/__init__.py test/test_paths/test_request_body_post_by_small_number_request_body/test_post.py test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/__init__.py test/test_paths/test_request_body_post_const_nul_characters_in_strings_request_body/test_post.py +test/test_paths/test_request_body_post_contains_keyword_validation_request_body/__init__.py +test/test_paths/test_request_body_post_contains_keyword_validation_request_body/test_post.py +test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/__init__.py +test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/test_post.py test/test_paths/test_request_body_post_date_format_request_body/__init__.py test/test_paths/test_request_body_post_date_format_request_body/test_post.py test/test_paths/test_request_body_post_date_time_format_request_body/__init__.py @@ -3073,6 +3163,8 @@ test/test_paths/test_request_body_post_iri_format_request_body/__init__.py test/test_paths/test_request_body_post_iri_format_request_body/test_post.py test/test_paths/test_request_body_post_iri_reference_format_request_body/__init__.py test/test_paths/test_request_body_post_iri_reference_format_request_body/test_post.py +test/test_paths/test_request_body_post_items_contains_request_body/__init__.py +test/test_paths/test_request_body_post_items_contains_request_body/test_post.py test/test_paths/test_request_body_post_items_does_not_look_in_applicators_valid_case_request_body/__init__.py test/test_paths/test_request_body_post_items_does_not_look_in_applicators_valid_case_request_body/test_post.py test/test_paths/test_request_body_post_items_with_null_instance_elements_request_body/__init__.py @@ -3239,6 +3331,10 @@ test/test_paths/test_response_body_post_by_small_number_response_body_for_conten test/test_paths/test_response_body_post_by_small_number_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_const_nul_characters_in_strings_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_date_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/__init__.py @@ -3279,6 +3375,8 @@ test/test_paths/test_response_body_post_iri_format_response_body_for_content_typ test/test_paths/test_response_body_post_iri_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_iri_reference_format_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_items_with_null_instance_elements_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 16f531b10dd..0d1dd561a8c 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -193,6 +193,8 @@ HTTP request | Method | Description /requestBody/postByNumberRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_number_request_body](docs/paths/request_body_post_by_number_request_body/post.md) | /requestBody/postBySmallNumberRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_small_number_request_body](docs/paths/request_body_post_by_small_number_request_body/post.md) | /requestBody/postConstNulCharactersInStringsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_nul_characters_in_strings_request_body](docs/paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +/requestBody/postContainsKeywordValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_contains_keyword_validation_request_body](docs/paths/request_body_post_contains_keyword_validation_request_body/post.md) [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_keyword_validation_request_body](docs/paths/request_body_post_contains_keyword_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_keyword_validation_request_body](docs/paths/request_body_post_contains_keyword_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_keyword_validation_request_body](docs/paths/request_body_post_contains_keyword_validation_request_body/post.md) | +/requestBody/postContainsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | /requestBody/postDateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) | /requestBody/postDateTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) | /requestBody/postDurationFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) | @@ -213,6 +215,7 @@ HTTP request | Method | Description /requestBody/postIpv6FormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_ipv6_format_request_body](docs/paths/request_body_post_ipv6_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_ipv6_format_request_body](docs/paths/request_body_post_ipv6_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_ipv6_format_request_body](docs/paths/request_body_post_ipv6_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_ipv6_format_request_body](docs/paths/request_body_post_ipv6_format_request_body/post.md) | /requestBody/postIriFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_iri_format_request_body](docs/paths/request_body_post_iri_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_iri_format_request_body](docs/paths/request_body_post_iri_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_iri_format_request_body](docs/paths/request_body_post_iri_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_iri_format_request_body](docs/paths/request_body_post_iri_format_request_body/post.md) | /requestBody/postIriReferenceFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_iri_reference_format_request_body](docs/paths/request_body_post_iri_reference_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_iri_reference_format_request_body](docs/paths/request_body_post_iri_reference_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_iri_reference_format_request_body](docs/paths/request_body_post_iri_reference_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_iri_reference_format_request_body](docs/paths/request_body_post_iri_reference_format_request_body/post.md) | +/requestBody/postItemsContainsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_items_contains_request_body](docs/paths/request_body_post_items_contains_request_body/post.md) [ContainsApi](docs/apis/tags/contains_api.md).[post_items_contains_request_body](docs/paths/request_body_post_items_contains_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_contains_request_body](docs/paths/request_body_post_items_contains_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_contains_request_body](docs/paths/request_body_post_items_contains_request_body/post.md) | /requestBody/postItemsDoesNotLookInApplicatorsValidCaseRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) | /requestBody/postItemsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) | /requestBody/postJsonPointerFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) | @@ -296,6 +299,8 @@ HTTP request | Method | Description /responseBody/postByNumberResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_number_response_body_for_content_types](docs/paths/response_body_post_by_number_response_body_for_content_types/post.md) | /responseBody/postBySmallNumberResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_by_small_number_response_body_for_content_types](docs/paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | /responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ConstApi](docs/apis/tags/const_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_const_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +/responseBody/postContainsKeywordValidationResponseBodyForContentTypes **post** | [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_keyword_validation_response_body_for_content_types](docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_keyword_validation_response_body_for_content_types](docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_keyword_validation_response_body_for_content_types](docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_contains_keyword_validation_response_body_for_content_types](docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) | +/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes **post** | [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postDateFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) | /responseBody/postDateTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | /responseBody/postDurationFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) | @@ -316,6 +321,7 @@ HTTP request | Method | Description /responseBody/postIpv6FormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_ipv6_format_response_body_for_content_types](docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_ipv6_format_response_body_for_content_types](docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_ipv6_format_response_body_for_content_types](docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_ipv6_format_response_body_for_content_types](docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post.md) | /responseBody/postIriFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_iri_format_response_body_for_content_types](docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_iri_format_response_body_for_content_types](docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_iri_format_response_body_for_content_types](docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_iri_format_response_body_for_content_types](docs/paths/response_body_post_iri_format_response_body_for_content_types/post.md) | /responseBody/postIriReferenceFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_iri_reference_format_response_body_for_content_types](docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_iri_reference_format_response_body_for_content_types](docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_iri_reference_format_response_body_for_content_types](docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_iri_reference_format_response_body_for_content_types](docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) | +/responseBody/postItemsContainsResponseBodyForContentTypes **post** | [ContainsApi](docs/apis/tags/contains_api.md).[post_items_contains_response_body_for_content_types](docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_contains_response_body_for_content_types](docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_contains_response_body_for_content_types](docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_items_contains_response_body_for_content_types](docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md) | /responseBody/postItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) | /responseBody/postItemsWithNullInstanceElementsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postJsonPointerFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) | @@ -404,6 +410,8 @@ Class | Description [ByNumber](docs/components/schema/by_number.md) | [BySmallNumber](docs/components/schema/by_small_number.md) | [ConstNulCharactersInStrings](docs/components/schema/const_nul_characters_in_strings.md) | +[ContainsKeywordValidation](docs/components/schema/contains_keyword_validation.md) | +[ContainsWithNullInstanceElements](docs/components/schema/contains_with_null_instance_elements.md) | [DateFormat](docs/components/schema/date_format.md) | [DateTimeFormat](docs/components/schema/date_time_format.md) | [DurationFormat](docs/components/schema/duration_format.md) | @@ -424,6 +432,7 @@ Class | Description [Ipv6Format](docs/components/schema/ipv6_format.md) | [IriFormat](docs/components/schema/iri_format.md) | [IriReferenceFormat](docs/components/schema/iri_reference_format.md) | +[ItemsContains](docs/components/schema/items_contains.md) | [ItemsDoesNotLookInApplicatorsValidCase](docs/components/schema/items_does_not_look_in_applicators_valid_case.md) | [ItemsWithNullInstanceElements](docs/components/schema/items_with_null_instance_elements.md) | [JsonPointerFormat](docs/components/schema/json_pointer_format.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/contains_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/contains_api.md new file mode 100644 index 00000000000..7bbc1479da7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/contains_api.md @@ -0,0 +1,19 @@ + +unit_test_api.apis.tags.contains_api +# ContainsApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_contains_keyword_validation_request_body**](../../paths/request_body_post_contains_keyword_validation_request_body/post.md) | +[**post_contains_keyword_validation_response_body_for_content_types**](../../paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) | +[**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | +[**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | +[**post_items_contains_request_body**](../../paths/request_body_post_items_contains_request_body/post.md) | +[**post_items_contains_response_body_for_content_types**](../../paths/response_body_post_items_contains_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 86e8c10d61b..cc82c68eac1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -55,6 +55,10 @@ Method | Description [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_contains_keyword_validation_request_body**](../../paths/request_body_post_contains_keyword_validation_request_body/post.md) | +[**post_contains_keyword_validation_response_body_for_content_types**](../../paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) | +[**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | +[**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | @@ -95,6 +99,8 @@ Method | Description [**post_iri_format_response_body_for_content_types**](../../paths/response_body_post_iri_format_response_body_for_content_types/post.md) | [**post_iri_reference_format_request_body**](../../paths/request_body_post_iri_reference_format_request_body/post.md) | [**post_iri_reference_format_response_body_for_content_types**](../../paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) | +[**post_items_contains_request_body**](../../paths/request_body_post_items_contains_request_body/post.md) | +[**post_items_contains_response_body_for_content_types**](../../paths/response_body_post_items_contains_response_body_for_content_types/post.md) | [**post_items_does_not_look_in_applicators_valid_case_request_body**](../../paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) | [**post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types**](../../paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) | [**post_items_with_null_instance_elements_request_body**](../../paths/request_body_post_items_with_null_instance_elements_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 5d22b564bf3..f8400c94f67 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -32,6 +32,8 @@ Method | Description [**post_by_number_request_body**](../../paths/request_body_post_by_number_request_body/post.md) | [**post_by_small_number_request_body**](../../paths/request_body_post_by_small_number_request_body/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | +[**post_contains_keyword_validation_request_body**](../../paths/request_body_post_contains_keyword_validation_request_body/post.md) | +[**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | @@ -52,6 +54,7 @@ Method | Description [**post_ipv6_format_request_body**](../../paths/request_body_post_ipv6_format_request_body/post.md) | [**post_iri_format_request_body**](../../paths/request_body_post_iri_format_request_body/post.md) | [**post_iri_reference_format_request_body**](../../paths/request_body_post_iri_reference_format_request_body/post.md) | +[**post_items_contains_request_body**](../../paths/request_body_post_items_contains_request_body/post.md) | [**post_items_does_not_look_in_applicators_valid_case_request_body**](../../paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) | [**post_items_with_null_instance_elements_request_body**](../../paths/request_body_post_items_with_null_instance_elements_request_body/post.md) | [**post_json_pointer_format_request_body**](../../paths/request_body_post_json_pointer_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 4d3540fd41e..6458ab0e08a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -55,6 +55,10 @@ Method | Description [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_request_body**](../../paths/request_body_post_const_nul_characters_in_strings_request_body/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_contains_keyword_validation_request_body**](../../paths/request_body_post_contains_keyword_validation_request_body/post.md) | +[**post_contains_keyword_validation_response_body_for_content_types**](../../paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) | +[**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | +[**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | @@ -95,6 +99,8 @@ Method | Description [**post_iri_format_response_body_for_content_types**](../../paths/response_body_post_iri_format_response_body_for_content_types/post.md) | [**post_iri_reference_format_request_body**](../../paths/request_body_post_iri_reference_format_request_body/post.md) | [**post_iri_reference_format_response_body_for_content_types**](../../paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) | +[**post_items_contains_request_body**](../../paths/request_body_post_items_contains_request_body/post.md) | +[**post_items_contains_response_body_for_content_types**](../../paths/response_body_post_items_contains_response_body_for_content_types/post.md) | [**post_items_does_not_look_in_applicators_valid_case_request_body**](../../paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) | [**post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types**](../../paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) | [**post_items_with_null_instance_elements_request_body**](../../paths/request_body_post_items_with_null_instance_elements_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 49b217274c1..8db4e73ed06 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -32,6 +32,8 @@ Method | Description [**post_by_number_response_body_for_content_types**](../../paths/response_body_post_by_number_response_body_for_content_types/post.md) | [**post_by_small_number_response_body_for_content_types**](../../paths/response_body_post_by_small_number_response_body_for_content_types/post.md) | [**post_const_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post.md) | +[**post_contains_keyword_validation_response_body_for_content_types**](../../paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md) | +[**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | @@ -52,6 +54,7 @@ Method | Description [**post_ipv6_format_response_body_for_content_types**](../../paths/response_body_post_ipv6_format_response_body_for_content_types/post.md) | [**post_iri_format_response_body_for_content_types**](../../paths/response_body_post_iri_format_response_body_for_content_types/post.md) | [**post_iri_reference_format_response_body_for_content_types**](../../paths/response_body_post_iri_reference_format_response_body_for_content_types/post.md) | +[**post_items_contains_response_body_for_content_types**](../../paths/response_body_post_items_contains_response_body_for_content_types/post.md) | [**post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types**](../../paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) | [**post_items_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/contains_keyword_validation.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/contains_keyword_validation.md new file mode 100644 index 00000000000..3f38ed66a5a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/contains_keyword_validation.md @@ -0,0 +1,12 @@ +# ContainsKeywordValidation +unit_test_api.components.schema.contains_keyword_validation +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/contains_with_null_instance_elements.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/contains_with_null_instance_elements.md new file mode 100644 index 00000000000..e9f248a1291 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/contains_with_null_instance_elements.md @@ -0,0 +1,12 @@ +# ContainsWithNullInstanceElements +unit_test_api.components.schema.contains_with_null_instance_elements +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/items_contains.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/items_contains.md new file mode 100644 index 00000000000..ca8b1a4ab42 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/items_contains.md @@ -0,0 +1,52 @@ +# ItemsContains +unit_test_api.components.schema.items_contains +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[ItemsContainsTupleInput](#itemscontainstupleinput), [ItemsContainsTuple](#itemscontainstuple) | [ItemsContainsTuple](#itemscontainstuple) | + +## ItemsContainsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | + +## ItemsContainsTuple +``` +base class: typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [ItemsContainsTupleInput](#itemscontainstupleinput), [ItemsContainsTuple](#itemscontainstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This method is used under the hood when instance[0] is called + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md new file mode 100644 index 00000000000..10738285a4b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_contains_keyword_validation_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_contains_keyword_validation_request_body | [ContainsApi](../../apis/tags/contains_api.md) | This api is only for tag=contains | +| post_contains_keyword_validation_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_contains_keyword_validation_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostContainsKeywordValidationRequestBody | This api is only for path=/requestBody/postContainsKeywordValidationRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postContainsKeywordValidationRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_keyword_validation.ContainsKeywordValidation**](../../components/schema/contains_keyword_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = contains_keyword_validation.ContainsKeywordValidation.validate(None) + try: + api_response = api_instance.post_contains_keyword_validation_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_contains_keyword_validation_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to ContainsApi API]](../../apis/tags/contains_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..126a0ea274c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_keyword_validation.ContainsKeywordValidation**](../../../../../../components/schema/contains_keyword_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md new file mode 100644 index 00000000000..61e9d68c454 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_contains_with_null_instance_elements_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_contains_with_null_instance_elements_request_body | [ContainsApi](../../apis/tags/contains_api.md) | This api is only for tag=contains | +| post_contains_with_null_instance_elements_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_contains_with_null_instance_elements_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostContainsWithNullInstanceElementsRequestBody | This api is only for path=/requestBody/postContainsWithNullInstanceElementsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postContainsWithNullInstanceElementsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_with_null_instance_elements.ContainsWithNullInstanceElements**](../../components/schema/contains_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = contains_with_null_instance_elements.ContainsWithNullInstanceElements.validate(None) + try: + api_response = api_instance.post_contains_with_null_instance_elements_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_contains_with_null_instance_elements_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to ContainsApi API]](../../apis/tags/contains_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..ecba28afcb6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_with_null_instance_elements.ContainsWithNullInstanceElements**](../../../../../../components/schema/contains_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md new file mode 100644 index 00000000000..b7947c84910 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post.md @@ -0,0 +1,118 @@ +unit_test_api.paths.request_body_post_items_contains_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_items_contains_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_items_contains_request_body | [ContainsApi](../../apis/tags/contains_api.md) | This api is only for tag=contains | +| post_items_contains_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_items_contains_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostItemsContainsRequestBody | This api is only for path=/requestBody/postItemsContainsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postItemsContainsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[items_contains.ItemsContainsTupleInput](../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_items_contains_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**items_contains.ItemsContains**](../../components/schema/items_contains.md) | [items_contains.ItemsContainsTupleInput](../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = items_contains.ItemsContains.validate([ + None + ]) + try: + api_response = api_instance.post_items_contains_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_items_contains_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to ContainsApi API]](../../apis/tags/contains_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..cf06cc8cf45 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_items_contains_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**items_contains.ItemsContains**](../../../../../../components/schema/items_contains.md) | [items_contains.ItemsContainsTupleInput](../../../../../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../../../../../components/schema/items_contains.md#itemscontainstuple) | [items_contains.ItemsContainsTuple](../../../../../../components/schema/items_contains.md#itemscontainstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md new file mode 100644 index 00000000000..4d6604fc059 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_contains_keyword_validation_response_body_for_content_types | [ContainsApi](../../apis/tags/contains_api.md) | This api is only for tag=contains | +| post_contains_keyword_validation_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_contains_keyword_validation_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_contains_keyword_validation_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostContainsKeywordValidationResponseBodyForContentTypes | This api is only for path=/responseBody/postContainsKeywordValidationResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_keyword_validation.ContainsKeywordValidation**](../../components/schema/contains_keyword_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import contains_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = contains_api.ContainsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_contains_keyword_validation_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling ContainsApi->post_contains_keyword_validation_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to ContainsApi API]](../../apis/tags/contains_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..13d3f61f6cd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_keyword_validation.ContainsKeywordValidation**](../../../../../../../../components/schema/contains_keyword_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md new file mode 100644 index 00000000000..ad0547ded2c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_contains_with_null_instance_elements_response_body_for_content_types | [ContainsApi](../../apis/tags/contains_api.md) | This api is only for tag=contains | +| post_contains_with_null_instance_elements_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_contains_with_null_instance_elements_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_contains_with_null_instance_elements_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes | This api is only for path=/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_with_null_instance_elements.ContainsWithNullInstanceElements**](../../components/schema/contains_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import contains_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = contains_api.ContainsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_contains_with_null_instance_elements_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling ContainsApi->post_contains_with_null_instance_elements_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to ContainsApi API]](../../apis/tags/contains_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b710ef1ec26 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**contains_with_null_instance_elements.ContainsWithNullInstanceElements**](../../../../../../../../components/schema/contains_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md new file mode 100644 index 00000000000..59d48deb01d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_items_contains_response_body_for_content_types | [ContainsApi](../../apis/tags/contains_api.md) | This api is only for tag=contains | +| post_items_contains_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_items_contains_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_items_contains_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostItemsContainsResponseBodyForContentTypes | This api is only for path=/responseBody/postItemsContainsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postItemsContainsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**items_contains.ItemsContains**](../../components/schema/items_contains.md) | [items_contains.ItemsContainsTupleInput](../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) | [items_contains.ItemsContainsTuple](../../components/schema/items_contains.md#itemscontainstuple) + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import contains_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = contains_api.ContainsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_items_contains_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling ContainsApi->post_items_contains_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to ContainsApi API]](../../apis/tags/contains_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..25c1c6a8fbc --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**items_contains.ItemsContains**](../../../../../../../../components/schema/items_contains.md) | [items_contains.ItemsContainsTupleInput](../../../../../../../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../../../../../../../components/schema/items_contains.md#itemscontainstuple) | [items_contains.ItemsContainsTuple](../../../../../../../../components/schema/items_contains.md#itemscontainstuple) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 42e40f19288..020906ce1f0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -24,6 +24,8 @@ from unit_test_api.apis.paths.request_body_post_by_number_request_body import RequestBodyPostByNumberRequestBody from unit_test_api.apis.paths.request_body_post_by_small_number_request_body import RequestBodyPostBySmallNumberRequestBody from unit_test_api.apis.paths.request_body_post_const_nul_characters_in_strings_request_body import RequestBodyPostConstNulCharactersInStringsRequestBody +from unit_test_api.apis.paths.request_body_post_contains_keyword_validation_request_body import RequestBodyPostContainsKeywordValidationRequestBody +from unit_test_api.apis.paths.request_body_post_contains_with_null_instance_elements_request_body import RequestBodyPostContainsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_date_format_request_body import RequestBodyPostDateFormatRequestBody from unit_test_api.apis.paths.request_body_post_date_time_format_request_body import RequestBodyPostDateTimeFormatRequestBody from unit_test_api.apis.paths.request_body_post_duration_format_request_body import RequestBodyPostDurationFormatRequestBody @@ -44,6 +46,7 @@ from unit_test_api.apis.paths.request_body_post_ipv6_format_request_body import RequestBodyPostIpv6FormatRequestBody from unit_test_api.apis.paths.request_body_post_iri_format_request_body import RequestBodyPostIriFormatRequestBody from unit_test_api.apis.paths.request_body_post_iri_reference_format_request_body import RequestBodyPostIriReferenceFormatRequestBody +from unit_test_api.apis.paths.request_body_post_items_contains_request_body import RequestBodyPostItemsContainsRequestBody from unit_test_api.apis.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body import RequestBodyPostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.apis.paths.request_body_post_items_with_null_instance_elements_request_body import RequestBodyPostItemsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_json_pointer_format_request_body import RequestBodyPostJsonPointerFormatRequestBody @@ -127,6 +130,8 @@ from unit_test_api.apis.paths.response_body_post_by_number_response_body_for_content_types import ResponseBodyPostByNumberResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_by_small_number_response_body_for_content_types import ResponseBodyPostBySmallNumberResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types import ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_contains_keyword_validation_response_body_for_content_types import ResponseBodyPostContainsKeywordValidationResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_format_response_body_for_content_types import ResponseBodyPostDateFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_time_format_response_body_for_content_types import ResponseBodyPostDateTimeFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_duration_format_response_body_for_content_types import ResponseBodyPostDurationFormatResponseBodyForContentTypes @@ -147,6 +152,7 @@ from unit_test_api.apis.paths.response_body_post_ipv6_format_response_body_for_content_types import ResponseBodyPostIpv6FormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_iri_format_response_body_for_content_types import ResponseBodyPostIriFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_iri_reference_format_response_body_for_content_types import ResponseBodyPostIriReferenceFormatResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_items_contains_response_body_for_content_types import ResponseBodyPostItemsContainsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types import ResponseBodyPostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostItemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_json_pointer_format_response_body_for_content_types import ResponseBodyPostJsonPointerFormatResponseBodyForContentTypes @@ -234,6 +240,8 @@ "/requestBody/postByNumberRequestBody": typing.Type[RequestBodyPostByNumberRequestBody], "/requestBody/postBySmallNumberRequestBody": typing.Type[RequestBodyPostBySmallNumberRequestBody], "/requestBody/postConstNulCharactersInStringsRequestBody": typing.Type[RequestBodyPostConstNulCharactersInStringsRequestBody], + "/requestBody/postContainsKeywordValidationRequestBody": typing.Type[RequestBodyPostContainsKeywordValidationRequestBody], + "/requestBody/postContainsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostContainsWithNullInstanceElementsRequestBody], "/requestBody/postDateFormatRequestBody": typing.Type[RequestBodyPostDateFormatRequestBody], "/requestBody/postDateTimeFormatRequestBody": typing.Type[RequestBodyPostDateTimeFormatRequestBody], "/requestBody/postDurationFormatRequestBody": typing.Type[RequestBodyPostDurationFormatRequestBody], @@ -254,6 +262,7 @@ "/requestBody/postIpv6FormatRequestBody": typing.Type[RequestBodyPostIpv6FormatRequestBody], "/requestBody/postIriFormatRequestBody": typing.Type[RequestBodyPostIriFormatRequestBody], "/requestBody/postIriReferenceFormatRequestBody": typing.Type[RequestBodyPostIriReferenceFormatRequestBody], + "/requestBody/postItemsContainsRequestBody": typing.Type[RequestBodyPostItemsContainsRequestBody], "/requestBody/postItemsDoesNotLookInApplicatorsValidCaseRequestBody": typing.Type[RequestBodyPostItemsDoesNotLookInApplicatorsValidCaseRequestBody], "/requestBody/postItemsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostItemsWithNullInstanceElementsRequestBody], "/requestBody/postJsonPointerFormatRequestBody": typing.Type[RequestBodyPostJsonPointerFormatRequestBody], @@ -337,6 +346,8 @@ "/responseBody/postByNumberResponseBodyForContentTypes": typing.Type[ResponseBodyPostByNumberResponseBodyForContentTypes], "/responseBody/postBySmallNumberResponseBodyForContentTypes": typing.Type[ResponseBodyPostBySmallNumberResponseBodyForContentTypes], "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes": typing.Type[ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes], + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostContainsKeywordValidationResponseBodyForContentTypes], + "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postDateFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateFormatResponseBodyForContentTypes], "/responseBody/postDateTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateTimeFormatResponseBodyForContentTypes], "/responseBody/postDurationFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDurationFormatResponseBodyForContentTypes], @@ -357,6 +368,7 @@ "/responseBody/postIpv6FormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostIpv6FormatResponseBodyForContentTypes], "/responseBody/postIriFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostIriFormatResponseBodyForContentTypes], "/responseBody/postIriReferenceFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostIriReferenceFormatResponseBodyForContentTypes], + "/responseBody/postItemsContainsResponseBodyForContentTypes": typing.Type[ResponseBodyPostItemsContainsResponseBodyForContentTypes], "/responseBody/postItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes": typing.Type[ResponseBodyPostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes], "/responseBody/postItemsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostItemsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postJsonPointerFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostJsonPointerFormatResponseBodyForContentTypes], @@ -445,6 +457,8 @@ "/requestBody/postByNumberRequestBody": RequestBodyPostByNumberRequestBody, "/requestBody/postBySmallNumberRequestBody": RequestBodyPostBySmallNumberRequestBody, "/requestBody/postConstNulCharactersInStringsRequestBody": RequestBodyPostConstNulCharactersInStringsRequestBody, + "/requestBody/postContainsKeywordValidationRequestBody": RequestBodyPostContainsKeywordValidationRequestBody, + "/requestBody/postContainsWithNullInstanceElementsRequestBody": RequestBodyPostContainsWithNullInstanceElementsRequestBody, "/requestBody/postDateFormatRequestBody": RequestBodyPostDateFormatRequestBody, "/requestBody/postDateTimeFormatRequestBody": RequestBodyPostDateTimeFormatRequestBody, "/requestBody/postDurationFormatRequestBody": RequestBodyPostDurationFormatRequestBody, @@ -465,6 +479,7 @@ "/requestBody/postIpv6FormatRequestBody": RequestBodyPostIpv6FormatRequestBody, "/requestBody/postIriFormatRequestBody": RequestBodyPostIriFormatRequestBody, "/requestBody/postIriReferenceFormatRequestBody": RequestBodyPostIriReferenceFormatRequestBody, + "/requestBody/postItemsContainsRequestBody": RequestBodyPostItemsContainsRequestBody, "/requestBody/postItemsDoesNotLookInApplicatorsValidCaseRequestBody": RequestBodyPostItemsDoesNotLookInApplicatorsValidCaseRequestBody, "/requestBody/postItemsWithNullInstanceElementsRequestBody": RequestBodyPostItemsWithNullInstanceElementsRequestBody, "/requestBody/postJsonPointerFormatRequestBody": RequestBodyPostJsonPointerFormatRequestBody, @@ -548,6 +563,8 @@ "/responseBody/postByNumberResponseBodyForContentTypes": ResponseBodyPostByNumberResponseBodyForContentTypes, "/responseBody/postBySmallNumberResponseBodyForContentTypes": ResponseBodyPostBySmallNumberResponseBodyForContentTypes, "/responseBody/postConstNulCharactersInStringsResponseBodyForContentTypes": ResponseBodyPostConstNulCharactersInStringsResponseBodyForContentTypes, + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes": ResponseBodyPostContainsKeywordValidationResponseBodyForContentTypes, + "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postDateFormatResponseBodyForContentTypes": ResponseBodyPostDateFormatResponseBodyForContentTypes, "/responseBody/postDateTimeFormatResponseBodyForContentTypes": ResponseBodyPostDateTimeFormatResponseBodyForContentTypes, "/responseBody/postDurationFormatResponseBodyForContentTypes": ResponseBodyPostDurationFormatResponseBodyForContentTypes, @@ -568,6 +585,7 @@ "/responseBody/postIpv6FormatResponseBodyForContentTypes": ResponseBodyPostIpv6FormatResponseBodyForContentTypes, "/responseBody/postIriFormatResponseBodyForContentTypes": ResponseBodyPostIriFormatResponseBodyForContentTypes, "/responseBody/postIriReferenceFormatResponseBodyForContentTypes": ResponseBodyPostIriReferenceFormatResponseBodyForContentTypes, + "/responseBody/postItemsContainsResponseBodyForContentTypes": ResponseBodyPostItemsContainsResponseBodyForContentTypes, "/responseBody/postItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes": ResponseBodyPostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, "/responseBody/postItemsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostItemsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postJsonPointerFormatResponseBodyForContentTypes": ResponseBodyPostJsonPointerFormatResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py new file mode 100644 index 00000000000..674a59de151 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import ApiForPost + + +class RequestBodyPostContainsKeywordValidationRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py new file mode 100644 index 00000000000..d693e802fe4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import ApiForPost + + +class RequestBodyPostContainsWithNullInstanceElementsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py new file mode 100644 index 00000000000..d6646a0fcba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import ApiForPost + + +class RequestBodyPostItemsContainsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py new file mode 100644 index 00000000000..26b6e01edd7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostContainsKeywordValidationResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py new file mode 100644 index 00000000000..fce1349f308 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py new file mode 100644 index 00000000000..471924adf21 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostItemsContainsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 4cc038bbd20..396e79e4493 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -14,6 +14,7 @@ from unit_test_api.apis.tags.min_properties_api import MinPropertiesApi from unit_test_api.apis.tags.unique_items_api import UniqueItemsApi from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi +from unit_test_api.apis.tags.contains_api import ContainsApi from unit_test_api.apis.tags.one_of_api import OneOfApi from unit_test_api.apis.tags.ref_api import RefApi from unit_test_api.apis.tags.all_of_api import AllOfApi @@ -46,6 +47,7 @@ "minProperties": typing.Type[MinPropertiesApi], "uniqueItems": typing.Type[UniqueItemsApi], "operation.requestBody": typing.Type[OperationRequestBodyApi], + "contains": typing.Type[ContainsApi], "oneOf": typing.Type[OneOfApi], "$ref": typing.Type[RefApi], "allOf": typing.Type[AllOfApi], @@ -79,6 +81,7 @@ "minProperties": MinPropertiesApi, "uniqueItems": UniqueItemsApi, "operation.requestBody": OperationRequestBodyApi, + "contains": ContainsApi, "oneOf": OneOfApi, "$ref": RefApi, "allOf": AllOfApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py new file mode 100644 index 00000000000..86af9068ed6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py @@ -0,0 +1,28 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody +from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody +from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody +from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import PostContainsKeywordValidationResponseBodyForContentTypes + + +class ContainsApi( + PostContainsWithNullInstanceElementsRequestBody, + PostContainsWithNullInstanceElementsResponseBodyForContentTypes, + PostItemsContainsResponseBodyForContentTypes, + PostContainsKeywordValidationRequestBody, + PostItemsContainsRequestBody, + PostContainsKeywordValidationResponseBodyForContentTypes, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index ddf810ad7fb..10d37b56d3f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -95,9 +95,11 @@ from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minimum_validation_with_signed_integer_request_body.post.operation import PostMinimumValidationWithSignedIntegerRequestBody +from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import PostContainsKeywordValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_type_as_array_with_one_item_request_body.post.operation import PostTypeAsArrayWithOneItemRequestBody from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes @@ -125,10 +127,12 @@ from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes @@ -165,11 +169,13 @@ from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.operation import PostNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody +from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody +from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes @@ -304,9 +310,11 @@ class ContentTypeJsonApi( PostDateFormatResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, PostMinimumValidationWithSignedIntegerRequestBody, + PostContainsKeywordValidationResponseBodyForContentTypes, PostTypeAsArrayWithOneItemRequestBody, PostUuidFormatResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, + PostContainsKeywordValidationRequestBody, PostPatternValidationResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, @@ -334,10 +342,12 @@ class ContentTypeJsonApi( PostEmailFormatResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, + PostContainsWithNullInstanceElementsRequestBody, PostMinitemsValidationRequestBody, PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, + PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, PostAnyofWithBaseSchemaResponseBodyForContentTypes, @@ -374,11 +384,13 @@ class ContentTypeJsonApi( PostNotMoreComplexSchemaRequestBody, PostNulCharactersInStringsResponseBodyForContentTypes, PostRequiredWithEmptyArrayRequestBody, + PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, PostItemsWithNullInstanceElementsRequestBody, PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, + PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, PostOneofWithRequiredResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 24bf79a3e16..6568bf76576 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -17,6 +17,7 @@ from unit_test_api.paths.request_body_post_anyof_with_one_empty_schema_request_body.post.operation import PostAnyofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_email_format_request_body.post.operation import PostEmailFormatRequestBody from unit_test_api.paths.request_body_post_null_type_matches_only_the_null_object_request_body.post.operation import PostNullTypeMatchesOnlyTheNullObjectRequestBody +from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody @@ -66,6 +67,7 @@ from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody +from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody @@ -97,6 +99,7 @@ from unit_test_api.paths.request_body_post_minimum_validation_with_signed_integer_request_body.post.operation import PostMinimumValidationWithSignedIntegerRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_type_as_array_with_one_item_request_body.post.operation import PostTypeAsArrayWithOneItemRequestBody +from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody from unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.operation import PostMinpropertiesValidationRequestBody from unit_test_api.paths.request_body_post_anyof_request_body.post.operation import PostAnyofRequestBody @@ -123,6 +126,7 @@ class OperationRequestBodyApi( PostAnyofWithOneEmptySchemaRequestBody, PostEmailFormatRequestBody, PostNullTypeMatchesOnlyTheNullObjectRequestBody, + PostContainsWithNullInstanceElementsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, PostArrayTypeMatchesArraysRequestBody, @@ -172,6 +176,7 @@ class OperationRequestBodyApi( PostEnumWithFalseDoesNotMatch0RequestBody, PostNotMoreComplexSchemaRequestBody, PostRequiredWithEmptyArrayRequestBody, + PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostMinlengthValidationRequestBody, PostEnumsInPropertiesRequestBody, @@ -203,6 +208,7 @@ class OperationRequestBodyApi( PostMinimumValidationWithSignedIntegerRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, PostTypeAsArrayWithOneItemRequestBody, + PostContainsKeywordValidationRequestBody, PostNestedAnyofToCheckValidationSemanticsRequestBody, PostMinpropertiesValidationRequestBody, PostAnyofRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 066dcf6b902..a9af6330aad 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -95,9 +95,11 @@ from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minimum_validation_with_signed_integer_request_body.post.operation import PostMinimumValidationWithSignedIntegerRequestBody +from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import PostContainsKeywordValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_type_as_array_with_one_item_request_body.post.operation import PostTypeAsArrayWithOneItemRequestBody from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes @@ -125,10 +127,12 @@ from unit_test_api.paths.response_body_post_email_format_response_body_for_content_types.post.operation import PostEmailFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes @@ -165,11 +169,13 @@ from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.operation import PostNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody +from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody +from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes @@ -304,9 +310,11 @@ class PathPostApi( PostDateFormatResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, PostMinimumValidationWithSignedIntegerRequestBody, + PostContainsKeywordValidationResponseBodyForContentTypes, PostTypeAsArrayWithOneItemRequestBody, PostUuidFormatResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, + PostContainsKeywordValidationRequestBody, PostPatternValidationResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, @@ -334,10 +342,12 @@ class PathPostApi( PostEmailFormatResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, + PostContainsWithNullInstanceElementsRequestBody, PostMinitemsValidationRequestBody, PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, + PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, PostAnyofWithBaseSchemaResponseBodyForContentTypes, @@ -374,11 +384,13 @@ class PathPostApi( PostNotMoreComplexSchemaRequestBody, PostNulCharactersInStringsResponseBodyForContentTypes, PostRequiredWithEmptyArrayRequestBody, + PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, PostItemsWithNullInstanceElementsRequestBody, PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, + PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, PostOneofWithRequiredResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index a24f5d6ea05..337dd30e8f1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -33,6 +33,7 @@ from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes @@ -61,6 +62,7 @@ from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes @@ -92,6 +94,7 @@ from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import PostContainsKeywordValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes @@ -139,6 +142,7 @@ class ResponseContentContentTypeSchemaApi( PostUriReferenceFormatResponseBodyForContentTypes, PostDurationFormatResponseBodyForContentTypes, PostIdnEmailFormatResponseBodyForContentTypes, + PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostEnumsInPropertiesResponseBodyForContentTypes, PostNestedItemsResponseBodyForContentTypes, @@ -167,6 +171,7 @@ class ResponseContentContentTypeSchemaApi( PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostFloatDivisionInfResponseBodyForContentTypes, + PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, PostConstNulCharactersInStringsResponseBodyForContentTypes, @@ -198,6 +203,7 @@ class ResponseContentContentTypeSchemaApi( PostRequiredValidationResponseBodyForContentTypes, PostDateFormatResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, + PostContainsKeywordValidationResponseBodyForContentTypes, PostRelativeJsonPointerFormatResponseBodyForContentTypes, PostUuidFormatResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_keyword_validation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_keyword_validation.py new file mode 100644 index 00000000000..153a0906270 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_keyword_validation.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class Contains( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + inclusive_minimum: typing.Union[int, float] = 5 + + + +@dataclasses.dataclass(frozen=True) +class ContainsKeywordValidation( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + contains: typing.Type[Contains] = dataclasses.field(default_factory=lambda: Contains) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_with_null_instance_elements.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_with_null_instance_elements.py new file mode 100644 index 00000000000..b72261d7a61 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/contains_with_null_instance_elements.py @@ -0,0 +1,27 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +Contains: typing_extensions.TypeAlias = schemas.NoneSchema + + +@dataclasses.dataclass(frozen=True) +class ContainsWithNullInstanceElements( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + contains: typing.Type[Contains] = dataclasses.field(default_factory=lambda: Contains) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/items_contains.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/items_contains.py new file mode 100644 index 00000000000..a19ff9b257b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/items_contains.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class Contains( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + multiple_of: typing.Union[int, float] = 3 + + + +@dataclasses.dataclass(frozen=True) +class Items( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + multiple_of: typing.Union[int, float] = 2 + + + +class ItemsContainsTuple( + typing.Tuple[ + schemas.OUTPUT_BASE_TYPES, + ... + ] +): + + def __new__(cls, arg: typing.Union[ItemsContainsTupleInput, ItemsContainsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + return ItemsContains.validate(arg, configuration=configuration) +ItemsContainsTupleInput = typing.Union[ + typing.List[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ], + typing.Tuple[ + typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + ... + ] +] + + +@dataclasses.dataclass(frozen=True) +class ItemsContains( + schemas.Schema[schemas.immutabledict, ItemsContainsTuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({tuple}) + items: typing.Type[Items] = dataclasses.field(default_factory=lambda: Items) # type: ignore + contains: typing.Type[Contains] = dataclasses.field(default_factory=lambda: Contains) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + tuple: ItemsContainsTuple + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + ItemsContainsTupleInput, + ItemsContainsTuple, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> ItemsContainsTuple: + return super().validate_base( + arg, + configuration=configuration, + ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 1eb55074d69..42497023725 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -34,6 +34,8 @@ from unit_test_api.components.schema.by_number import ByNumber from unit_test_api.components.schema.by_small_number import BySmallNumber from unit_test_api.components.schema.const_nul_characters_in_strings import ConstNulCharactersInStrings +from unit_test_api.components.schema.contains_keyword_validation import ContainsKeywordValidation +from unit_test_api.components.schema.contains_with_null_instance_elements import ContainsWithNullInstanceElements from unit_test_api.components.schema.date_format import DateFormat from unit_test_api.components.schema.date_time_format import DateTimeFormat from unit_test_api.components.schema.duration_format import DurationFormat @@ -54,6 +56,7 @@ from unit_test_api.components.schema.ipv6_format import Ipv6Format from unit_test_api.components.schema.iri_format import IriFormat from unit_test_api.components.schema.iri_reference_format import IriReferenceFormat +from unit_test_api.components.schema.items_contains import ItemsContains from unit_test_api.components.schema.items_does_not_look_in_applicators_valid_case import ItemsDoesNotLookInApplicatorsValidCase from unit_test_api.components.schema.items_with_null_instance_elements import ItemsWithNullInstanceElements from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/__init__.py new file mode 100644 index 00000000000..ec0b589b9c4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_contains_keyword_validation_request_body import RequestBodyPostContainsKeywordValidationRequestBody + +path = "/requestBody/postContainsKeywordValidationRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py new file mode 100644 index 00000000000..830dda4b153 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import contains_keyword_validation + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_contains_keyword_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_contains_keyword_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_contains_keyword_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostContainsKeywordValidationRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_contains_keyword_validation_request_body = BaseApi._post_contains_keyword_validation_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_contains_keyword_validation_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..765850d9d99 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import contains_keyword_validation +Schema2: typing_extensions.TypeAlias = contains_keyword_validation.ContainsKeywordValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/__init__.py new file mode 100644 index 00000000000..175ffced8f2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_contains_with_null_instance_elements_request_body import RequestBodyPostContainsWithNullInstanceElementsRequestBody + +path = "/requestBody/postContainsWithNullInstanceElementsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py new file mode 100644 index 00000000000..bd41275d157 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import contains_with_null_instance_elements + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_contains_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_contains_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_contains_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostContainsWithNullInstanceElementsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_contains_with_null_instance_elements_request_body = BaseApi._post_contains_with_null_instance_elements_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_contains_with_null_instance_elements_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..0cf1ca525f1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import contains_with_null_instance_elements +Schema2: typing_extensions.TypeAlias = contains_with_null_instance_elements.ContainsWithNullInstanceElements diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/__init__.py new file mode 100644 index 00000000000..650fd0710f7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_items_contains_request_body import RequestBodyPostItemsContainsRequestBody + +path = "/requestBody/postItemsContainsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py new file mode 100644 index 00000000000..7692eaf1b4f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import items_contains + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_items_contains_request_body( + self, + body: typing.Union[ + items_contains.ItemsContainsTupleInput, + items_contains.ItemsContainsTuple + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_items_contains_request_body( + self, + body: typing.Union[ + items_contains.ItemsContainsTupleInput, + items_contains.ItemsContainsTuple + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_items_contains_request_body( + self, + body: typing.Union[ + items_contains.ItemsContainsTupleInput, + items_contains.ItemsContainsTuple + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostItemsContainsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_items_contains_request_body = BaseApi._post_items_contains_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_items_contains_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..d3c7140b9d2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import items_contains +Schema2: typing_extensions.TypeAlias = items_contains.ItemsContains diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..5f627abc106 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_contains_keyword_validation_response_body_for_content_types import ResponseBodyPostContainsKeywordValidationResponseBodyForContentTypes + +path = "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..566cf9d7feb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_contains_keyword_validation_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_contains_keyword_validation_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_contains_keyword_validation_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostContainsKeywordValidationResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_contains_keyword_validation_response_body_for_content_types = BaseApi._post_contains_keyword_validation_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_contains_keyword_validation_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..765850d9d99 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import contains_keyword_validation +Schema2: typing_extensions.TypeAlias = contains_keyword_validation.ContainsKeywordValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..2ab53071697 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes + +path = "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..e79c3d855bd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_contains_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_contains_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_contains_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostContainsWithNullInstanceElementsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_contains_with_null_instance_elements_response_body_for_content_types = BaseApi._post_contains_with_null_instance_elements_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_contains_with_null_instance_elements_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..0cf1ca525f1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import contains_with_null_instance_elements +Schema2: typing_extensions.TypeAlias = contains_with_null_instance_elements.ContainsWithNullInstanceElements diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..208cdbb491a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_items_contains_response_body_for_content_types import ResponseBodyPostItemsContainsResponseBodyForContentTypes + +path = "/responseBody/postItemsContainsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..9f632e99a65 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_items_contains_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_items_contains_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_items_contains_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostItemsContainsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_items_contains_response_body_for_content_types = BaseApi._post_items_contains_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_items_contains_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..7756ebc9159 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: application_json_schema.items_contains.ItemsContainsTuple + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..d3c7140b9d2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import items_contains +Schema2: typing_extensions.TypeAlias = items_contains.ItemsContains diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_keyword_validation.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_keyword_validation.py new file mode 100644 index 00000000000..12e75f4046f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_keyword_validation.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.contains_keyword_validation import ContainsKeywordValidation +from unit_test_api.configurations import schema_configuration + + +class TestContainsKeywordValidation(unittest.TestCase): + """ContainsKeywordValidation unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_empty_array_is_invalid_fails(self): + # empty array is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ContainsKeywordValidation.validate( + [ + ], + configuration=self.configuration + ) + + def test_array_with_item_matching_schema5_is_valid_passes(self): + # array with item matching schema (5) is valid + ContainsKeywordValidation.validate( + [ + 3, + 4, + 5, + ], + configuration=self.configuration + ) + + def test_array_with_two_items_matching_schema56_is_valid_passes(self): + # array with two items matching schema (5, 6) is valid + ContainsKeywordValidation.validate( + [ + 3, + 4, + 5, + 6, + ], + configuration=self.configuration + ) + + def test_not_array_is_valid_passes(self): + # not array is valid + ContainsKeywordValidation.validate( + { + }, + configuration=self.configuration + ) + + def test_array_without_items_matching_schema_is_invalid_fails(self): + # array without items matching schema is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ContainsKeywordValidation.validate( + [ + 2, + 3, + 4, + ], + configuration=self.configuration + ) + + def test_array_with_item_matching_schema6_is_valid_passes(self): + # array with item matching schema (6) is valid + ContainsKeywordValidation.validate( + [ + 3, + 4, + 6, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_with_null_instance_elements.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_with_null_instance_elements.py new file mode 100644 index 00000000000..dd1ebeb963e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_contains_with_null_instance_elements.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.contains_with_null_instance_elements import ContainsWithNullInstanceElements +from unit_test_api.configurations import schema_configuration + + +class TestContainsWithNullInstanceElements(unittest.TestCase): + """ContainsWithNullInstanceElements unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_allows_null_items_passes(self): + # allows null items + ContainsWithNullInstanceElements.validate( + [ + None, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_items_contains.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_items_contains.py new file mode 100644 index 00000000000..fd010a96270 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_items_contains.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.items_contains import ItemsContains +from unit_test_api.configurations import schema_configuration + + +class TestItemsContains(unittest.TestCase): + """ItemsContains unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_does_not_match_items_matches_contains_fails(self): + # does not match items, matches contains + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ItemsContains.validate( + [ + 3, + 6, + 9, + ], + configuration=self.configuration + ) + + def test_matches_neither_items_nor_contains_fails(self): + # matches neither items nor contains + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ItemsContains.validate( + [ + 1, + 5, + ], + configuration=self.configuration + ) + + def test_matches_items_does_not_match_contains_fails(self): + # matches items, does not match contains + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ItemsContains.validate( + [ + 2, + 4, + 8, + ], + configuration=self.configuration + ) + + def test_matches_both_items_and_contains_passes(self): + # matches both items and contains + ItemsContains.validate( + [ + 6, + 12, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/test_post.py new file mode 100644 index 00000000000..d681ebdb056 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_keyword_validation_request_body/test_post.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_empty_array_is_invalid_fails(self): + content_type = 'application/json' + # empty array is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_array_with_item_matching_schema5_is_valid_passes(self): + content_type = 'application/json' + # array with item matching schema (5) is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 4, + 5, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postContainsKeywordValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_array_with_two_items_matching_schema56_is_valid_passes(self): + content_type = 'application/json' + # array with two items matching schema (5, 6) is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 4, + 5, + 6, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postContainsKeywordValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_not_array_is_valid_passes(self): + content_type = 'application/json' + # not array is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postContainsKeywordValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_array_without_items_matching_schema_is_invalid_fails(self): + content_type = 'application/json' + # array without items matching schema is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 3, + 4, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_array_with_item_matching_schema6_is_valid_passes(self): + content_type = 'application/json' + # array with item matching schema (6) is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 4, + 6, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postContainsKeywordValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/test_post.py new file mode 100644 index 00000000000..7ac74587dfc --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_contains_with_null_instance_elements_request_body/test_post.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_allows_null_items_passes(self): + content_type = 'application/json' + # allows null items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + None, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postContainsWithNullInstanceElementsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/test_post.py new file mode 100644 index 00000000000..eb33d98333b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_items_contains_request_body/test_post.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_items_contains_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_does_not_match_items_matches_contains_fails(self): + content_type = 'application/json' + # does not match items, matches contains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 6, + 9, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_matches_neither_items_nor_contains_fails(self): + content_type = 'application/json' + # matches neither items nor contains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 5, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_matches_items_does_not_match_contains_fails(self): + content_type = 'application/json' + # matches items, does not match contains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 4, + 8, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_matches_both_items_and_contains_passes(self): + content_type = 'application/json' + # matches both items and contains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 6, + 12, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postItemsContainsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..c8a4ac8823f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_keyword_validation_response_body_for_content_types/test_post.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_empty_array_is_invalid_fails(self): + # empty array is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_array_with_item_matching_schema5_is_valid_passes(self): + # array with item matching schema (5) is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 4, + 5, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_array_with_two_items_matching_schema56_is_valid_passes(self): + # array with two items matching schema (5, 6) is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 4, + 5, + 6, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_not_array_is_valid_passes(self): + # not array is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_array_without_items_matching_schema_is_invalid_fails(self): + # array without items matching schema is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 3, + 4, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_array_with_item_matching_schema6_is_valid_passes(self): + # array with item matching schema (6) is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 4, + 6, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsKeywordValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..f7a31ba317d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_contains_with_null_instance_elements_response_body_for_content_types/test_post.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_allows_null_items_passes(self): + # allows null items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + None, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..7aa654ea910 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_items_contains_response_body_for_content_types/test_post.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_does_not_match_items_matches_contains_fails(self): + # does not match items, matches contains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 3, + 6, + 9, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postItemsContainsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_matches_neither_items_nor_contains_fails(self): + # matches neither items nor contains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 5, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postItemsContainsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_matches_items_does_not_match_contains_fails(self): + # matches items, does not match contains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 4, + 8, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postItemsContainsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_matches_both_items_and_contains_passes(self): + # matches both items and contains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 6, + 12, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postItemsContainsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index ce48e159820..68db01dadb4 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -793,114 +793,6 @@ paths: - path.post - contentType_json - contains - /requestBody/postContainsKeywordWithConstKeywordRequestBody: - post: - operationId: postContainsKeywordWithConstKeywordRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsKeywordWithConstKeyword' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsKeywordWithConstKeyword' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - contains - /responseBody/postContainsKeywordWithConstKeywordResponseBodyForContentTypes: - post: - operationId: postContainsKeywordWithConstKeywordResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsKeywordWithConstKeyword' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsKeywordWithConstKeyword' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - contains - /requestBody/postContainsKeywordWithBooleanSchemaTrueRequestBody: - post: - operationId: postContainsKeywordWithBooleanSchemaTrueRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaTrue' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - contains - /responseBody/postContainsKeywordWithBooleanSchemaTrueResponseBodyForContentTypes: - post: - operationId: postContainsKeywordWithBooleanSchemaTrueResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaTrue' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - contains - /requestBody/postContainsKeywordWithBooleanSchemaFalseRequestBody: - post: - operationId: postContainsKeywordWithBooleanSchemaFalseRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaFalse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaFalse' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - contains - /responseBody/postContainsKeywordWithBooleanSchemaFalseResponseBodyForContentTypes: - post: - operationId: postContainsKeywordWithBooleanSchemaFalseResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsKeywordWithBooleanSchemaFalse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsKeywordWithBooleanSchemaFalse' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - contains /requestBody/postItemsContainsRequestBody: post: operationId: postItemsContainsRequestBody @@ -937,42 +829,6 @@ paths: - path.post - contentType_json - contains - /requestBody/postContainsWithFalseIfSubschemaRequestBody: - post: - operationId: postContainsWithFalseIfSubschemaRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsWithFalseIfSubschema' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsWithFalseIfSubschema' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - contains - /responseBody/postContainsWithFalseIfSubschemaResponseBodyForContentTypes: - post: - operationId: postContainsWithFalseIfSubschemaResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ContainsWithFalseIfSubschema' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ContainsWithFalseIfSubschema' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - contains /requestBody/postContainsWithNullInstanceElementsRequestBody: post: operationId: postContainsWithNullInstanceElementsRequestBody @@ -4135,27 +3991,12 @@ components: $schema: https://json-schema.org/draft/2020-12/schema contains: minimum: 5 - ContainsKeywordWithConstKeyword: - $schema: https://json-schema.org/draft/2020-12/schema - contains: - const: 5 - ContainsKeywordWithBooleanSchemaTrue: - $schema: https://json-schema.org/draft/2020-12/schema - contains: true - ContainsKeywordWithBooleanSchemaFalse: - $schema: https://json-schema.org/draft/2020-12/schema - contains: false ItemsContains: $schema: https://json-schema.org/draft/2020-12/schema items: multipleOf: 2 contains: multipleOf: 3 - ContainsWithFalseIfSubschema: - $schema: https://json-schema.org/draft/2020-12/schema - contains: - if: false - else: true ContainsWithNullInstanceElements: $schema: https://json-schema.org/draft/2020-12/schema contains: @@ -4847,54 +4688,6 @@ components: description: not array is valid data: {} valid: true - ContainsKeywordWithConstKeyword: - ArrayWithItem5IsValid: - description: array with item 5 is valid - data: - - 3 - - 4 - - 5 - valid: true - ArrayWithTwoItems5IsValid: - description: array with two items 5 is valid - data: - - 3 - - 4 - - 5 - - 5 - valid: true - ArrayWithoutItem5IsInvalid: - description: array without item 5 is invalid - data: - - 1 - - 2 - - 3 - - 4 - valid: false - ContainsKeywordWithBooleanSchemaTrue: - AnyNonEmptyArrayIsValid: - description: any non-empty array is valid - data: - - foo - valid: true - EmptyArrayIsInvalid: - description: empty array is invalid - data: [] - valid: false - ContainsKeywordWithBooleanSchemaFalse: - AnyNonEmptyArrayIsInvalid: - description: any non-empty array is invalid - data: - - foo - valid: false - EmptyArrayIsInvalid: - description: empty array is invalid - data: [] - valid: false - NonArraysAreValid: - description: non-arrays are valid - data: contains does not apply to strings - valid: true ItemsContains: MatchesItemsDoesNotMatchContains: description: matches items, does not match contains @@ -4922,16 +4715,6 @@ components: - 1 - 5 valid: false - ContainsWithFalseIfSubschema: - AnyNonEmptyArrayIsValid: - description: any non-empty array is valid - data: - - foo - valid: true - EmptyArrayIsInvalid: - description: empty array is invalid - data: [] - valid: false ContainsWithNullInstanceElements: AllowsNullItems: description: allows null items diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index d6ecb01e85c..6277553b907 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -136,6 +136,12 @@ class ExclusionReason: "const with -2.0 matches integer and float types": ExclusionReason.bug_with_non_string_const_values, "const with null": ExclusionReason.bug_with_non_string_const_values, }, + (json_schema_test_draft, 'contains.json'): { + "contains keyword with boolean schema false": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "contains with false if subschema": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "contains keyword with boolean schema true": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "contains keyword with const keyword": ExclusionReason.bug_with_non_string_const_values, + }, (json_schema_test_draft, 'default.json'): { 'invalid type for default': ExclusionReason.v303_requires_that_the_default_value_is_an_allowed_type, }, From 6190cc18a6851d3554964867d5fb402af03f5288 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 21 Sep 2023 14:23:51 -0700 Subject: [PATCH 11/34] Samples regen --- .../python/.openapi-generator/FILES | 106 ------------------ 1 file changed, 106 deletions(-) diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 1a786342108..3f549a516b3 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -2755,112 +2755,6 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test__not.py -test/components/schema/test_additionalproperties_are_allowed_by_default.py -test/components/schema/test_additionalproperties_can_exist_by_itself.py -test/components/schema/test_additionalproperties_does_not_look_in_applicators.py -test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py -test/components/schema/test_additionalproperties_with_schema.py -test/components/schema/test_allof.py -test/components/schema/test_allof_combined_with_anyof_oneof.py -test/components/schema/test_allof_simple_types.py -test/components/schema/test_allof_with_base_schema.py -test/components/schema/test_allof_with_one_empty_schema.py -test/components/schema/test_allof_with_the_first_empty_schema.py -test/components/schema/test_allof_with_the_last_empty_schema.py -test/components/schema/test_allof_with_two_empty_schemas.py -test/components/schema/test_anyof.py -test/components/schema/test_anyof_complex_types.py -test/components/schema/test_anyof_with_base_schema.py -test/components/schema/test_anyof_with_one_empty_schema.py -test/components/schema/test_array_type_matches_arrays.py -test/components/schema/test_boolean_type_matches_booleans.py -test/components/schema/test_by_int.py -test/components/schema/test_by_number.py -test/components/schema/test_by_small_number.py -test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_contains_keyword_validation.py -test/components/schema/test_contains_with_null_instance_elements.py -test/components/schema/test_date_format.py -test/components/schema/test_date_time_format.py -test/components/schema/test_duration_format.py -test/components/schema/test_email_format.py -test/components/schema/test_enum_with0_does_not_match_false.py -test/components/schema/test_enum_with1_does_not_match_true.py -test/components/schema/test_enum_with_escaped_characters.py -test/components/schema/test_enum_with_false_does_not_match0.py -test/components/schema/test_enum_with_true_does_not_match1.py -test/components/schema/test_enums_in_properties.py -test/components/schema/test_float_division_inf.py -test/components/schema/test_forbidden_property.py -test/components/schema/test_hostname_format.py -test/components/schema/test_idn_email_format.py -test/components/schema/test_idn_hostname_format.py -test/components/schema/test_integer_type_matches_integers.py -test/components/schema/test_ipv4_format.py -test/components/schema/test_ipv6_format.py -test/components/schema/test_iri_format.py -test/components/schema/test_iri_reference_format.py -test/components/schema/test_items_contains.py -test/components/schema/test_items_does_not_look_in_applicators_valid_case.py -test/components/schema/test_items_with_null_instance_elements.py -test/components/schema/test_json_pointer_format.py -test/components/schema/test_maximum_validation.py -test/components/schema/test_maximum_validation_with_unsigned_integer.py -test/components/schema/test_maxitems_validation.py -test/components/schema/test_maxlength_validation.py -test/components/schema/test_maxproperties0_means_the_object_is_empty.py -test/components/schema/test_maxproperties_validation.py -test/components/schema/test_minimum_validation.py -test/components/schema/test_minimum_validation_with_signed_integer.py -test/components/schema/test_minitems_validation.py -test/components/schema/test_minlength_validation.py -test/components/schema/test_minproperties_validation.py -test/components/schema/test_multiple_types_can_be_specified_in_an_array.py -test/components/schema/test_nested_allof_to_check_validation_semantics.py -test/components/schema/test_nested_anyof_to_check_validation_semantics.py -test/components/schema/test_nested_items.py -test/components/schema/test_nested_oneof_to_check_validation_semantics.py -test/components/schema/test_not_more_complex_schema.py -test/components/schema/test_nul_characters_in_strings.py -test/components/schema/test_null_type_matches_only_the_null_object.py -test/components/schema/test_number_type_matches_numbers.py -test/components/schema/test_object_properties_validation.py -test/components/schema/test_object_type_matches_objects.py -test/components/schema/test_oneof.py -test/components/schema/test_oneof_complex_types.py -test/components/schema/test_oneof_with_base_schema.py -test/components/schema/test_oneof_with_empty_schema.py -test/components/schema/test_oneof_with_required.py -test/components/schema/test_pattern_is_not_anchored.py -test/components/schema/test_pattern_validation.py -test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py -test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_properties_with_escaped_characters.py -test/components/schema/test_properties_with_null_valued_instance_properties.py -test/components/schema/test_property_named_ref_that_is_not_a_reference.py -test/components/schema/test_regex_format.py -test/components/schema/test_relative_json_pointer_format.py -test/components/schema/test_required_default_validation.py -test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_required_validation.py -test/components/schema/test_required_with_empty_array.py -test/components/schema/test_required_with_escaped_characters.py -test/components/schema/test_simple_enum_validation.py -test/components/schema/test_small_multiple_of_large_integer.py -test/components/schema/test_string_type_matches_strings.py -test/components/schema/test_time_format.py -test/components/schema/test_type_array_object_or_null.py -test/components/schema/test_type_array_or_object.py -test/components/schema/test_type_as_array_with_one_item.py -test/components/schema/test_uniqueitems_false_validation.py -test/components/schema/test_uniqueitems_false_with_an_array_of_items.py -test/components/schema/test_uniqueitems_validation.py -test/components/schema/test_uniqueitems_with_an_array_of_items.py -test/components/schema/test_uri_format.py -test/components/schema/test_uri_reference_format.py -test/components/schema/test_uri_template_format.py -test/components/schema/test_uuid_format.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py From d2a975e608b5f26df65f9889f9300ab30ddcecdd Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 22 Sep 2023 09:34:03 -0700 Subject: [PATCH 12/34] Adds dependentRequired python tests --- .../python/.openapi-generator/FILES | 130 ++++++++ .../client/3_1_0_unit_test/python/README.md | 12 + .../docs/apis/tags/content_type_json_api.md | 8 + .../docs/apis/tags/dependent_required_api.md | 21 ++ .../apis/tags/operation_request_body_api.md | 4 + .../python/docs/apis/tags/path_post_api.md | 8 + ...esponse_content_content_type_schema_api.md | 4 + .../dependencies_with_escaped_characters.md | 12 + .../components/schema/empty_dependents.md | 12 + .../schema/multiple_dependents_required.md | 12 + .../components/schema/single_dependency.md | 12 + .../post.md | 116 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 24 ++ ...es_with_escaped_characters_request_body.py | 13 + ...body_post_empty_dependents_request_body.py | 13 + ...ltiple_dependents_required_request_body.py | 13 + ...ody_post_single_dependency_request_body.py | 13 + ...racters_response_body_for_content_types.py | 13 + ...endents_response_body_for_content_types.py | 13 + ...equired_response_body_for_content_types.py | 13 + ...endency_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 16 + .../apis/tags/dependent_required_api.py | 32 ++ .../apis/tags/operation_request_body_api.py | 8 + .../unit_test_api/apis/tags/path_post_api.py | 16 + ...esponse_content_content_type_schema_api.py | 8 + .../dependencies_with_escaped_characters.py | 37 +++ .../components/schema/empty_dependents.py | 30 ++ .../schema/multiple_dependents_required.py | 32 ++ .../components/schema/single_dependency.py | 31 ++ .../components/schemas/__init__.py | 4 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + ...st_dependencies_with_escaped_characters.py | 73 +++++ .../schema/test_empty_dependents.py | 50 ++++ .../test_multiple_dependents_required.py | 96 ++++++ .../schema/test_single_dependency.py | 89 ++++++ .../__init__.py | 0 .../test_post.py | 140 +++++++++ .../__init__.py | 0 .../test_post.py | 127 ++++++++ .../__init__.py | 0 .../test_post.py | 191 ++++++++++++ .../__init__.py | 0 .../test_post.py | 238 +++++++++++++++ .../__init__.py | 0 .../test_post.py | 161 ++++++++++ .../__init__.py | 0 .../test_post.py | 128 ++++++++ .../__init__.py | 0 .../test_post.py | 222 ++++++++++++++ .../__init__.py | 0 .../test_post.py | 249 ++++++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 282 ++++++++++++++++++ .../3_1/unit_test_spec/spec_writer.py | 4 +- 137 files changed, 5016 insertions(+), 2 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/empty_dependents.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_dependents_required.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/single_dependency.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/empty_dependents.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_dependents_required.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/single_dependency.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_empty_dependents.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_dependents_required.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_single_dependency.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 3f549a516b3..a96a6fffdef 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -9,6 +9,7 @@ docs/apis/tags/any_of_api.md docs/apis/tags/const_api.md docs/apis/tags/contains_api.md docs/apis/tags/content_type_json_api.md +docs/apis/tags/dependent_required_api.md docs/apis/tags/enum_api.md docs/apis/tags/format_api.md docs/apis/tags/items_api.md @@ -59,8 +60,10 @@ docs/components/schema/contains_keyword_validation.md docs/components/schema/contains_with_null_instance_elements.md docs/components/schema/date_format.md docs/components/schema/date_time_format.md +docs/components/schema/dependencies_with_escaped_characters.md docs/components/schema/duration_format.md docs/components/schema/email_format.md +docs/components/schema/empty_dependents.md docs/components/schema/enum_with0_does_not_match_false.md docs/components/schema/enum_with1_does_not_match_true.md docs/components/schema/enum_with_escaped_characters.md @@ -92,6 +95,7 @@ docs/components/schema/minimum_validation_with_signed_integer.md docs/components/schema/minitems_validation.md docs/components/schema/minlength_validation.md docs/components/schema/minproperties_validation.md +docs/components/schema/multiple_dependents_required.md docs/components/schema/multiple_types_can_be_specified_in_an_array.md docs/components/schema/nested_allof_to_check_validation_semantics.md docs/components/schema/nested_anyof_to_check_validation_semantics.md @@ -123,6 +127,7 @@ docs/components/schema/required_validation.md docs/components/schema/required_with_empty_array.md docs/components/schema/required_with_escaped_characters.md docs/components/schema/simple_enum_validation.md +docs/components/schema/single_dependency.md docs/components/schema/small_multiple_of_large_integer.md docs/components/schema/string_type_matches_strings.md docs/components/schema/time_format.md @@ -191,10 +196,14 @@ docs/paths/request_body_post_date_format_request_body/post.md docs/paths/request_body_post_date_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md +docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_duration_format_request_body/post.md docs/paths/request_body_post_duration_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_email_format_request_body/post.md docs/paths/request_body_post_email_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_empty_dependents_request_body/post.md +docs/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md @@ -257,6 +266,8 @@ docs/paths/request_body_post_minlength_validation_request_body/post.md docs/paths/request_body_post_minlength_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minproperties_validation_request_body/post.md docs/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_multiple_dependents_required_request_body/post.md +docs/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -321,6 +332,8 @@ docs/paths/request_body_post_required_with_escaped_characters_request_body/post. docs/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_simple_enum_validation_request_body/post.md docs/paths/request_body_post_simple_enum_validation_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_single_dependency_request_body/post.md +docs/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_string_type_matches_strings_request_body/post.md @@ -403,10 +416,14 @@ docs/paths/response_body_post_date_format_response_body_for_content_types/post.m docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md +docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_email_format_response_body_for_content_types/post.md docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md +docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md @@ -469,6 +486,8 @@ docs/paths/response_body_post_minlength_validation_response_body_for_content_typ docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md +docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -533,6 +552,8 @@ docs/paths/response_body_post_required_with_escaped_characters_response_body_for docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md +docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md @@ -600,8 +621,10 @@ src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_reque src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py +src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py +src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py @@ -633,6 +656,7 @@ src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_in src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py +src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py src/unit_test_api/apis/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py @@ -665,6 +689,7 @@ src/unit_test_api/apis/paths/request_body_post_required_validation_request_body. src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py +src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py src/unit_test_api/apis/paths/request_body_post_small_multiple_of_large_integer_request_body.py src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py src/unit_test_api/apis/paths/request_body_post_time_format_request_body.py @@ -706,8 +731,10 @@ src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_resp src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py @@ -739,6 +766,7 @@ src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_i src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py @@ -771,6 +799,7 @@ src/unit_test_api/apis/paths/response_body_post_required_validation_response_bod src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_time_format_response_body_for_content_types.py @@ -794,6 +823,7 @@ src/unit_test_api/apis/tags/any_of_api.py src/unit_test_api/apis/tags/const_api.py src/unit_test_api/apis/tags/contains_api.py src/unit_test_api/apis/tags/content_type_json_api.py +src/unit_test_api/apis/tags/dependent_required_api.py src/unit_test_api/apis/tags/enum_api.py src/unit_test_api/apis/tags/format_api.py src/unit_test_api/apis/tags/items_api.py @@ -846,8 +876,10 @@ src/unit_test_api/components/schema/contains_keyword_validation.py src/unit_test_api/components/schema/contains_with_null_instance_elements.py src/unit_test_api/components/schema/date_format.py src/unit_test_api/components/schema/date_time_format.py +src/unit_test_api/components/schema/dependencies_with_escaped_characters.py src/unit_test_api/components/schema/duration_format.py src/unit_test_api/components/schema/email_format.py +src/unit_test_api/components/schema/empty_dependents.py src/unit_test_api/components/schema/enum_with0_does_not_match_false.py src/unit_test_api/components/schema/enum_with1_does_not_match_true.py src/unit_test_api/components/schema/enum_with_escaped_characters.py @@ -879,6 +911,7 @@ src/unit_test_api/components/schema/minimum_validation_with_signed_integer.py src/unit_test_api/components/schema/minitems_validation.py src/unit_test_api/components/schema/minlength_validation.py src/unit_test_api/components/schema/minproperties_validation.py +src/unit_test_api/components/schema/multiple_dependents_required.py src/unit_test_api/components/schema/multiple_types_can_be_specified_in_an_array.py src/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py src/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py @@ -910,6 +943,7 @@ src/unit_test_api/components/schema/required_validation.py src/unit_test_api/components/schema/required_with_empty_array.py src/unit_test_api/components/schema/required_with_escaped_characters.py src/unit_test_api/components/schema/simple_enum_validation.py +src/unit_test_api/components/schema/single_dependency.py src/unit_test_api/components/schema/small_multiple_of_large_integer.py src/unit_test_api/components/schema/string_type_matches_strings.py src/unit_test_api/components/schema/time_format.py @@ -1173,6 +1207,15 @@ src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/req src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py @@ -1191,6 +1234,15 @@ src/unit_test_api/paths/request_body_post_email_format_request_body/post/request src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/__init__.py src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -1470,6 +1522,15 @@ src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/ src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/__init__.py src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py @@ -1758,6 +1819,15 @@ src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/po src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/__init__.py src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py @@ -2100,6 +2170,14 @@ src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_co src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py @@ -2116,6 +2194,14 @@ src/unit_test_api/paths/response_body_post_email_format_response_body_for_conten src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -2364,6 +2450,14 @@ src/unit_test_api/paths/response_body_post_minproperties_validation_response_bod src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py @@ -2620,6 +2714,14 @@ src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_ src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py @@ -2755,6 +2857,18 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py +test/components/schema/test_dependencies_with_escaped_characters.py +test/components/schema/test_empty_dependents.py +test/components/schema/test_multiple_dependents_required.py +test/components/schema/test_single_dependency.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3021,10 +3135,14 @@ test/test_paths/test_request_body_post_date_format_request_body/__init__.py test/test_paths/test_request_body_post_date_format_request_body/test_post.py test/test_paths/test_request_body_post_date_time_format_request_body/__init__.py test/test_paths/test_request_body_post_date_time_format_request_body/test_post.py +test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py +test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py test/test_paths/test_request_body_post_duration_format_request_body/__init__.py test/test_paths/test_request_body_post_duration_format_request_body/test_post.py test/test_paths/test_request_body_post_email_format_request_body/__init__.py test/test_paths/test_request_body_post_email_format_request_body/test_post.py +test/test_paths/test_request_body_post_empty_dependents_request_body/__init__.py +test/test_paths/test_request_body_post_empty_dependents_request_body/test_post.py test/test_paths/test_request_body_post_enum_with0_does_not_match_false_request_body/__init__.py test/test_paths/test_request_body_post_enum_with0_does_not_match_false_request_body/test_post.py test/test_paths/test_request_body_post_enum_with1_does_not_match_true_request_body/__init__.py @@ -3087,6 +3205,8 @@ test/test_paths/test_request_body_post_minlength_validation_request_body/__init_ test/test_paths/test_request_body_post_minlength_validation_request_body/test_post.py test/test_paths/test_request_body_post_minproperties_validation_request_body/__init__.py test/test_paths/test_request_body_post_minproperties_validation_request_body/test_post.py +test/test_paths/test_request_body_post_multiple_dependents_required_request_body/__init__.py +test/test_paths/test_request_body_post_multiple_dependents_required_request_body/test_post.py test/test_paths/test_request_body_post_multiple_types_can_be_specified_in_an_array_request_body/__init__.py test/test_paths/test_request_body_post_multiple_types_can_be_specified_in_an_array_request_body/test_post.py test/test_paths/test_request_body_post_nested_allof_to_check_validation_semantics_request_body/__init__.py @@ -3151,6 +3271,8 @@ test/test_paths/test_request_body_post_required_with_escaped_characters_request_ test/test_paths/test_request_body_post_required_with_escaped_characters_request_body/test_post.py test/test_paths/test_request_body_post_simple_enum_validation_request_body/__init__.py test/test_paths/test_request_body_post_simple_enum_validation_request_body/test_post.py +test/test_paths/test_request_body_post_single_dependency_request_body/__init__.py +test/test_paths/test_request_body_post_single_dependency_request_body/test_post.py test/test_paths/test_request_body_post_small_multiple_of_large_integer_request_body/__init__.py test/test_paths/test_request_body_post_small_multiple_of_large_integer_request_body/test_post.py test/test_paths/test_request_body_post_string_type_matches_strings_request_body/__init__.py @@ -3233,10 +3355,14 @@ test/test_paths/test_response_body_post_date_format_response_body_for_content_ty test/test_paths/test_response_body_post_date_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_duration_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_duration_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_email_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_email_format_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/__init__.py @@ -3299,6 +3425,8 @@ test/test_paths/test_response_body_post_minlength_validation_response_body_for_c test/test_paths/test_response_body_post_minlength_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_minproperties_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_minproperties_validation_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/__init__.py @@ -3363,6 +3491,8 @@ test/test_paths/test_response_body_post_required_with_escaped_characters_respons test/test_paths/test_response_body_post_required_with_escaped_characters_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_simple_enum_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_simple_enum_validation_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_small_multiple_of_large_integer_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_small_multiple_of_large_integer_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_string_type_matches_strings_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 0d1dd561a8c..91d605d66df 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -197,8 +197,10 @@ HTTP request | Method | Description /requestBody/postContainsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | /requestBody/postDateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) | /requestBody/postDateTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) | +/requestBody/postDependenciesWithEscapedCharactersRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | /requestBody/postDurationFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) | /requestBody/postEmailFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) | +/requestBody/postEmptyDependentsRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) | /requestBody/postEnumWith0DoesNotMatchFalseRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_enum_with0_does_not_match_false_request_body](docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_enum_with0_does_not_match_false_request_body](docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_enum_with0_does_not_match_false_request_body](docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_enum_with0_does_not_match_false_request_body](docs/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) | /requestBody/postEnumWith1DoesNotMatchTrueRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_enum_with1_does_not_match_true_request_body](docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_enum_with1_does_not_match_true_request_body](docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_enum_with1_does_not_match_true_request_body](docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_enum_with1_does_not_match_true_request_body](docs/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) | /requestBody/postEnumWithEscapedCharactersRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_enum_with_escaped_characters_request_body](docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_enum_with_escaped_characters_request_body](docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_enum_with_escaped_characters_request_body](docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_enum_with_escaped_characters_request_body](docs/paths/request_body_post_enum_with_escaped_characters_request_body/post.md) | @@ -230,6 +232,7 @@ HTTP request | Method | Description /requestBody/postMinitemsValidationRequestBody **post** | [MinItemsApi](docs/apis/tags/min_items_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) | /requestBody/postMinlengthValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) [MinLengthApi](docs/apis/tags/min_length_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) | /requestBody/postMinpropertiesValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) [MinPropertiesApi](docs/apis/tags/min_properties_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) | +/requestBody/postMultipleDependentsRequiredRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) | /requestBody/postMultipleTypesCanBeSpecifiedInAnArrayRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | /requestBody/postNestedAllofToCheckValidationSemanticsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) [AllOfApi](docs/apis/tags/all_of_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | /requestBody/postNestedAnyofToCheckValidationSemanticsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) [AnyOfApi](docs/apis/tags/any_of_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) | @@ -262,6 +265,7 @@ HTTP request | Method | Description /requestBody/postRequiredWithEmptyArrayRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_required_with_empty_array_request_body](docs/paths/request_body_post_required_with_empty_array_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_with_empty_array_request_body](docs/paths/request_body_post_required_with_empty_array_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_with_empty_array_request_body](docs/paths/request_body_post_required_with_empty_array_request_body/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_with_empty_array_request_body](docs/paths/request_body_post_required_with_empty_array_request_body/post.md) | /requestBody/postRequiredWithEscapedCharactersRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_required_with_escaped_characters_request_body](docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_with_escaped_characters_request_body](docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_with_escaped_characters_request_body](docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_with_escaped_characters_request_body](docs/paths/request_body_post_required_with_escaped_characters_request_body/post.md) | /requestBody/postSimpleEnumValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_simple_enum_validation_request_body](docs/paths/request_body_post_simple_enum_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_simple_enum_validation_request_body](docs/paths/request_body_post_simple_enum_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_simple_enum_validation_request_body](docs/paths/request_body_post_simple_enum_validation_request_body/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_simple_enum_validation_request_body](docs/paths/request_body_post_simple_enum_validation_request_body/post.md) | +/requestBody/postSingleDependencyRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_single_dependency_request_body](docs/paths/request_body_post_single_dependency_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_single_dependency_request_body](docs/paths/request_body_post_single_dependency_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_single_dependency_request_body](docs/paths/request_body_post_single_dependency_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_single_dependency_request_body](docs/paths/request_body_post_single_dependency_request_body/post.md) | /requestBody/postSmallMultipleOfLargeIntegerRequestBody **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_small_multiple_of_large_integer_request_body](docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_small_multiple_of_large_integer_request_body](docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_small_multiple_of_large_integer_request_body](docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_small_multiple_of_large_integer_request_body](docs/paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) | /requestBody/postStringTypeMatchesStringsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_string_type_matches_strings_request_body](docs/paths/request_body_post_string_type_matches_strings_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_string_type_matches_strings_request_body](docs/paths/request_body_post_string_type_matches_strings_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_string_type_matches_strings_request_body](docs/paths/request_body_post_string_type_matches_strings_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_string_type_matches_strings_request_body](docs/paths/request_body_post_string_type_matches_strings_request_body/post.md) | /requestBody/postTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_time_format_request_body](docs/paths/request_body_post_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_time_format_request_body](docs/paths/request_body_post_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_time_format_request_body](docs/paths/request_body_post_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_time_format_request_body](docs/paths/request_body_post_time_format_request_body/post.md) | @@ -303,8 +307,10 @@ HTTP request | Method | Description /responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes **post** | [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postDateFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) | /responseBody/postDateTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | /responseBody/postDurationFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) | /responseBody/postEmailFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) | +/responseBody/postEmptyDependentsResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | /responseBody/postEnumWith0DoesNotMatchFalseResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_enum_with0_does_not_match_false_response_body_for_content_types](docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_enum_with0_does_not_match_false_response_body_for_content_types](docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_enum_with0_does_not_match_false_response_body_for_content_types](docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_enum_with0_does_not_match_false_response_body_for_content_types](docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) | /responseBody/postEnumWith1DoesNotMatchTrueResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_enum_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_enum_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_enum_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_enum_with1_does_not_match_true_response_body_for_content_types](docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md) | /responseBody/postEnumWithEscapedCharactersResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_enum_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_enum_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_enum_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_enum_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md) | @@ -336,6 +342,7 @@ HTTP request | Method | Description /responseBody/postMinitemsValidationResponseBodyForContentTypes **post** | [MinItemsApi](docs/apis/tags/min_items_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) | /responseBody/postMinlengthValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) [MinLengthApi](docs/apis/tags/min_length_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) | /responseBody/postMinpropertiesValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) [MinPropertiesApi](docs/apis/tags/min_properties_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | +/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | /responseBody/postMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | /responseBody/postNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes **post** | [AllOfApi](docs/apis/tags/all_of_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) | /responseBody/postNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) [AnyOfApi](docs/apis/tags/any_of_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) | @@ -368,6 +375,7 @@ HTTP request | Method | Description /responseBody/postRequiredWithEmptyArrayResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_with_empty_array_response_body_for_content_types](docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_with_empty_array_response_body_for_content_types](docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_required_with_empty_array_response_body_for_content_types](docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_with_empty_array_response_body_for_content_types](docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md) | /responseBody/postRequiredWithEscapedCharactersResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_required_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) | /responseBody/postSimpleEnumValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_simple_enum_validation_response_body_for_content_types](docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_simple_enum_validation_response_body_for_content_types](docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_simple_enum_validation_response_body_for_content_types](docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_simple_enum_validation_response_body_for_content_types](docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) | +/responseBody/postSingleDependencyResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_single_dependency_response_body_for_content_types](docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_single_dependency_response_body_for_content_types](docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_single_dependency_response_body_for_content_types](docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_single_dependency_response_body_for_content_types](docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md) | /responseBody/postSmallMultipleOfLargeIntegerResponseBodyForContentTypes **post** | [MultipleOfApi](docs/apis/tags/multiple_of_api.md).[post_small_multiple_of_large_integer_response_body_for_content_types](docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_small_multiple_of_large_integer_response_body_for_content_types](docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_small_multiple_of_large_integer_response_body_for_content_types](docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_small_multiple_of_large_integer_response_body_for_content_types](docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) | /responseBody/postStringTypeMatchesStringsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_string_type_matches_strings_response_body_for_content_types](docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_string_type_matches_strings_response_body_for_content_types](docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_string_type_matches_strings_response_body_for_content_types](docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_string_type_matches_strings_response_body_for_content_types](docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md) | /responseBody/postTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_time_format_response_body_for_content_types](docs/paths/response_body_post_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_time_format_response_body_for_content_types](docs/paths/response_body_post_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_time_format_response_body_for_content_types](docs/paths/response_body_post_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_time_format_response_body_for_content_types](docs/paths/response_body_post_time_format_response_body_for_content_types/post.md) | @@ -414,8 +422,10 @@ Class | Description [ContainsWithNullInstanceElements](docs/components/schema/contains_with_null_instance_elements.md) | [DateFormat](docs/components/schema/date_format.md) | [DateTimeFormat](docs/components/schema/date_time_format.md) | +[DependenciesWithEscapedCharacters](docs/components/schema/dependencies_with_escaped_characters.md) | [DurationFormat](docs/components/schema/duration_format.md) | [EmailFormat](docs/components/schema/email_format.md) | +[EmptyDependents](docs/components/schema/empty_dependents.md) | [EnumWith0DoesNotMatchFalse](docs/components/schema/enum_with0_does_not_match_false.md) | [EnumWith1DoesNotMatchTrue](docs/components/schema/enum_with1_does_not_match_true.md) | [EnumWithEscapedCharacters](docs/components/schema/enum_with_escaped_characters.md) | @@ -447,6 +457,7 @@ Class | Description [MinitemsValidation](docs/components/schema/minitems_validation.md) | [MinlengthValidation](docs/components/schema/minlength_validation.md) | [MinpropertiesValidation](docs/components/schema/minproperties_validation.md) | +[MultipleDependentsRequired](docs/components/schema/multiple_dependents_required.md) | [MultipleTypesCanBeSpecifiedInAnArray](docs/components/schema/multiple_types_can_be_specified_in_an_array.md) | [NestedAllofToCheckValidationSemantics](docs/components/schema/nested_allof_to_check_validation_semantics.md) | [NestedAnyofToCheckValidationSemantics](docs/components/schema/nested_anyof_to_check_validation_semantics.md) | @@ -479,6 +490,7 @@ Class | Description [RequiredWithEmptyArray](docs/components/schema/required_with_empty_array.md) | [RequiredWithEscapedCharacters](docs/components/schema/required_with_escaped_characters.md) | [SimpleEnumValidation](docs/components/schema/simple_enum_validation.md) | +[SingleDependency](docs/components/schema/single_dependency.md) | [SmallMultipleOfLargeInteger](docs/components/schema/small_multiple_of_large_integer.md) | [StringTypeMatchesStrings](docs/components/schema/string_type_matches_strings.md) | [TimeFormat](docs/components/schema/time_format.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index cc82c68eac1..56d75957526 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -63,10 +63,14 @@ Method | Description [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | [**post_email_format_response_body_for_content_types**](../../paths/response_body_post_email_format_response_body_for_content_types/post.md) | +[**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | +[**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | [**post_enum_with0_does_not_match_false_request_body**](../../paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) | [**post_enum_with0_does_not_match_false_response_body_for_content_types**](../../paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) | [**post_enum_with1_does_not_match_true_request_body**](../../paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) | @@ -129,6 +133,8 @@ Method | Description [**post_minlength_validation_response_body_for_content_types**](../../paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) | [**post_minproperties_validation_request_body**](../../paths/request_body_post_minproperties_validation_request_body/post.md) | [**post_minproperties_validation_response_body_for_content_types**](../../paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | +[**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | +[**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | [**post_multiple_types_can_be_specified_in_an_array_request_body**](../../paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | [**post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types**](../../paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | [**post_nested_allof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | @@ -193,6 +199,8 @@ Method | Description [**post_required_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) | [**post_simple_enum_validation_request_body**](../../paths/request_body_post_simple_enum_validation_request_body/post.md) | [**post_simple_enum_validation_response_body_for_content_types**](../../paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) | +[**post_single_dependency_request_body**](../../paths/request_body_post_single_dependency_request_body/post.md) | +[**post_single_dependency_response_body_for_content_types**](../../paths/response_body_post_single_dependency_response_body_for_content_types/post.md) | [**post_small_multiple_of_large_integer_request_body**](../../paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) | [**post_small_multiple_of_large_integer_response_body_for_content_types**](../../paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) | [**post_string_type_matches_strings_request_body**](../../paths/request_body_post_string_type_matches_strings_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md new file mode 100644 index 00000000000..f6a89be1c3d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md @@ -0,0 +1,21 @@ + +unit_test_api.apis.tags.dependent_required_api +# DependentRequiredApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | +[**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | +[**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | +[**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | +[**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | +[**post_single_dependency_request_body**](../../paths/request_body_post_single_dependency_request_body/post.md) | +[**post_single_dependency_response_body_for_content_types**](../../paths/response_body_post_single_dependency_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index f8400c94f67..c2d0ff50051 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -36,8 +36,10 @@ Method | Description [**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | +[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | +[**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | [**post_enum_with0_does_not_match_false_request_body**](../../paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) | [**post_enum_with1_does_not_match_true_request_body**](../../paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) | [**post_enum_with_escaped_characters_request_body**](../../paths/request_body_post_enum_with_escaped_characters_request_body/post.md) | @@ -69,6 +71,7 @@ Method | Description [**post_minitems_validation_request_body**](../../paths/request_body_post_minitems_validation_request_body/post.md) | [**post_minlength_validation_request_body**](../../paths/request_body_post_minlength_validation_request_body/post.md) | [**post_minproperties_validation_request_body**](../../paths/request_body_post_minproperties_validation_request_body/post.md) | +[**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | [**post_multiple_types_can_be_specified_in_an_array_request_body**](../../paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | [**post_nested_allof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | [**post_nested_anyof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) | @@ -101,6 +104,7 @@ Method | Description [**post_required_with_empty_array_request_body**](../../paths/request_body_post_required_with_empty_array_request_body/post.md) | [**post_required_with_escaped_characters_request_body**](../../paths/request_body_post_required_with_escaped_characters_request_body/post.md) | [**post_simple_enum_validation_request_body**](../../paths/request_body_post_simple_enum_validation_request_body/post.md) | +[**post_single_dependency_request_body**](../../paths/request_body_post_single_dependency_request_body/post.md) | [**post_small_multiple_of_large_integer_request_body**](../../paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) | [**post_string_type_matches_strings_request_body**](../../paths/request_body_post_string_type_matches_strings_request_body/post.md) | [**post_time_format_request_body**](../../paths/request_body_post_time_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 6458ab0e08a..566dc15c6e0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -63,10 +63,14 @@ Method | Description [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | [**post_email_format_response_body_for_content_types**](../../paths/response_body_post_email_format_response_body_for_content_types/post.md) | +[**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | +[**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | [**post_enum_with0_does_not_match_false_request_body**](../../paths/request_body_post_enum_with0_does_not_match_false_request_body/post.md) | [**post_enum_with0_does_not_match_false_response_body_for_content_types**](../../paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) | [**post_enum_with1_does_not_match_true_request_body**](../../paths/request_body_post_enum_with1_does_not_match_true_request_body/post.md) | @@ -129,6 +133,8 @@ Method | Description [**post_minlength_validation_response_body_for_content_types**](../../paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) | [**post_minproperties_validation_request_body**](../../paths/request_body_post_minproperties_validation_request_body/post.md) | [**post_minproperties_validation_response_body_for_content_types**](../../paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | +[**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | +[**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | [**post_multiple_types_can_be_specified_in_an_array_request_body**](../../paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | [**post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types**](../../paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | [**post_nested_allof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | @@ -193,6 +199,8 @@ Method | Description [**post_required_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) | [**post_simple_enum_validation_request_body**](../../paths/request_body_post_simple_enum_validation_request_body/post.md) | [**post_simple_enum_validation_response_body_for_content_types**](../../paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) | +[**post_single_dependency_request_body**](../../paths/request_body_post_single_dependency_request_body/post.md) | +[**post_single_dependency_response_body_for_content_types**](../../paths/response_body_post_single_dependency_response_body_for_content_types/post.md) | [**post_small_multiple_of_large_integer_request_body**](../../paths/request_body_post_small_multiple_of_large_integer_request_body/post.md) | [**post_small_multiple_of_large_integer_response_body_for_content_types**](../../paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) | [**post_string_type_matches_strings_request_body**](../../paths/request_body_post_string_type_matches_strings_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 8db4e73ed06..47d7910dfc2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -36,8 +36,10 @@ Method | Description [**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_response_body_for_content_types**](../../paths/response_body_post_email_format_response_body_for_content_types/post.md) | +[**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | [**post_enum_with0_does_not_match_false_response_body_for_content_types**](../../paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.md) | [**post_enum_with1_does_not_match_true_response_body_for_content_types**](../../paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.md) | [**post_enum_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.md) | @@ -69,6 +71,7 @@ Method | Description [**post_minitems_validation_response_body_for_content_types**](../../paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) | [**post_minlength_validation_response_body_for_content_types**](../../paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) | [**post_minproperties_validation_response_body_for_content_types**](../../paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | +[**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | [**post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types**](../../paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | [**post_nested_allof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) | [**post_nested_anyof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) | @@ -101,6 +104,7 @@ Method | Description [**post_required_with_empty_array_response_body_for_content_types**](../../paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.md) | [**post_required_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.md) | [**post_simple_enum_validation_response_body_for_content_types**](../../paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.md) | +[**post_single_dependency_response_body_for_content_types**](../../paths/response_body_post_single_dependency_response_body_for_content_types/post.md) | [**post_small_multiple_of_large_integer_response_body_for_content_types**](../../paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post.md) | [**post_string_type_matches_strings_response_body_for_content_types**](../../paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.md) | [**post_time_format_response_body_for_content_types**](../../paths/response_body_post_time_format_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md new file mode 100644 index 00000000000..0ae7192c572 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md @@ -0,0 +1,12 @@ +# DependenciesWithEscapedCharacters +unit_test_api.components.schema.dependencies_with_escaped_characters +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/empty_dependents.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/empty_dependents.md new file mode 100644 index 00000000000..c1e8220de4b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/empty_dependents.md @@ -0,0 +1,12 @@ +# EmptyDependents +unit_test_api.components.schema.empty_dependents +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_dependents_required.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_dependents_required.md new file mode 100644 index 00000000000..f2d3a0b03f9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_dependents_required.md @@ -0,0 +1,12 @@ +# MultipleDependentsRequired +unit_test_api.components.schema.multiple_dependents_required +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/single_dependency.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/single_dependency.md new file mode 100644 index 00000000000..a77bfbe2103 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/single_dependency.md @@ -0,0 +1,12 @@ +# SingleDependency +unit_test_api.components.schema.single_dependency +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md new file mode 100644 index 00000000000..c390116e7a7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependencies_with_escaped_characters_request_body | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_dependencies_with_escaped_characters_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_dependencies_with_escaped_characters_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependencies_with_escaped_characters_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostDependenciesWithEscapedCharactersRequestBody | This api is only for path=/requestBody/postDependenciesWithEscapedCharactersRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postDependenciesWithEscapedCharactersRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example passing only required values which don't have defaults set + body = dependencies_with_escaped_characters.DependenciesWithEscapedCharacters.validate(None) + try: + api_response = api_instance.post_dependencies_with_escaped_characters_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_dependencies_with_escaped_characters_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f08e40a3924 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../../../../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md new file mode 100644 index 00000000000..53e4dfc5d50 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_empty_dependents_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_empty_dependents_request_body | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_empty_dependents_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_empty_dependents_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_empty_dependents_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostEmptyDependentsRequestBody | This api is only for path=/requestBody/postEmptyDependentsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postEmptyDependentsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_empty_dependents_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**empty_dependents.EmptyDependents**](../../components/schema/empty_dependents.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example passing only required values which don't have defaults set + body = empty_dependents.EmptyDependents.validate(None) + try: + api_response = api_instance.post_empty_dependents_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_empty_dependents_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f53081abb85 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_empty_dependents_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**empty_dependents.EmptyDependents**](../../../../../../components/schema/empty_dependents.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md new file mode 100644 index 00000000000..400d05cb4df --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_multiple_dependents_required_request_body | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_multiple_dependents_required_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_multiple_dependents_required_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_multiple_dependents_required_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostMultipleDependentsRequiredRequestBody | This api is only for path=/requestBody/postMultipleDependentsRequiredRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postMultipleDependentsRequiredRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_dependents_required.MultipleDependentsRequired**](../../components/schema/multiple_dependents_required.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example passing only required values which don't have defaults set + body = multiple_dependents_required.MultipleDependentsRequired.validate(None) + try: + api_response = api_instance.post_multiple_dependents_required_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_multiple_dependents_required_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..f6654fc981c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_dependents_required.MultipleDependentsRequired**](../../../../../../components/schema/multiple_dependents_required.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md new file mode 100644 index 00000000000..62b4cede20c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_single_dependency_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_single_dependency_request_body | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_single_dependency_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_single_dependency_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_single_dependency_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostSingleDependencyRequestBody | This api is only for path=/requestBody/postSingleDependencyRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postSingleDependencyRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_single_dependency_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**single_dependency.SingleDependency**](../../components/schema/single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example passing only required values which don't have defaults set + body = single_dependency.SingleDependency.validate(None) + try: + api_response = api_instance.post_single_dependency_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_single_dependency_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..7ae71067803 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_single_dependency_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**single_dependency.SingleDependency**](../../../../../../components/schema/single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md new file mode 100644 index 00000000000..404ee3c3830 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependencies_with_escaped_characters_response_body_for_content_types | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_dependencies_with_escaped_characters_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependencies_with_escaped_characters_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_dependencies_with_escaped_characters_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes | This api is only for path=/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_dependencies_with_escaped_characters_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_dependencies_with_escaped_characters_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..3bb390f11db --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../../../../../../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md new file mode 100644 index 00000000000..5811e5e421b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_empty_dependents_response_body_for_content_types | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_empty_dependents_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_empty_dependents_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_empty_dependents_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostEmptyDependentsResponseBodyForContentTypes | This api is only for path=/responseBody/postEmptyDependentsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postEmptyDependentsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**empty_dependents.EmptyDependents**](../../components/schema/empty_dependents.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_empty_dependents_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_empty_dependents_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b8d0ab85a21 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**empty_dependents.EmptyDependents**](../../../../../../../../components/schema/empty_dependents.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md new file mode 100644 index 00000000000..cfa8b987a12 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_multiple_dependents_required_response_body_for_content_types | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_multiple_dependents_required_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_multiple_dependents_required_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_multiple_dependents_required_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes | This api is only for path=/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_dependents_required.MultipleDependentsRequired**](../../components/schema/multiple_dependents_required.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_multiple_dependents_required_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_multiple_dependents_required_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..52b99c4a8ac --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_dependents_required.MultipleDependentsRequired**](../../../../../../../../components/schema/multiple_dependents_required.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md new file mode 100644 index 00000000000..bcbb021b8d5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_single_dependency_response_body_for_content_types | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | +| post_single_dependency_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_single_dependency_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_single_dependency_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostSingleDependencyResponseBodyForContentTypes | This api is only for path=/responseBody/postSingleDependencyResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postSingleDependencyResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**single_dependency.SingleDependency**](../../components/schema/single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import dependent_required_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = dependent_required_api.DependentRequiredApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_single_dependency_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling DependentRequiredApi->post_single_dependency_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..690ce62d35f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**single_dependency.SingleDependency**](../../../../../../../../components/schema/single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 020906ce1f0..b007696c6af 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -28,8 +28,10 @@ from unit_test_api.apis.paths.request_body_post_contains_with_null_instance_elements_request_body import RequestBodyPostContainsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_date_format_request_body import RequestBodyPostDateFormatRequestBody from unit_test_api.apis.paths.request_body_post_date_time_format_request_body import RequestBodyPostDateTimeFormatRequestBody +from unit_test_api.apis.paths.request_body_post_dependencies_with_escaped_characters_request_body import RequestBodyPostDependenciesWithEscapedCharactersRequestBody from unit_test_api.apis.paths.request_body_post_duration_format_request_body import RequestBodyPostDurationFormatRequestBody from unit_test_api.apis.paths.request_body_post_email_format_request_body import RequestBodyPostEmailFormatRequestBody +from unit_test_api.apis.paths.request_body_post_empty_dependents_request_body import RequestBodyPostEmptyDependentsRequestBody from unit_test_api.apis.paths.request_body_post_enum_with0_does_not_match_false_request_body import RequestBodyPostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.apis.paths.request_body_post_enum_with1_does_not_match_true_request_body import RequestBodyPostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.apis.paths.request_body_post_enum_with_escaped_characters_request_body import RequestBodyPostEnumWithEscapedCharactersRequestBody @@ -61,6 +63,7 @@ from unit_test_api.apis.paths.request_body_post_minitems_validation_request_body import RequestBodyPostMinitemsValidationRequestBody from unit_test_api.apis.paths.request_body_post_minlength_validation_request_body import RequestBodyPostMinlengthValidationRequestBody from unit_test_api.apis.paths.request_body_post_minproperties_validation_request_body import RequestBodyPostMinpropertiesValidationRequestBody +from unit_test_api.apis.paths.request_body_post_multiple_dependents_required_request_body import RequestBodyPostMultipleDependentsRequiredRequestBody from unit_test_api.apis.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body import RequestBodyPostMultipleTypesCanBeSpecifiedInAnArrayRequestBody from unit_test_api.apis.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body import RequestBodyPostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.apis.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body import RequestBodyPostNestedAnyofToCheckValidationSemanticsRequestBody @@ -93,6 +96,7 @@ from unit_test_api.apis.paths.request_body_post_required_with_empty_array_request_body import RequestBodyPostRequiredWithEmptyArrayRequestBody from unit_test_api.apis.paths.request_body_post_required_with_escaped_characters_request_body import RequestBodyPostRequiredWithEscapedCharactersRequestBody from unit_test_api.apis.paths.request_body_post_simple_enum_validation_request_body import RequestBodyPostSimpleEnumValidationRequestBody +from unit_test_api.apis.paths.request_body_post_single_dependency_request_body import RequestBodyPostSingleDependencyRequestBody from unit_test_api.apis.paths.request_body_post_small_multiple_of_large_integer_request_body import RequestBodyPostSmallMultipleOfLargeIntegerRequestBody from unit_test_api.apis.paths.request_body_post_string_type_matches_strings_request_body import RequestBodyPostStringTypeMatchesStringsRequestBody from unit_test_api.apis.paths.request_body_post_time_format_request_body import RequestBodyPostTimeFormatRequestBody @@ -134,8 +138,10 @@ from unit_test_api.apis.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_format_response_body_for_content_types import ResponseBodyPostDateFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_time_format_response_body_for_content_types import ResponseBodyPostDateTimeFormatResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types import ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_duration_format_response_body_for_content_types import ResponseBodyPostDurationFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_email_format_response_body_for_content_types import ResponseBodyPostEmailFormatResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_empty_dependents_response_body_for_content_types import ResponseBodyPostEmptyDependentsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types import ResponseBodyPostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types import ResponseBodyPostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_enum_with_escaped_characters_response_body_for_content_types import ResponseBodyPostEnumWithEscapedCharactersResponseBodyForContentTypes @@ -167,6 +173,7 @@ from unit_test_api.apis.paths.response_body_post_minitems_validation_response_body_for_content_types import ResponseBodyPostMinitemsValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_minlength_validation_response_body_for_content_types import ResponseBodyPostMinlengthValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_minproperties_validation_response_body_for_content_types import ResponseBodyPostMinpropertiesValidationResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_multiple_dependents_required_response_body_for_content_types import ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types import ResponseBodyPostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types import ResponseBodyPostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types import ResponseBodyPostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes @@ -199,6 +206,7 @@ from unit_test_api.apis.paths.response_body_post_required_with_empty_array_response_body_for_content_types import ResponseBodyPostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_required_with_escaped_characters_response_body_for_content_types import ResponseBodyPostRequiredWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_simple_enum_validation_response_body_for_content_types import ResponseBodyPostSimpleEnumValidationResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_single_dependency_response_body_for_content_types import ResponseBodyPostSingleDependencyResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types import ResponseBodyPostSmallMultipleOfLargeIntegerResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_string_type_matches_strings_response_body_for_content_types import ResponseBodyPostStringTypeMatchesStringsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_time_format_response_body_for_content_types import ResponseBodyPostTimeFormatResponseBodyForContentTypes @@ -244,8 +252,10 @@ "/requestBody/postContainsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostContainsWithNullInstanceElementsRequestBody], "/requestBody/postDateFormatRequestBody": typing.Type[RequestBodyPostDateFormatRequestBody], "/requestBody/postDateTimeFormatRequestBody": typing.Type[RequestBodyPostDateTimeFormatRequestBody], + "/requestBody/postDependenciesWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostDependenciesWithEscapedCharactersRequestBody], "/requestBody/postDurationFormatRequestBody": typing.Type[RequestBodyPostDurationFormatRequestBody], "/requestBody/postEmailFormatRequestBody": typing.Type[RequestBodyPostEmailFormatRequestBody], + "/requestBody/postEmptyDependentsRequestBody": typing.Type[RequestBodyPostEmptyDependentsRequestBody], "/requestBody/postEnumWith0DoesNotMatchFalseRequestBody": typing.Type[RequestBodyPostEnumWith0DoesNotMatchFalseRequestBody], "/requestBody/postEnumWith1DoesNotMatchTrueRequestBody": typing.Type[RequestBodyPostEnumWith1DoesNotMatchTrueRequestBody], "/requestBody/postEnumWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostEnumWithEscapedCharactersRequestBody], @@ -277,6 +287,7 @@ "/requestBody/postMinitemsValidationRequestBody": typing.Type[RequestBodyPostMinitemsValidationRequestBody], "/requestBody/postMinlengthValidationRequestBody": typing.Type[RequestBodyPostMinlengthValidationRequestBody], "/requestBody/postMinpropertiesValidationRequestBody": typing.Type[RequestBodyPostMinpropertiesValidationRequestBody], + "/requestBody/postMultipleDependentsRequiredRequestBody": typing.Type[RequestBodyPostMultipleDependentsRequiredRequestBody], "/requestBody/postMultipleTypesCanBeSpecifiedInAnArrayRequestBody": typing.Type[RequestBodyPostMultipleTypesCanBeSpecifiedInAnArrayRequestBody], "/requestBody/postNestedAllofToCheckValidationSemanticsRequestBody": typing.Type[RequestBodyPostNestedAllofToCheckValidationSemanticsRequestBody], "/requestBody/postNestedAnyofToCheckValidationSemanticsRequestBody": typing.Type[RequestBodyPostNestedAnyofToCheckValidationSemanticsRequestBody], @@ -309,6 +320,7 @@ "/requestBody/postRequiredWithEmptyArrayRequestBody": typing.Type[RequestBodyPostRequiredWithEmptyArrayRequestBody], "/requestBody/postRequiredWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostRequiredWithEscapedCharactersRequestBody], "/requestBody/postSimpleEnumValidationRequestBody": typing.Type[RequestBodyPostSimpleEnumValidationRequestBody], + "/requestBody/postSingleDependencyRequestBody": typing.Type[RequestBodyPostSingleDependencyRequestBody], "/requestBody/postSmallMultipleOfLargeIntegerRequestBody": typing.Type[RequestBodyPostSmallMultipleOfLargeIntegerRequestBody], "/requestBody/postStringTypeMatchesStringsRequestBody": typing.Type[RequestBodyPostStringTypeMatchesStringsRequestBody], "/requestBody/postTimeFormatRequestBody": typing.Type[RequestBodyPostTimeFormatRequestBody], @@ -350,8 +362,10 @@ "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postDateFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateFormatResponseBodyForContentTypes], "/responseBody/postDateTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateTimeFormatResponseBodyForContentTypes], + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes], "/responseBody/postDurationFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDurationFormatResponseBodyForContentTypes], "/responseBody/postEmailFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostEmailFormatResponseBodyForContentTypes], + "/responseBody/postEmptyDependentsResponseBodyForContentTypes": typing.Type[ResponseBodyPostEmptyDependentsResponseBodyForContentTypes], "/responseBody/postEnumWith0DoesNotMatchFalseResponseBodyForContentTypes": typing.Type[ResponseBodyPostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes], "/responseBody/postEnumWith1DoesNotMatchTrueResponseBodyForContentTypes": typing.Type[ResponseBodyPostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes], "/responseBody/postEnumWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostEnumWithEscapedCharactersResponseBodyForContentTypes], @@ -383,6 +397,7 @@ "/responseBody/postMinitemsValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinitemsValidationResponseBodyForContentTypes], "/responseBody/postMinlengthValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinlengthValidationResponseBodyForContentTypes], "/responseBody/postMinpropertiesValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinpropertiesValidationResponseBodyForContentTypes], + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes": typing.Type[ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes], "/responseBody/postMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes": typing.Type[ResponseBodyPostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes], "/responseBody/postNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes], "/responseBody/postNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes], @@ -415,6 +430,7 @@ "/responseBody/postRequiredWithEmptyArrayResponseBodyForContentTypes": typing.Type[ResponseBodyPostRequiredWithEmptyArrayResponseBodyForContentTypes], "/responseBody/postRequiredWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostRequiredWithEscapedCharactersResponseBodyForContentTypes], "/responseBody/postSimpleEnumValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostSimpleEnumValidationResponseBodyForContentTypes], + "/responseBody/postSingleDependencyResponseBodyForContentTypes": typing.Type[ResponseBodyPostSingleDependencyResponseBodyForContentTypes], "/responseBody/postSmallMultipleOfLargeIntegerResponseBodyForContentTypes": typing.Type[ResponseBodyPostSmallMultipleOfLargeIntegerResponseBodyForContentTypes], "/responseBody/postStringTypeMatchesStringsResponseBodyForContentTypes": typing.Type[ResponseBodyPostStringTypeMatchesStringsResponseBodyForContentTypes], "/responseBody/postTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostTimeFormatResponseBodyForContentTypes], @@ -461,8 +477,10 @@ "/requestBody/postContainsWithNullInstanceElementsRequestBody": RequestBodyPostContainsWithNullInstanceElementsRequestBody, "/requestBody/postDateFormatRequestBody": RequestBodyPostDateFormatRequestBody, "/requestBody/postDateTimeFormatRequestBody": RequestBodyPostDateTimeFormatRequestBody, + "/requestBody/postDependenciesWithEscapedCharactersRequestBody": RequestBodyPostDependenciesWithEscapedCharactersRequestBody, "/requestBody/postDurationFormatRequestBody": RequestBodyPostDurationFormatRequestBody, "/requestBody/postEmailFormatRequestBody": RequestBodyPostEmailFormatRequestBody, + "/requestBody/postEmptyDependentsRequestBody": RequestBodyPostEmptyDependentsRequestBody, "/requestBody/postEnumWith0DoesNotMatchFalseRequestBody": RequestBodyPostEnumWith0DoesNotMatchFalseRequestBody, "/requestBody/postEnumWith1DoesNotMatchTrueRequestBody": RequestBodyPostEnumWith1DoesNotMatchTrueRequestBody, "/requestBody/postEnumWithEscapedCharactersRequestBody": RequestBodyPostEnumWithEscapedCharactersRequestBody, @@ -494,6 +512,7 @@ "/requestBody/postMinitemsValidationRequestBody": RequestBodyPostMinitemsValidationRequestBody, "/requestBody/postMinlengthValidationRequestBody": RequestBodyPostMinlengthValidationRequestBody, "/requestBody/postMinpropertiesValidationRequestBody": RequestBodyPostMinpropertiesValidationRequestBody, + "/requestBody/postMultipleDependentsRequiredRequestBody": RequestBodyPostMultipleDependentsRequiredRequestBody, "/requestBody/postMultipleTypesCanBeSpecifiedInAnArrayRequestBody": RequestBodyPostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, "/requestBody/postNestedAllofToCheckValidationSemanticsRequestBody": RequestBodyPostNestedAllofToCheckValidationSemanticsRequestBody, "/requestBody/postNestedAnyofToCheckValidationSemanticsRequestBody": RequestBodyPostNestedAnyofToCheckValidationSemanticsRequestBody, @@ -526,6 +545,7 @@ "/requestBody/postRequiredWithEmptyArrayRequestBody": RequestBodyPostRequiredWithEmptyArrayRequestBody, "/requestBody/postRequiredWithEscapedCharactersRequestBody": RequestBodyPostRequiredWithEscapedCharactersRequestBody, "/requestBody/postSimpleEnumValidationRequestBody": RequestBodyPostSimpleEnumValidationRequestBody, + "/requestBody/postSingleDependencyRequestBody": RequestBodyPostSingleDependencyRequestBody, "/requestBody/postSmallMultipleOfLargeIntegerRequestBody": RequestBodyPostSmallMultipleOfLargeIntegerRequestBody, "/requestBody/postStringTypeMatchesStringsRequestBody": RequestBodyPostStringTypeMatchesStringsRequestBody, "/requestBody/postTimeFormatRequestBody": RequestBodyPostTimeFormatRequestBody, @@ -567,8 +587,10 @@ "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postDateFormatResponseBodyForContentTypes": ResponseBodyPostDateFormatResponseBodyForContentTypes, "/responseBody/postDateTimeFormatResponseBodyForContentTypes": ResponseBodyPostDateTimeFormatResponseBodyForContentTypes, + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes, "/responseBody/postDurationFormatResponseBodyForContentTypes": ResponseBodyPostDurationFormatResponseBodyForContentTypes, "/responseBody/postEmailFormatResponseBodyForContentTypes": ResponseBodyPostEmailFormatResponseBodyForContentTypes, + "/responseBody/postEmptyDependentsResponseBodyForContentTypes": ResponseBodyPostEmptyDependentsResponseBodyForContentTypes, "/responseBody/postEnumWith0DoesNotMatchFalseResponseBodyForContentTypes": ResponseBodyPostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, "/responseBody/postEnumWith1DoesNotMatchTrueResponseBodyForContentTypes": ResponseBodyPostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, "/responseBody/postEnumWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostEnumWithEscapedCharactersResponseBodyForContentTypes, @@ -600,6 +622,7 @@ "/responseBody/postMinitemsValidationResponseBodyForContentTypes": ResponseBodyPostMinitemsValidationResponseBodyForContentTypes, "/responseBody/postMinlengthValidationResponseBodyForContentTypes": ResponseBodyPostMinlengthValidationResponseBodyForContentTypes, "/responseBody/postMinpropertiesValidationResponseBodyForContentTypes": ResponseBodyPostMinpropertiesValidationResponseBodyForContentTypes, + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes": ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes, "/responseBody/postMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes": ResponseBodyPostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, "/responseBody/postNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes": ResponseBodyPostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, "/responseBody/postNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes": ResponseBodyPostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, @@ -632,6 +655,7 @@ "/responseBody/postRequiredWithEmptyArrayResponseBodyForContentTypes": ResponseBodyPostRequiredWithEmptyArrayResponseBodyForContentTypes, "/responseBody/postRequiredWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostRequiredWithEscapedCharactersResponseBodyForContentTypes, "/responseBody/postSimpleEnumValidationResponseBodyForContentTypes": ResponseBodyPostSimpleEnumValidationResponseBodyForContentTypes, + "/responseBody/postSingleDependencyResponseBodyForContentTypes": ResponseBodyPostSingleDependencyResponseBodyForContentTypes, "/responseBody/postSmallMultipleOfLargeIntegerResponseBodyForContentTypes": ResponseBodyPostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, "/responseBody/postStringTypeMatchesStringsResponseBodyForContentTypes": ResponseBodyPostStringTypeMatchesStringsResponseBodyForContentTypes, "/responseBody/postTimeFormatResponseBodyForContentTypes": ResponseBodyPostTimeFormatResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py new file mode 100644 index 00000000000..f398d537b0a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import ApiForPost + + +class RequestBodyPostDependenciesWithEscapedCharactersRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py new file mode 100644 index 00000000000..bad2248caae --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_empty_dependents_request_body.post.operation import ApiForPost + + +class RequestBodyPostEmptyDependentsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py new file mode 100644 index 00000000000..821e11d532e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import ApiForPost + + +class RequestBodyPostMultipleDependentsRequiredRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py new file mode 100644 index 00000000000..15e7252a276 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import ApiForPost + + +class RequestBodyPostSingleDependencyRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py new file mode 100644 index 00000000000..96220f90f74 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py new file mode 100644 index 00000000000..fa5bf36ed50 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostEmptyDependentsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py new file mode 100644 index 00000000000..4c542db1d12 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py new file mode 100644 index 00000000000..65579f17289 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostSingleDependencyResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 396e79e4493..85c1ebd24cd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -5,6 +5,7 @@ from unit_test_api.apis.tags.pattern_api import PatternApi from unit_test_api.apis.tags.additional_properties_api import AdditionalPropertiesApi from unit_test_api.apis.tags.response_content_content_type_schema_api import ResponseContentContentTypeSchemaApi +from unit_test_api.apis.tags.dependent_required_api import DependentRequiredApi from unit_test_api.apis.tags.min_items_api import MinItemsApi from unit_test_api.apis.tags.min_length_api import MinLengthApi from unit_test_api.apis.tags.required_api import RequiredApi @@ -38,6 +39,7 @@ "pattern": typing.Type[PatternApi], "additionalProperties": typing.Type[AdditionalPropertiesApi], "response.content.contentType.schema": typing.Type[ResponseContentContentTypeSchemaApi], + "dependentRequired": typing.Type[DependentRequiredApi], "minItems": typing.Type[MinItemsApi], "minLength": typing.Type[MinLengthApi], "required": typing.Type[RequiredApi], @@ -72,6 +74,7 @@ "pattern": PatternApi, "additionalProperties": AdditionalPropertiesApi, "response.content.contentType.schema": ResponseContentContentTypeSchemaApi, + "dependentRequired": DependentRequiredApi, "minItems": MinItemsApi, "minLength": MinLengthApi, "required": RequiredApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index 10d37b56d3f..e8e8179773f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -43,12 +43,15 @@ from unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody +from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody +from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody +from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.operation import PostOneofWithRequiredRequestBody from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes @@ -57,10 +60,12 @@ from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody +from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes @@ -83,6 +88,7 @@ from unit_test_api.paths.response_body_post_idn_hostname_format_response_body_for_content_types.post.operation import PostIdnHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.operation import PostEnumWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody +from unit_test_api.paths.request_body_post_empty_dependents_request_body.post.operation import PostEmptyDependentsRequestBody from unit_test_api.paths.response_body_post_time_format_response_body_for_content_types.post.operation import PostTimeFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_type_array_or_object_response_body_for_content_types.post.operation import PostTypeArrayOrObjectResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.post.operation import PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes @@ -154,6 +160,7 @@ from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody @@ -204,6 +211,7 @@ from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody @@ -258,12 +266,15 @@ class ContentTypeJsonApi( PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseRequestBody, PostIdnHostnameFormatRequestBody, + PostEmptyDependentsResponseBodyForContentTypes, PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, + PostMultipleDependentsRequiredResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, + PostSingleDependencyRequestBody, PostOneofWithRequiredRequestBody, PostIriFormatRequestBody, PostMaximumValidationResponseBodyForContentTypes, @@ -272,10 +283,12 @@ class ContentTypeJsonApi( PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, + PostMultipleDependentsRequiredRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, + PostDependenciesWithEscapedCharactersRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostHostnameFormatResponseBodyForContentTypes, @@ -298,6 +311,7 @@ class ContentTypeJsonApi( PostIdnHostnameFormatResponseBodyForContentTypes, PostEnumWithEscapedCharactersRequestBody, PostIpv6FormatRequestBody, + PostEmptyDependentsRequestBody, PostTimeFormatResponseBodyForContentTypes, PostTypeArrayOrObjectResponseBodyForContentTypes, PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes, @@ -369,6 +383,7 @@ class ContentTypeJsonApi( PostObjectPropertiesValidationRequestBody, PostUriReferenceFormatRequestBody, PostOneofWithBaseSchemaResponseBodyForContentTypes, + PostSingleDependencyResponseBodyForContentTypes, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostDurationFormatRequestBody, PostRegexFormatRequestBody, @@ -419,6 +434,7 @@ class ContentTypeJsonApi( PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, PostRelativeJsonPointerFormatResponseBodyForContentTypes, + PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py new file mode 100644 index 00000000000..76dfd8c2052 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody +from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody +from unit_test_api.paths.request_body_post_empty_dependents_request_body.post.operation import PostEmptyDependentsRequestBody +from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody + + +class DependentRequiredApi( + PostDependenciesWithEscapedCharactersRequestBody, + PostMultipleDependentsRequiredResponseBodyForContentTypes, + PostSingleDependencyResponseBodyForContentTypes, + PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, + PostEmptyDependentsResponseBodyForContentTypes, + PostSingleDependencyRequestBody, + PostEmptyDependentsRequestBody, + PostMultipleDependentsRequiredRequestBody, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 6568bf76576..c50f99eedc5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -45,6 +45,7 @@ from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody +from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.operation import PostOneofWithRequiredRequestBody from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.request_body_post_oneof_complex_types_request_body.post.operation import PostOneofComplexTypesRequestBody @@ -57,11 +58,13 @@ from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody +from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody +from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody @@ -88,6 +91,7 @@ from unit_test_api.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body.post.operation import PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody from unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.operation import PostEnumWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody +from unit_test_api.paths.request_body_post_empty_dependents_request_body.post.operation import PostEmptyDependentsRequestBody from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody @@ -154,6 +158,7 @@ class OperationRequestBodyApi( PostAllofWithBaseSchemaRequestBody, PostIpv4FormatRequestBody, PostPropertiesWithEscapedCharactersRequestBody, + PostSingleDependencyRequestBody, PostOneofWithRequiredRequestBody, PostIriFormatRequestBody, PostOneofComplexTypesRequestBody, @@ -166,11 +171,13 @@ class OperationRequestBodyApi( PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostRequiredWithEscapedCharactersRequestBody, + PostMultipleDependentsRequiredRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, + PostDependenciesWithEscapedCharactersRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, @@ -197,6 +204,7 @@ class OperationRequestBodyApi( PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, PostEnumWithEscapedCharactersRequestBody, PostIpv6FormatRequestBody, + PostEmptyDependentsRequestBody, PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index a9af6330aad..2c370bf8cae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -43,12 +43,15 @@ from unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody +from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody +from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody +from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.operation import PostOneofWithRequiredRequestBody from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes @@ -57,10 +60,12 @@ from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody +from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes @@ -83,6 +88,7 @@ from unit_test_api.paths.response_body_post_idn_hostname_format_response_body_for_content_types.post.operation import PostIdnHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.operation import PostEnumWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody +from unit_test_api.paths.request_body_post_empty_dependents_request_body.post.operation import PostEmptyDependentsRequestBody from unit_test_api.paths.response_body_post_time_format_response_body_for_content_types.post.operation import PostTimeFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_type_array_or_object_response_body_for_content_types.post.operation import PostTypeArrayOrObjectResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.post.operation import PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes @@ -154,6 +160,7 @@ from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody @@ -204,6 +211,7 @@ from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody @@ -258,12 +266,15 @@ class PathPostApi( PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseRequestBody, PostIdnHostnameFormatRequestBody, + PostEmptyDependentsResponseBodyForContentTypes, PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, + PostMultipleDependentsRequiredResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, + PostSingleDependencyRequestBody, PostOneofWithRequiredRequestBody, PostIriFormatRequestBody, PostMaximumValidationResponseBodyForContentTypes, @@ -272,10 +283,12 @@ class PathPostApi( PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, + PostMultipleDependentsRequiredRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, + PostDependenciesWithEscapedCharactersRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostHostnameFormatResponseBodyForContentTypes, @@ -298,6 +311,7 @@ class PathPostApi( PostIdnHostnameFormatResponseBodyForContentTypes, PostEnumWithEscapedCharactersRequestBody, PostIpv6FormatRequestBody, + PostEmptyDependentsRequestBody, PostTimeFormatResponseBodyForContentTypes, PostTypeArrayOrObjectResponseBodyForContentTypes, PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes, @@ -369,6 +383,7 @@ class PathPostApi( PostObjectPropertiesValidationRequestBody, PostUriReferenceFormatRequestBody, PostOneofWithBaseSchemaResponseBodyForContentTypes, + PostSingleDependencyResponseBodyForContentTypes, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostDurationFormatRequestBody, PostRegexFormatRequestBody, @@ -419,6 +434,7 @@ class PathPostApi( PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, PostRelativeJsonPointerFormatResponseBodyForContentTypes, + PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 337dd30e8f1..bfe3481f747 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -40,16 +40,19 @@ from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types.post.operation import PostPropertiesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes @@ -97,6 +100,7 @@ from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import PostContainsKeywordValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes @@ -149,16 +153,19 @@ class ResponseContentContentTypeSchemaApi( PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, + PostEmptyDependentsResponseBodyForContentTypes, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, PostPropertiesWithEscapedCharactersResponseBodyForContentTypes, PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, + PostMultipleDependentsRequiredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostMaximumValidationResponseBodyForContentTypes, PostOneofWithBaseSchemaResponseBodyForContentTypes, + PostSingleDependencyResponseBodyForContentTypes, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, PostPatternIsNotAnchoredResponseBodyForContentTypes, @@ -206,6 +213,7 @@ class ResponseContentContentTypeSchemaApi( PostContainsKeywordValidationResponseBodyForContentTypes, PostRelativeJsonPointerFormatResponseBodyForContentTypes, PostUuidFormatResponseBodyForContentTypes, + PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py new file mode 100644 index 00000000000..3ca5e08c175 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class DependenciesWithEscapedCharacters( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + dependent_required: typing.Mapping[str, typing.Set[str]] = dataclasses.field( + default_factory=lambda: { + "foo +bar": { + "foo bar", + "foo'bar", + }, + "foo"bar": { + "foo bar", + "foo'bar", + }, + } + ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/empty_dependents.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/empty_dependents.py new file mode 100644 index 00000000000..6ed7618b83e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/empty_dependents.py @@ -0,0 +1,30 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class EmptyDependents( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + dependent_required: typing.Mapping[str, typing.Set[str]] = dataclasses.field( + default_factory=lambda: { + "bar": { + }, + } + ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_dependents_required.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_dependents_required.py new file mode 100644 index 00000000000..5d3096170b9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_dependents_required.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class MultipleDependentsRequired( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + dependent_required: typing.Mapping[str, typing.Set[str]] = dataclasses.field( + default_factory=lambda: { + "quux": { + "foo", + "bar", + }, + } + ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/single_dependency.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/single_dependency.py new file mode 100644 index 00000000000..b3e84537012 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/single_dependency.py @@ -0,0 +1,31 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class SingleDependency( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + dependent_required: typing.Mapping[str, typing.Set[str]] = dataclasses.field( + default_factory=lambda: { + "bar": { + "foo", + }, + } + ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 42497023725..31923977b39 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -38,8 +38,10 @@ from unit_test_api.components.schema.contains_with_null_instance_elements import ContainsWithNullInstanceElements from unit_test_api.components.schema.date_format import DateFormat from unit_test_api.components.schema.date_time_format import DateTimeFormat +from unit_test_api.components.schema.dependencies_with_escaped_characters import DependenciesWithEscapedCharacters from unit_test_api.components.schema.duration_format import DurationFormat from unit_test_api.components.schema.email_format import EmailFormat +from unit_test_api.components.schema.empty_dependents import EmptyDependents from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters @@ -71,6 +73,7 @@ from unit_test_api.components.schema.minitems_validation import MinitemsValidation from unit_test_api.components.schema.minlength_validation import MinlengthValidation from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.multiple_dependents_required import MultipleDependentsRequired from unit_test_api.components.schema.multiple_types_can_be_specified_in_an_array import MultipleTypesCanBeSpecifiedInAnArray from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics @@ -103,6 +106,7 @@ from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.single_dependency import SingleDependency from unit_test_api.components.schema.small_multiple_of_large_integer import SmallMultipleOfLargeInteger from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from unit_test_api.components.schema.time_format import TimeFormat diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py new file mode 100644 index 00000000000..32d922a08e7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_dependencies_with_escaped_characters_request_body import RequestBodyPostDependenciesWithEscapedCharactersRequestBody + +path = "/requestBody/postDependenciesWithEscapedCharactersRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py new file mode 100644 index 00000000000..6255721126d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependencies_with_escaped_characters + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependencies_with_escaped_characters_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependencies_with_escaped_characters_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependencies_with_escaped_characters_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependenciesWithEscapedCharactersRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependencies_with_escaped_characters_request_body = BaseApi._post_dependencies_with_escaped_characters_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependencies_with_escaped_characters_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..06499bb8ed1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependencies_with_escaped_characters +Schema2: typing_extensions.TypeAlias = dependencies_with_escaped_characters.DependenciesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/__init__.py new file mode 100644 index 00000000000..8f52b8fb243 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_empty_dependents_request_body import RequestBodyPostEmptyDependentsRequestBody + +path = "/requestBody/postEmptyDependentsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py new file mode 100644 index 00000000000..2be9b66a1ba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import empty_dependents + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_empty_dependents_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_empty_dependents_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_empty_dependents_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostEmptyDependentsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_empty_dependents_request_body = BaseApi._post_empty_dependents_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_empty_dependents_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..c159f01c55c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import empty_dependents +Schema2: typing_extensions.TypeAlias = empty_dependents.EmptyDependents diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/__init__.py new file mode 100644 index 00000000000..827a40891de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_multiple_dependents_required_request_body import RequestBodyPostMultipleDependentsRequiredRequestBody + +path = "/requestBody/postMultipleDependentsRequiredRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py new file mode 100644 index 00000000000..99969069a59 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import multiple_dependents_required + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_multiple_dependents_required_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_multiple_dependents_required_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_multiple_dependents_required_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMultipleDependentsRequiredRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_multiple_dependents_required_request_body = BaseApi._post_multiple_dependents_required_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_multiple_dependents_required_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..7cb23fc8f06 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import multiple_dependents_required +Schema2: typing_extensions.TypeAlias = multiple_dependents_required.MultipleDependentsRequired diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/__init__.py new file mode 100644 index 00000000000..97cbed322ee --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_single_dependency_request_body import RequestBodyPostSingleDependencyRequestBody + +path = "/requestBody/postSingleDependencyRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py new file mode 100644 index 00000000000..7ec7ea3090a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import single_dependency + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_single_dependency_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_single_dependency_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_single_dependency_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostSingleDependencyRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_single_dependency_request_body = BaseApi._post_single_dependency_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_single_dependency_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..812dd277157 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import single_dependency +Schema2: typing_extensions.TypeAlias = single_dependency.SingleDependency diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..6db5955974a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types import ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes + +path = "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..325ec235862 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependencies_with_escaped_characters_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependencies_with_escaped_characters_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependencies_with_escaped_characters_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependenciesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependencies_with_escaped_characters_response_body_for_content_types = BaseApi._post_dependencies_with_escaped_characters_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependencies_with_escaped_characters_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..06499bb8ed1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependencies_with_escaped_characters +Schema2: typing_extensions.TypeAlias = dependencies_with_escaped_characters.DependenciesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..f69fd0d1d56 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_empty_dependents_response_body_for_content_types import ResponseBodyPostEmptyDependentsResponseBodyForContentTypes + +path = "/responseBody/postEmptyDependentsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..e2279c23b6f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_empty_dependents_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_empty_dependents_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_empty_dependents_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostEmptyDependentsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_empty_dependents_response_body_for_content_types = BaseApi._post_empty_dependents_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_empty_dependents_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..c159f01c55c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import empty_dependents +Schema2: typing_extensions.TypeAlias = empty_dependents.EmptyDependents diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..51064fb85d6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_multiple_dependents_required_response_body_for_content_types import ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes + +path = "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..be22504c7f3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_multiple_dependents_required_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_multiple_dependents_required_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_multiple_dependents_required_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMultipleDependentsRequiredResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_multiple_dependents_required_response_body_for_content_types = BaseApi._post_multiple_dependents_required_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_multiple_dependents_required_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..7cb23fc8f06 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import multiple_dependents_required +Schema2: typing_extensions.TypeAlias = multiple_dependents_required.MultipleDependentsRequired diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..df9a05d5c10 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_single_dependency_response_body_for_content_types import ResponseBodyPostSingleDependencyResponseBodyForContentTypes + +path = "/responseBody/postSingleDependencyResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..787bdad21e3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_single_dependency_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_single_dependency_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_single_dependency_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostSingleDependencyResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_single_dependency_response_body_for_content_types = BaseApi._post_single_dependency_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_single_dependency_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..812dd277157 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import single_dependency +Schema2: typing_extensions.TypeAlias = single_dependency.SingleDependency diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py new file mode 100644 index 00000000000..1f785d3dbb2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.dependencies_with_escaped_characters import DependenciesWithEscapedCharacters +from unit_test_api.configurations import schema_configuration + + +class TestDependenciesWithEscapedCharacters(unittest.TestCase): + """DependenciesWithEscapedCharacters unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_crlf_missing_dependent_fails(self): + # CRLF missing dependent + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependenciesWithEscapedCharacters.validate( + { + "foo\nbar": + 1, + "foo": + 2, + }, + configuration=self.configuration + ) + + def test_quoted_quotes_missing_dependent_fails(self): + # quoted quotes missing dependent + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependenciesWithEscapedCharacters.validate( + { + "foo\"bar": + 2, + }, + configuration=self.configuration + ) + + def test_crlf_passes(self): + # CRLF + DependenciesWithEscapedCharacters.validate( + { + "foo\nbar": + 1, + "foo\rbar": + 2, + }, + configuration=self.configuration + ) + + def test_quoted_quotes_passes(self): + # quoted quotes + DependenciesWithEscapedCharacters.validate( + { + "foo'bar": + 1, + "foo\"bar": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_empty_dependents.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_empty_dependents.py new file mode 100644 index 00000000000..048abd6fd7c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_empty_dependents.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.empty_dependents import EmptyDependents +from unit_test_api.configurations import schema_configuration + + +class TestEmptyDependents(unittest.TestCase): + """EmptyDependents unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_non_object_is_valid_passes(self): + # non-object is valid + EmptyDependents.validate( + 1, + configuration=self.configuration + ) + + def test_object_with_one_property_passes(self): + # object with one property + EmptyDependents.validate( + { + "bar": + 2, + }, + configuration=self.configuration + ) + + def test_empty_object_passes(self): + # empty object + EmptyDependents.validate( + { + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_dependents_required.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_dependents_required.py new file mode 100644 index 00000000000..67a765d5401 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_dependents_required.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.multiple_dependents_required import MultipleDependentsRequired +from unit_test_api.configurations import schema_configuration + + +class TestMultipleDependentsRequired(unittest.TestCase): + """MultipleDependentsRequired unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_nondependants_passes(self): + # nondependants + MultipleDependentsRequired.validate( + { + "foo": + 1, + "bar": + 2, + }, + configuration=self.configuration + ) + + def test_with_dependencies_passes(self): + # with dependencies + MultipleDependentsRequired.validate( + { + "foo": + 1, + "bar": + 2, + "quux": + 3, + }, + configuration=self.configuration + ) + + def test_missing_both_dependencies_fails(self): + # missing both dependencies + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + MultipleDependentsRequired.validate( + { + "quux": + 1, + }, + configuration=self.configuration + ) + + def test_neither_passes(self): + # neither + MultipleDependentsRequired.validate( + { + }, + configuration=self.configuration + ) + + def test_missing_dependency_fails(self): + # missing dependency + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + MultipleDependentsRequired.validate( + { + "foo": + 1, + "quux": + 2, + }, + configuration=self.configuration + ) + + def test_missing_other_dependency_fails(self): + # missing other dependency + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + MultipleDependentsRequired.validate( + { + "bar": + 1, + "quux": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_single_dependency.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_single_dependency.py new file mode 100644 index 00000000000..bf1c481d317 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_single_dependency.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.single_dependency import SingleDependency +from unit_test_api.configurations import schema_configuration + + +class TestSingleDependency(unittest.TestCase): + """SingleDependency unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_nondependant_passes(self): + # nondependant + SingleDependency.validate( + { + "foo": + 1, + }, + configuration=self.configuration + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + SingleDependency.validate( + [ + "bar", + ], + configuration=self.configuration + ) + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + SingleDependency.validate( + 12, + configuration=self.configuration + ) + + def test_neither_passes(self): + # neither + SingleDependency.validate( + { + }, + configuration=self.configuration + ) + + def test_ignores_strings_passes(self): + # ignores strings + SingleDependency.validate( + "foobar", + configuration=self.configuration + ) + + def test_with_dependency_passes(self): + # with dependency + SingleDependency.validate( + { + "foo": + 1, + "bar": + 2, + }, + configuration=self.configuration + ) + + def test_missing_dependency_fails(self): + # missing dependency + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + SingleDependency.validate( + { + "bar": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py new file mode 100644 index 00000000000..d0ca8a32735 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_crlf_missing_dependent_fails(self): + content_type = 'application/json' + # CRLF missing dependent + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\nbar": + 1, + "foo": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_quoted_quotes_missing_dependent_fails(self): + content_type = 'application/json' + # quoted quotes missing dependent + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\"bar": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_crlf_passes(self): + content_type = 'application/json' + # CRLF + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\nbar": + 1, + "foo\rbar": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependenciesWithEscapedCharactersRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_quoted_quotes_passes(self): + content_type = 'application/json' + # quoted quotes + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo'bar": + 1, + "foo\"bar": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependenciesWithEscapedCharactersRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/test_post.py new file mode 100644 index 00000000000..ef018179e6b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_empty_dependents_request_body/test_post.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_empty_dependents_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_non_object_is_valid_passes(self): + content_type = 'application/json' + # non-object is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postEmptyDependentsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_object_with_one_property_passes(self): + content_type = 'application/json' + # object with one property + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postEmptyDependentsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_empty_object_passes(self): + content_type = 'application/json' + # empty object + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postEmptyDependentsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/test_post.py new file mode 100644 index 00000000000..fc72a351001 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_dependents_required_request_body/test_post.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_nondependants_passes(self): + content_type = 'application/json' + # nondependants + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMultipleDependentsRequiredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_with_dependencies_passes(self): + content_type = 'application/json' + # with dependencies + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + "quux": + 3, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMultipleDependentsRequiredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_missing_both_dependencies_fails(self): + content_type = 'application/json' + # missing both dependencies + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "quux": + 1, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_neither_passes(self): + content_type = 'application/json' + # neither + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMultipleDependentsRequiredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_missing_dependency_fails(self): + content_type = 'application/json' + # missing dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "quux": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_missing_other_dependency_fails(self): + content_type = 'application/json' + # missing other dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 1, + "quux": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/test_post.py new file mode 100644 index 00000000000..f0cf9b0ae26 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_single_dependency_request_body/test_post.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_single_dependency_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_nondependant_passes(self): + content_type = 'application/json' + # nondependant + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_arrays_passes(self): + content_type = 'application/json' + # ignores arrays + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "bar", + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_other_non_objects_passes(self): + content_type = 'application/json' + # ignores other non-objects + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_neither_passes(self): + content_type = 'application/json' + # neither + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_strings_passes(self): + content_type = 'application/json' + # ignores strings + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobar" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_with_dependency_passes(self): + content_type = 'application/json' + # with dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_missing_dependency_fails(self): + content_type = 'application/json' + # missing dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..8c2af7abe26 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_crlf_missing_dependent_fails(self): + # CRLF missing dependent + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\nbar": + 1, + "foo": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_quoted_quotes_missing_dependent_fails(self): + # quoted quotes missing dependent + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\"bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_crlf_passes(self): + # CRLF + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\nbar": + 1, + "foo\rbar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_quoted_quotes_passes(self): + # quoted quotes + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo'bar": + 1, + "foo\"bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..22b4f1394c8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_empty_dependents_response_body_for_content_types/test_post.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_non_object_is_valid_passes(self): + # non-object is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postEmptyDependentsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_object_with_one_property_passes(self): + # object with one property + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postEmptyDependentsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_empty_object_passes(self): + # empty object + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postEmptyDependentsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..60e08454625 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/test_post.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_nondependants_passes(self): + # nondependants + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_with_dependencies_passes(self): + # with dependencies + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + "quux": + 3, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_missing_both_dependencies_fails(self): + # missing both dependencies + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "quux": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_neither_passes(self): + # neither + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_missing_dependency_fails(self): + # missing dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "quux": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_missing_other_dependency_fails(self): + # missing other dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 1, + "quux": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..dcb22b412f2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_single_dependency_response_body_for_content_types/test_post.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_nondependant_passes(self): + # nondependant + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_arrays_passes(self): + # ignores arrays + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "bar", + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_neither_passes(self): + # neither + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_strings_passes(self): + # ignores strings + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobar" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_with_dependency_passes(self): + # with dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_missing_dependency_fails(self): + # missing dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 68db01dadb4..ac3d4c79e8b 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -16,6 +16,7 @@ tags: - name: anyOf - name: const - name: contains +- name: dependentRequired - name: enum - name: format - name: items @@ -865,6 +866,150 @@ paths: - path.post - contentType_json - contains + /requestBody/postSingleDependencyRequestBody: + post: + operationId: postSingleDependencyRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SingleDependency' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/SingleDependency' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentRequired + /responseBody/postSingleDependencyResponseBodyForContentTypes: + post: + operationId: postSingleDependencyResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/SingleDependency' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/SingleDependency' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentRequired + /requestBody/postEmptyDependentsRequestBody: + post: + operationId: postEmptyDependentsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EmptyDependents' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/EmptyDependents' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentRequired + /responseBody/postEmptyDependentsResponseBodyForContentTypes: + post: + operationId: postEmptyDependentsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/EmptyDependents' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/EmptyDependents' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentRequired + /requestBody/postMultipleDependentsRequiredRequestBody: + post: + operationId: postMultipleDependentsRequiredRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MultipleDependentsRequired' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MultipleDependentsRequired' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentRequired + /responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes: + post: + operationId: postMultipleDependentsRequiredResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/MultipleDependentsRequired' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MultipleDependentsRequired' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentRequired + /requestBody/postDependenciesWithEscapedCharactersRequestBody: + post: + operationId: postDependenciesWithEscapedCharactersRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DependenciesWithEscapedCharacters' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependenciesWithEscapedCharacters' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentRequired + /responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes: + post: + operationId: postDependenciesWithEscapedCharactersResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/DependenciesWithEscapedCharacters' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependenciesWithEscapedCharacters' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentRequired /requestBody/postSimpleEnumValidationRequestBody: post: operationId: postSimpleEnumValidationRequestBody @@ -4001,6 +4146,30 @@ components: $schema: https://json-schema.org/draft/2020-12/schema contains: type: 'null' + SingleDependency: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + bar: + - foo + EmptyDependents: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + bar: [] + MultipleDependentsRequired: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + quux: + - foo + - bar + DependenciesWithEscapedCharacters: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + ? 'foo + + bar' + : - "foo\rbar" + foo"bar: + - foo'bar SimpleEnumValidation: $schema: https://json-schema.org/draft/2020-12/schema enum: @@ -4721,6 +4890,119 @@ components: data: - null valid: true + SingleDependency: + Neither: + description: neither + data: {} + valid: true + Nondependant: + description: nondependant + data: + foo: 1 + valid: true + WithDependency: + description: with dependency + data: + foo: 1 + bar: 2 + valid: true + MissingDependency: + description: missing dependency + data: + bar: 2 + valid: false + IgnoresArrays: + description: ignores arrays + data: + - bar + valid: true + IgnoresStrings: + description: ignores strings + data: foobar + valid: true + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true + EmptyDependents: + EmptyObject: + description: empty object + data: {} + valid: true + ObjectWithOneProperty: + description: object with one property + data: + bar: 2 + valid: true + NonObjectIsValid: + description: non-object is valid + data: 1 + valid: true + MultipleDependentsRequired: + Neither: + description: neither + data: {} + valid: true + Nondependants: + description: nondependants + data: + foo: 1 + bar: 2 + valid: true + WithDependencies: + description: with dependencies + data: + foo: 1 + bar: 2 + quux: 3 + valid: true + MissingDependency: + description: missing dependency + data: + foo: 1 + quux: 2 + valid: false + MissingOtherDependency: + description: missing other dependency + data: + bar: 1 + quux: 2 + valid: false + MissingBothDependencies: + description: missing both dependencies + data: + quux: 1 + valid: false + DependenciesWithEscapedCharacters: + Crlf: + description: CRLF + data: + ? 'foo + + bar' + : 1 + "foo\rbar": 2 + valid: true + QuotedQuotes: + description: quoted quotes + data: + foo'bar: 1 + foo"bar: 2 + valid: true + CrlfMissingDependent: + description: CRLF missing dependent + data: + ? 'foo + + bar' + : 1 + foo: 2 + valid: false + QuotedQuotesMissingDependent: + description: quoted quotes missing dependent + data: + foo"bar: 2 + valid: false SimpleEnumValidation: OneOfTheEnumIsValid: description: one of the enum is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 6277553b907..e3103384a37 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -279,8 +279,8 @@ class ExclusionReason: 'const.json': (json_schema_test_draft,), 'contains.json': (json_schema_test_draft,), # 'default.json': (json_schema_test_draft,), -# 'definitions.json': (json_schema_test_draft,), -# 'dependencies.json': (json_schema_test_draft,), +# 'defs.json': (json_schema_test_draft,), + 'dependentRequired.json': (json_schema_test_draft,), 'enum.json': (json_schema_test_draft,), 'exclusiveMaximum.json': (json_schema_test_draft,), 'exclusiveMinimum.json': (json_schema_test_draft,), From 4c9be8f963c32af38d14b8e5a2c215a0443f5251 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 23 Sep 2023 12:09:16 -0700 Subject: [PATCH 13/34] Removes test that does not pass --- .../python/.openapi-generator/FILES | 138 +++++++++++---- .../client/3_1_0_unit_test/python/README.md | 3 - .../docs/apis/tags/content_type_json_api.md | 2 - .../docs/apis/tags/dependent_required_api.md | 2 - .../apis/tags/operation_request_body_api.md | 1 - .../python/docs/apis/tags/path_post_api.md | 2 - ...esponse_content_content_type_schema_api.md | 1 - .../dependencies_with_escaped_characters.md | 12 -- .../post.md | 116 ------------- .../content/application_json/schema.md | 10 -- .../post.md | 111 ------------ .../content/application_json/schema.md | 10 -- .../src/unit_test_api/apis/path_to_api.py | 6 - ...es_with_escaped_characters_request_body.py | 13 -- ...racters_response_body_for_content_types.py | 13 -- .../apis/tags/content_type_json_api.py | 4 - .../apis/tags/dependent_required_api.py | 4 - .../apis/tags/operation_request_body_api.py | 2 - .../unit_test_api/apis/tags/path_post_api.py | 4 - ...esponse_content_content_type_schema_api.py | 2 - .../dependencies_with_escaped_characters.py | 37 ---- .../components/schemas/__init__.py | 1 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 -------------- .../post/request_body/__init__.py | 20 --- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 -- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 --- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 ------------ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ---- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 -- ...st_dependencies_with_escaped_characters.py | 73 -------- .../__init__.py | 0 .../test_post.py | 140 --------------- .../__init__.py | 0 .../test_post.py | 161 ------------------ .../codegen/generators/DefaultGenerator.java | 19 ++- .../openapimodels/CodegenSchema.java | 2 +- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 75 -------- .../3_1/unit_test_spec/spec_writer.py | 4 + 48 files changed, 129 insertions(+), 1189 deletions(-) delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index a96a6fffdef..b29759c96dd 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -60,7 +60,6 @@ docs/components/schema/contains_keyword_validation.md docs/components/schema/contains_with_null_instance_elements.md docs/components/schema/date_format.md docs/components/schema/date_time_format.md -docs/components/schema/dependencies_with_escaped_characters.md docs/components/schema/duration_format.md docs/components/schema/email_format.md docs/components/schema/empty_dependents.md @@ -196,8 +195,6 @@ docs/paths/request_body_post_date_format_request_body/post.md docs/paths/request_body_post_date_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md -docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_duration_format_request_body/post.md docs/paths/request_body_post_duration_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_email_format_request_body/post.md @@ -416,8 +413,6 @@ docs/paths/response_body_post_date_format_response_body_for_content_types/post.m docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md -docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -621,7 +616,6 @@ src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_reque src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py -src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py @@ -731,7 +725,6 @@ src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_resp src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py @@ -876,7 +869,6 @@ src/unit_test_api/components/schema/contains_keyword_validation.py src/unit_test_api/components/schema/contains_with_null_instance_elements.py src/unit_test_api/components/schema/date_format.py src/unit_test_api/components/schema/date_time_format.py -src/unit_test_api/components/schema/dependencies_with_escaped_characters.py src/unit_test_api/components/schema/duration_format.py src/unit_test_api/components/schema/email_format.py src/unit_test_api/components/schema/empty_dependents.py @@ -1207,15 +1199,6 @@ src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/req src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py @@ -2170,14 +2153,6 @@ src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_co src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py @@ -2857,12 +2832,115 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test_dependencies_with_escaped_characters.py +test/components/schema/test__not.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_does_not_look_in_applicators.py +test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py +test/components/schema/test_additionalproperties_with_schema.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py +test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_contains_keyword_validation.py +test/components/schema/test_contains_with_null_instance_elements.py +test/components/schema/test_date_format.py +test/components/schema/test_date_time_format.py +test/components/schema/test_duration_format.py +test/components/schema/test_email_format.py test/components/schema/test_empty_dependents.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_float_division_inf.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_idn_email_format.py +test/components/schema/test_idn_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_iri_format.py +test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_contains.py +test/components/schema/test_items_does_not_look_in_applicators_valid_case.py +test/components/schema/test_items_with_null_instance_elements.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py test/components/schema/test_multiple_dependents_required.py +test/components/schema/test_multiple_types_can_be_specified_in_an_array.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_properties_with_null_valued_instance_properties.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py +test/components/schema/test_regex_format.py +test/components/schema/test_relative_json_pointer_format.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py test/components/schema/test_single_dependency.py -test/test_paths/__init__.py -test/test_paths/__init__.py +test/components/schema/test_small_multiple_of_large_integer.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_time_format.py +test/components/schema/test_type_array_object_or_null.py +test/components/schema/test_type_array_or_object.py +test/components/schema/test_type_as_array_with_one_item.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_false_with_an_array_of_items.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uniqueitems_with_an_array_of_items.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py +test/components/schema/test_uuid_format.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3135,8 +3213,6 @@ test/test_paths/test_request_body_post_date_format_request_body/__init__.py test/test_paths/test_request_body_post_date_format_request_body/test_post.py test/test_paths/test_request_body_post_date_time_format_request_body/__init__.py test/test_paths/test_request_body_post_date_time_format_request_body/test_post.py -test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py -test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py test/test_paths/test_request_body_post_duration_format_request_body/__init__.py test/test_paths/test_request_body_post_duration_format_request_body/test_post.py test/test_paths/test_request_body_post_email_format_request_body/__init__.py @@ -3355,8 +3431,6 @@ test/test_paths/test_response_body_post_date_format_response_body_for_content_ty test/test_paths/test_response_body_post_date_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_duration_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_duration_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_email_format_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 91d605d66df..f2fa3b903d3 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -197,7 +197,6 @@ HTTP request | Method | Description /requestBody/postContainsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | /requestBody/postDateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) | /requestBody/postDateTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) | -/requestBody/postDependenciesWithEscapedCharactersRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | /requestBody/postDurationFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) | /requestBody/postEmailFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) | /requestBody/postEmptyDependentsRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) | @@ -307,7 +306,6 @@ HTTP request | Method | Description /responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes **post** | [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postDateFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) | /responseBody/postDateTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | -/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | /responseBody/postDurationFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) | /responseBody/postEmailFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) | /responseBody/postEmptyDependentsResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | @@ -422,7 +420,6 @@ Class | Description [ContainsWithNullInstanceElements](docs/components/schema/contains_with_null_instance_elements.md) | [DateFormat](docs/components/schema/date_format.md) | [DateTimeFormat](docs/components/schema/date_time_format.md) | -[DependenciesWithEscapedCharacters](docs/components/schema/dependencies_with_escaped_characters.md) | [DurationFormat](docs/components/schema/duration_format.md) | [EmailFormat](docs/components/schema/email_format.md) | [EmptyDependents](docs/components/schema/empty_dependents.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 56d75957526..907fc994a84 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -63,8 +63,6 @@ Method | Description [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | -[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | -[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md index f6a89be1c3d..4eedf6dda5d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_required_api.md @@ -9,8 +9,6 @@ All URIs are relative to the selected server Method | Description ------ | ------------- -[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | -[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | [**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | [**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index c2d0ff50051..3a14f521ec4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -36,7 +36,6 @@ Method | Description [**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | -[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | [**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 566dc15c6e0..1b730006f98 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -63,8 +63,6 @@ Method | Description [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | -[**post_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md) | -[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 47d7910dfc2..9320b84d800 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -36,7 +36,6 @@ Method | Description [**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | -[**post_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_response_body_for_content_types**](../../paths/response_body_post_email_format_response_body_for_content_types/post.md) | [**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md deleted file mode 100644 index 0ae7192c572..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/dependencies_with_escaped_characters.md +++ /dev/null @@ -1,12 +0,0 @@ -# DependenciesWithEscapedCharacters -unit_test_api.components.schema.dependencies_with_escaped_characters -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md deleted file mode 100644 index c390116e7a7..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post.md +++ /dev/null @@ -1,116 +0,0 @@ -unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_dependencies_with_escaped_characters_request_body | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | -| post_dependencies_with_escaped_characters_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_dependencies_with_escaped_characters_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_dependencies_with_escaped_characters_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostDependenciesWithEscapedCharactersRequestBody | This api is only for path=/requestBody/postDependenciesWithEscapedCharactersRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postDependenciesWithEscapedCharactersRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import dependent_required_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = dependent_required_api.DependentRequiredApi(api_client) - - # example passing only required values which don't have defaults set - body = dependencies_with_escaped_characters.DependenciesWithEscapedCharacters.validate(None) - try: - api_response = api_instance.post_dependencies_with_escaped_characters_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling DependentRequiredApi->post_dependencies_with_escaped_characters_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index f08e40a3924..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../../../../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md deleted file mode 100644 index 404ee3c3830..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_dependencies_with_escaped_characters_response_body_for_content_types | [DependentRequiredApi](../../apis/tags/dependent_required_api.md) | This api is only for tag=dependentRequired | -| post_dependencies_with_escaped_characters_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_dependencies_with_escaped_characters_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_dependencies_with_escaped_characters_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes | This api is only for path=/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import dependent_required_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = dependent_required_api.DependentRequiredApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_dependencies_with_escaped_characters_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling DependentRequiredApi->post_dependencies_with_escaped_characters_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to DependentRequiredApi API]](../../apis/tags/dependent_required_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index 3bb390f11db..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**dependencies_with_escaped_characters.DependenciesWithEscapedCharacters**](../../../../../../../../components/schema/dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index b007696c6af..94e7c2e8ff1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -28,7 +28,6 @@ from unit_test_api.apis.paths.request_body_post_contains_with_null_instance_elements_request_body import RequestBodyPostContainsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_date_format_request_body import RequestBodyPostDateFormatRequestBody from unit_test_api.apis.paths.request_body_post_date_time_format_request_body import RequestBodyPostDateTimeFormatRequestBody -from unit_test_api.apis.paths.request_body_post_dependencies_with_escaped_characters_request_body import RequestBodyPostDependenciesWithEscapedCharactersRequestBody from unit_test_api.apis.paths.request_body_post_duration_format_request_body import RequestBodyPostDurationFormatRequestBody from unit_test_api.apis.paths.request_body_post_email_format_request_body import RequestBodyPostEmailFormatRequestBody from unit_test_api.apis.paths.request_body_post_empty_dependents_request_body import RequestBodyPostEmptyDependentsRequestBody @@ -138,7 +137,6 @@ from unit_test_api.apis.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_format_response_body_for_content_types import ResponseBodyPostDateFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_time_format_response_body_for_content_types import ResponseBodyPostDateTimeFormatResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types import ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_duration_format_response_body_for_content_types import ResponseBodyPostDurationFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_email_format_response_body_for_content_types import ResponseBodyPostEmailFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_empty_dependents_response_body_for_content_types import ResponseBodyPostEmptyDependentsResponseBodyForContentTypes @@ -252,7 +250,6 @@ "/requestBody/postContainsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostContainsWithNullInstanceElementsRequestBody], "/requestBody/postDateFormatRequestBody": typing.Type[RequestBodyPostDateFormatRequestBody], "/requestBody/postDateTimeFormatRequestBody": typing.Type[RequestBodyPostDateTimeFormatRequestBody], - "/requestBody/postDependenciesWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostDependenciesWithEscapedCharactersRequestBody], "/requestBody/postDurationFormatRequestBody": typing.Type[RequestBodyPostDurationFormatRequestBody], "/requestBody/postEmailFormatRequestBody": typing.Type[RequestBodyPostEmailFormatRequestBody], "/requestBody/postEmptyDependentsRequestBody": typing.Type[RequestBodyPostEmptyDependentsRequestBody], @@ -362,7 +359,6 @@ "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postDateFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateFormatResponseBodyForContentTypes], "/responseBody/postDateTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateTimeFormatResponseBodyForContentTypes], - "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes], "/responseBody/postDurationFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDurationFormatResponseBodyForContentTypes], "/responseBody/postEmailFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostEmailFormatResponseBodyForContentTypes], "/responseBody/postEmptyDependentsResponseBodyForContentTypes": typing.Type[ResponseBodyPostEmptyDependentsResponseBodyForContentTypes], @@ -477,7 +473,6 @@ "/requestBody/postContainsWithNullInstanceElementsRequestBody": RequestBodyPostContainsWithNullInstanceElementsRequestBody, "/requestBody/postDateFormatRequestBody": RequestBodyPostDateFormatRequestBody, "/requestBody/postDateTimeFormatRequestBody": RequestBodyPostDateTimeFormatRequestBody, - "/requestBody/postDependenciesWithEscapedCharactersRequestBody": RequestBodyPostDependenciesWithEscapedCharactersRequestBody, "/requestBody/postDurationFormatRequestBody": RequestBodyPostDurationFormatRequestBody, "/requestBody/postEmailFormatRequestBody": RequestBodyPostEmailFormatRequestBody, "/requestBody/postEmptyDependentsRequestBody": RequestBodyPostEmptyDependentsRequestBody, @@ -587,7 +582,6 @@ "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postDateFormatResponseBodyForContentTypes": ResponseBodyPostDateFormatResponseBodyForContentTypes, "/responseBody/postDateTimeFormatResponseBodyForContentTypes": ResponseBodyPostDateTimeFormatResponseBodyForContentTypes, - "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes, "/responseBody/postDurationFormatResponseBodyForContentTypes": ResponseBodyPostDurationFormatResponseBodyForContentTypes, "/responseBody/postEmailFormatResponseBodyForContentTypes": ResponseBodyPostEmailFormatResponseBodyForContentTypes, "/responseBody/postEmptyDependentsResponseBodyForContentTypes": ResponseBodyPostEmptyDependentsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py deleted file mode 100644 index f398d537b0a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependencies_with_escaped_characters_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import ApiForPost - - -class RequestBodyPostDependenciesWithEscapedCharactersRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py deleted file mode 100644 index 96220f90f74..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index e8e8179773f..4e92d9a5b36 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -65,7 +65,6 @@ from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody -from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes @@ -211,7 +210,6 @@ from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody @@ -288,7 +286,6 @@ class ContentTypeJsonApi( PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, - PostDependenciesWithEscapedCharactersRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostHostnameFormatResponseBodyForContentTypes, @@ -434,7 +431,6 @@ class ContentTypeJsonApi( PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, PostRelativeJsonPointerFormatResponseBodyForContentTypes, - PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py index 76dfd8c2052..0e9e850d957 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py @@ -4,10 +4,8 @@ Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ -from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_empty_dependents_request_body.post.operation import PostEmptyDependentsRequestBody @@ -15,10 +13,8 @@ class DependentRequiredApi( - PostDependenciesWithEscapedCharactersRequestBody, PostMultipleDependentsRequiredResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, - PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostEmptyDependentsResponseBodyForContentTypes, PostSingleDependencyRequestBody, PostEmptyDependentsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index c50f99eedc5..56a437b0b59 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -64,7 +64,6 @@ from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody -from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody @@ -177,7 +176,6 @@ class OperationRequestBodyApi( PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, - PostDependenciesWithEscapedCharactersRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 2c370bf8cae..2743d70bf7e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -65,7 +65,6 @@ from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody -from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post.operation import PostDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes @@ -211,7 +210,6 @@ from unit_test_api.paths.request_body_post_enum_with0_does_not_match_false_request_body.post.operation import PostEnumWith0DoesNotMatchFalseRequestBody from unit_test_api.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body.post.operation import PostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body.post.operation import PostNestedAnyofToCheckValidationSemanticsRequestBody @@ -288,7 +286,6 @@ class PathPostApi( PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, - PostDependenciesWithEscapedCharactersRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostHostnameFormatResponseBodyForContentTypes, @@ -434,7 +431,6 @@ class PathPostApi( PostEnumWith0DoesNotMatchFalseRequestBody, PostNestedAllofToCheckValidationSemanticsRequestBody, PostRelativeJsonPointerFormatResponseBodyForContentTypes, - PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index bfe3481f747..195c5b9b438 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -100,7 +100,6 @@ from unit_test_api.paths.response_body_post_contains_keyword_validation_response_body_for_content_types.post.operation import PostContainsKeywordValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types.post.operation import PostRelativeJsonPointerFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes @@ -213,7 +212,6 @@ class ResponseContentContentTypeSchemaApi( PostContainsKeywordValidationResponseBodyForContentTypes, PostRelativeJsonPointerFormatResponseBodyForContentTypes, PostUuidFormatResponseBodyForContentTypes, - PostDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py deleted file mode 100644 index 3ca5e08c175..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependencies_with_escaped_characters.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - - -@dataclasses.dataclass(frozen=True) -class DependenciesWithEscapedCharacters( - schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - # any type - dependent_required: typing.Mapping[str, typing.Set[str]] = dataclasses.field( - default_factory=lambda: { - "foo -bar": { - "foo bar", - "foo'bar", - }, - "foo"bar": { - "foo bar", - "foo'bar", - }, - } - ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 31923977b39..8ecac402672 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -38,7 +38,6 @@ from unit_test_api.components.schema.contains_with_null_instance_elements import ContainsWithNullInstanceElements from unit_test_api.components.schema.date_format import DateFormat from unit_test_api.components.schema.date_time_format import DateTimeFormat -from unit_test_api.components.schema.dependencies_with_escaped_characters import DependenciesWithEscapedCharacters from unit_test_api.components.schema.duration_format import DurationFormat from unit_test_api.components.schema.email_format import EmailFormat from unit_test_api.components.schema.empty_dependents import EmptyDependents diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py deleted file mode 100644 index 32d922a08e7..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_dependencies_with_escaped_characters_request_body import RequestBodyPostDependenciesWithEscapedCharactersRequestBody - -path = "/requestBody/postDependenciesWithEscapedCharactersRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py deleted file mode 100644 index 6255721126d..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import dependencies_with_escaped_characters - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_dependencies_with_escaped_characters_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_dependencies_with_escaped_characters_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_dependencies_with_escaped_characters_request_body( - self, - body: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostDependenciesWithEscapedCharactersRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_dependencies_with_escaped_characters_request_body = BaseApi._post_dependencies_with_escaped_characters_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_dependencies_with_escaped_characters_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index 06499bb8ed1..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import dependencies_with_escaped_characters -Schema2: typing_extensions.TypeAlias = dependencies_with_escaped_characters.DependenciesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py deleted file mode 100644 index 6db5955974a..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types import ResponseBodyPostDependenciesWithEscapedCharactersResponseBodyForContentTypes - -path = "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py deleted file mode 100644 index 325ec235862..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_dependencies_with_escaped_characters_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_dependencies_with_escaped_characters_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_dependencies_with_escaped_characters_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostDependenciesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_dependencies_with_escaped_characters_response_body_for_content_types = BaseApi._post_dependencies_with_escaped_characters_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_dependencies_with_escaped_characters_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index aef0998dced..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.OUTPUT_BASE_TYPES - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index 06499bb8ed1..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import dependencies_with_escaped_characters -Schema2: typing_extensions.TypeAlias = dependencies_with_escaped_characters.DependenciesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py deleted file mode 100644 index 1f785d3dbb2..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependencies_with_escaped_characters.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.dependencies_with_escaped_characters import DependenciesWithEscapedCharacters -from unit_test_api.configurations import schema_configuration - - -class TestDependenciesWithEscapedCharacters(unittest.TestCase): - """DependenciesWithEscapedCharacters unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_crlf_missing_dependent_fails(self): - # CRLF missing dependent - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - DependenciesWithEscapedCharacters.validate( - { - "foo\nbar": - 1, - "foo": - 2, - }, - configuration=self.configuration - ) - - def test_quoted_quotes_missing_dependent_fails(self): - # quoted quotes missing dependent - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - DependenciesWithEscapedCharacters.validate( - { - "foo\"bar": - 2, - }, - configuration=self.configuration - ) - - def test_crlf_passes(self): - # CRLF - DependenciesWithEscapedCharacters.validate( - { - "foo\nbar": - 1, - "foo\rbar": - 2, - }, - configuration=self.configuration - ) - - def test_quoted_quotes_passes(self): - # quoted quotes - DependenciesWithEscapedCharacters.validate( - { - "foo'bar": - 1, - "foo\"bar": - 2, - }, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py deleted file mode 100644 index d0ca8a32735..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependencies_with_escaped_characters_request_body/test_post.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_dependencies_with_escaped_characters_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_crlf_missing_dependent_fails(self): - content_type = 'application/json' - # CRLF missing dependent - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo\nbar": - 1, - "foo": - 2, - } - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_quoted_quotes_missing_dependent_fails(self): - content_type = 'application/json' - # quoted quotes missing dependent - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo\"bar": - 2, - } - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - - def test_crlf_passes(self): - content_type = 'application/json' - # CRLF - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo\nbar": - 1, - "foo\rbar": - 2, - } - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postDependenciesWithEscapedCharactersRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_quoted_quotes_passes(self): - content_type = 'application/json' - # quoted quotes - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo'bar": - 1, - "foo\"bar": - 2, - } - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postDependenciesWithEscapedCharactersRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py deleted file mode 100644 index 8c2af7abe26..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_dependencies_with_escaped_characters_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_crlf_missing_dependent_fails(self): - # CRLF missing dependent - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo\nbar": - 1, - "foo": - 2, - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_quoted_quotes_missing_dependent_fails(self): - # quoted quotes missing dependent - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo\"bar": - 2, - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - - def test_crlf_passes(self): - # CRLF - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo\nbar": - 1, - "foo\rbar": - 2, - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_quoted_quotes_passes(self): - # quoted quotes - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo'bar": - 1, - "foo\"bar": - 2, - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - -if __name__ == '__main__': - unittest.main() diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index dddf7c131f8..7d6be263d0c 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2239,6 +2239,23 @@ private ArrayList getPrefixItems(List schemaPrefixItems, return prefixItems; } + private LinkedHashMap> getDependentRequired(LinkedHashMap> schemaDepReq) { + if (schemaDepReq == null) { + return null; + } + LinkedHashMap> dependenteRequired = new LinkedHashMap<>(); + for (Entry> entry: schemaDepReq.entrySet()) { + String key = entry.getKey(); + List values = entry.getValue(); + String fixedKey = handleSpecialCharacters(key); + ArrayList fixedValues = new ArrayList<>(); + for (String value: values) { + fixedValues.add(handleSpecialCharacters(value)); + } + dependenteRequired.put(fixedKey, fixedValues); + } + return dependenteRequired; + } /** * Convert OAS Property object to Codegen Property object. @@ -2309,7 +2326,7 @@ public CodegenSchema fromSchema(Schema p, String sourceJsonPath, String currentJ property.externalDocumentation = p.getExternalDocs(); property.maxContains = p.getMaxContains(); property.minContains = p.getMinContains(); - property.dependentRequired = (LinkedHashMap>) p.getDependentRequired(); + property.dependentRequired = getDependentRequired((LinkedHashMap>) p.getDependentRequired()); /* Order of assigning properties must reverse the order in diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java index 14996bec279..b342ff9037e 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenSchema.java @@ -78,7 +78,7 @@ public class CodegenSchema { public CodegenSchema contains; public Integer minContains; public Integer maxContains; - public LinkedHashMap> dependentRequired; + public LinkedHashMap> dependentRequired; public LinkedHashMapWithContext dependentSchemas; public boolean isBooleanSchemaTrue; // supports boolean schemas public boolean isBooleanSchemaFalse; // supports boolean schemas diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index ac3d4c79e8b..86be9753dfa 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -974,42 +974,6 @@ paths: - path.post - contentType_json - dependentRequired - /requestBody/postDependenciesWithEscapedCharactersRequestBody: - post: - operationId: postDependenciesWithEscapedCharactersRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DependenciesWithEscapedCharacters' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/DependenciesWithEscapedCharacters' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - dependentRequired - /responseBody/postDependenciesWithEscapedCharactersResponseBodyForContentTypes: - post: - operationId: postDependenciesWithEscapedCharactersResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/DependenciesWithEscapedCharacters' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/DependenciesWithEscapedCharacters' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - dependentRequired /requestBody/postSimpleEnumValidationRequestBody: post: operationId: postSimpleEnumValidationRequestBody @@ -4161,15 +4125,6 @@ components: quux: - foo - bar - DependenciesWithEscapedCharacters: - $schema: https://json-schema.org/draft/2020-12/schema - dependentRequired: - ? 'foo - - bar' - : - "foo\rbar" - foo"bar: - - foo'bar SimpleEnumValidation: $schema: https://json-schema.org/draft/2020-12/schema enum: @@ -4973,36 +4928,6 @@ components: data: quux: 1 valid: false - DependenciesWithEscapedCharacters: - Crlf: - description: CRLF - data: - ? 'foo - - bar' - : 1 - "foo\rbar": 2 - valid: true - QuotedQuotes: - description: quoted quotes - data: - foo'bar: 1 - foo"bar: 2 - valid: true - CrlfMissingDependent: - description: CRLF missing dependent - data: - ? 'foo - - bar' - : 1 - foo: 2 - valid: false - QuotedQuotesMissingDependent: - description: quoted quotes missing dependent - data: - foo"bar: 2 - valid: false SimpleEnumValidation: OneOfTheEnumIsValid: description: one of the enum is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index e3103384a37..7d782230c41 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -104,6 +104,7 @@ class ExclusionReason: ref_not_resolved = 'ref not resolved, TODO resolve only remote refs' bug_max_items_missing = 'swagger-parser has a bug where maxItems is omitted: https://github.com/swagger-api/swagger-parser/issues/1974' bug_with_non_string_const_values = 'swagger-parser const bug: https://github.com/swagger-api/swagger-parser/issues/1975' + bug_dependent_required_values_incorrect = 'swagger parser bug where dependentRequired values are incorrect https://github.com/swagger-api/swagger-parser/issues/1978' json_schema_test_draft = 'draft2020-12' path_to_json_schema_drafts = ('..', '..', 'JSON-Schema-Test-Suite', 'tests') @@ -145,6 +146,9 @@ class ExclusionReason: (json_schema_test_draft, 'default.json'): { 'invalid type for default': ExclusionReason.v303_requires_that_the_default_value_is_an_allowed_type, }, + (json_schema_test_draft, 'dependentRequired.json'): { + "dependencies with escaped characters": ExclusionReason.bug_dependent_required_values_incorrect, + }, (json_schema_test_draft, 'enum.json'): { 'heterogeneous enum validation': ExclusionReason.swagger_parser_enum_type_bug, 'heterogeneous enum-with-null validation': ExclusionReason.swagger_parser_enum_type_bug, From d6829181242b380eac406b7fb21eb41e0f46cbc2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 23 Sep 2023 12:27:35 -0700 Subject: [PATCH 14/34] Adds test for dependentSchemas --- .../python/.openapi-generator/FILES | 207 ++++++------- .../client/3_1_0_unit_test/python/README.md | 9 + .../docs/apis/tags/content_type_json_api.md | 6 + .../docs/apis/tags/dependent_schemas_api.md | 19 ++ .../apis/tags/operation_request_body_api.md | 3 + .../python/docs/apis/tags/path_post_api.md | 6 + ...esponse_content_content_type_schema_api.md | 3 + ...as_dependencies_with_escaped_characters.md | 12 + ...endent_subschema_incompatible_with_root.md | 43 +++ .../dependent_schemas_single_dependency.md | 12 + .../post.md | 116 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 18 ++ ...es_with_escaped_characters_request_body.py | 13 + ...ema_incompatible_with_root_request_body.py | 13 + ..._schemas_single_dependency_request_body.py | 13 + ...racters_response_body_for_content_types.py | 13 + ...th_root_response_body_for_content_types.py | 13 + ...endency_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 12 + .../apis/tags/dependent_schemas_api.py | 28 ++ .../apis/tags/operation_request_body_api.py | 6 + .../unit_test_api/apis/tags/path_post_api.py | 12 + ...esponse_content_content_type_schema_api.py | 6 + ...as_dependencies_with_escaped_characters.py | 96 ++++++ ...endent_subschema_incompatible_with_root.py | 203 +++++++++++++ .../dependent_schemas_single_dependency.py | 129 ++++++++ .../components/schemas/__init__.py | 3 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + ...as_dependencies_with_escaped_characters.py | 79 +++++ ...endent_subschema_incompatible_with_root.py | 69 +++++ ...est_dependent_schemas_single_dependency.py | 109 +++++++ .../__init__.py | 0 .../test_post.py | 130 ++++++++ .../__init__.py | 0 .../test_post.py | 136 +++++++++ .../__init__.py | 0 .../test_post.py | 248 ++++++++++++++++ .../__init__.py | 0 .../test_post.py | 161 ++++++++++ .../__init__.py | 0 .../test_post.py | 157 ++++++++++ .../__init__.py | 0 .../test_post.py | 279 ++++++++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 225 ++++++++++++++ .../3_1/unit_test_spec/spec_writer.py | 9 +- 107 files changed, 4197 insertions(+), 110 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_schemas_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependencies_with_escaped_characters.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_single_dependency.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependencies_with_escaped_characters.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_single_dependency.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_single_dependency.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index b29759c96dd..052f344277f 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -10,6 +10,7 @@ docs/apis/tags/const_api.md docs/apis/tags/contains_api.md docs/apis/tags/content_type_json_api.md docs/apis/tags/dependent_required_api.md +docs/apis/tags/dependent_schemas_api.md docs/apis/tags/enum_api.md docs/apis/tags/format_api.md docs/apis/tags/items_api.md @@ -60,6 +61,9 @@ docs/components/schema/contains_keyword_validation.md docs/components/schema/contains_with_null_instance_elements.md docs/components/schema/date_format.md docs/components/schema/date_time_format.md +docs/components/schema/dependent_schemas_dependencies_with_escaped_characters.md +docs/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md +docs/components/schema/dependent_schemas_single_dependency.md docs/components/schema/duration_format.md docs/components/schema/email_format.md docs/components/schema/empty_dependents.md @@ -195,6 +199,12 @@ docs/paths/request_body_post_date_format_request_body/post.md docs/paths/request_body_post_date_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_date_time_format_request_body/post.md docs/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md +docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md +docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md +docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_duration_format_request_body/post.md docs/paths/request_body_post_duration_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_email_format_request_body/post.md @@ -413,6 +423,12 @@ docs/paths/response_body_post_date_format_response_body_for_content_types/post.m docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md +docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md +docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md +docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_email_format_response_body_for_content_types/post.md @@ -616,6 +632,9 @@ src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_reque src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py +src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py +src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py +src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py @@ -725,6 +744,9 @@ src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_resp src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py @@ -817,6 +839,7 @@ src/unit_test_api/apis/tags/const_api.py src/unit_test_api/apis/tags/contains_api.py src/unit_test_api/apis/tags/content_type_json_api.py src/unit_test_api/apis/tags/dependent_required_api.py +src/unit_test_api/apis/tags/dependent_schemas_api.py src/unit_test_api/apis/tags/enum_api.py src/unit_test_api/apis/tags/format_api.py src/unit_test_api/apis/tags/items_api.py @@ -869,6 +892,9 @@ src/unit_test_api/components/schema/contains_keyword_validation.py src/unit_test_api/components/schema/contains_with_null_instance_elements.py src/unit_test_api/components/schema/date_format.py src/unit_test_api/components/schema/date_time_format.py +src/unit_test_api/components/schema/dependent_schemas_dependencies_with_escaped_characters.py +src/unit_test_api/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.py +src/unit_test_api/components/schema/dependent_schemas_single_dependency.py src/unit_test_api/components/schema/duration_format.py src/unit_test_api/components/schema/email_format.py src/unit_test_api/components/schema/empty_dependents.py @@ -1199,6 +1225,33 @@ src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/req src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py @@ -2153,6 +2206,30 @@ src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_co src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py @@ -2832,115 +2909,15 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test__not.py -test/components/schema/test_additionalproperties_are_allowed_by_default.py -test/components/schema/test_additionalproperties_can_exist_by_itself.py -test/components/schema/test_additionalproperties_does_not_look_in_applicators.py -test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py -test/components/schema/test_additionalproperties_with_schema.py -test/components/schema/test_allof.py -test/components/schema/test_allof_combined_with_anyof_oneof.py -test/components/schema/test_allof_simple_types.py -test/components/schema/test_allof_with_base_schema.py -test/components/schema/test_allof_with_one_empty_schema.py -test/components/schema/test_allof_with_the_first_empty_schema.py -test/components/schema/test_allof_with_the_last_empty_schema.py -test/components/schema/test_allof_with_two_empty_schemas.py -test/components/schema/test_anyof.py -test/components/schema/test_anyof_complex_types.py -test/components/schema/test_anyof_with_base_schema.py -test/components/schema/test_anyof_with_one_empty_schema.py -test/components/schema/test_array_type_matches_arrays.py -test/components/schema/test_boolean_type_matches_booleans.py -test/components/schema/test_by_int.py -test/components/schema/test_by_number.py -test/components/schema/test_by_small_number.py -test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_contains_keyword_validation.py -test/components/schema/test_contains_with_null_instance_elements.py -test/components/schema/test_date_format.py -test/components/schema/test_date_time_format.py -test/components/schema/test_duration_format.py -test/components/schema/test_email_format.py -test/components/schema/test_empty_dependents.py -test/components/schema/test_enum_with0_does_not_match_false.py -test/components/schema/test_enum_with1_does_not_match_true.py -test/components/schema/test_enum_with_escaped_characters.py -test/components/schema/test_enum_with_false_does_not_match0.py -test/components/schema/test_enum_with_true_does_not_match1.py -test/components/schema/test_enums_in_properties.py -test/components/schema/test_float_division_inf.py -test/components/schema/test_forbidden_property.py -test/components/schema/test_hostname_format.py -test/components/schema/test_idn_email_format.py -test/components/schema/test_idn_hostname_format.py -test/components/schema/test_integer_type_matches_integers.py -test/components/schema/test_ipv4_format.py -test/components/schema/test_ipv6_format.py -test/components/schema/test_iri_format.py -test/components/schema/test_iri_reference_format.py -test/components/schema/test_items_contains.py -test/components/schema/test_items_does_not_look_in_applicators_valid_case.py -test/components/schema/test_items_with_null_instance_elements.py -test/components/schema/test_json_pointer_format.py -test/components/schema/test_maximum_validation.py -test/components/schema/test_maximum_validation_with_unsigned_integer.py -test/components/schema/test_maxitems_validation.py -test/components/schema/test_maxlength_validation.py -test/components/schema/test_maxproperties0_means_the_object_is_empty.py -test/components/schema/test_maxproperties_validation.py -test/components/schema/test_minimum_validation.py -test/components/schema/test_minimum_validation_with_signed_integer.py -test/components/schema/test_minitems_validation.py -test/components/schema/test_minlength_validation.py -test/components/schema/test_minproperties_validation.py -test/components/schema/test_multiple_dependents_required.py -test/components/schema/test_multiple_types_can_be_specified_in_an_array.py -test/components/schema/test_nested_allof_to_check_validation_semantics.py -test/components/schema/test_nested_anyof_to_check_validation_semantics.py -test/components/schema/test_nested_items.py -test/components/schema/test_nested_oneof_to_check_validation_semantics.py -test/components/schema/test_not_more_complex_schema.py -test/components/schema/test_nul_characters_in_strings.py -test/components/schema/test_null_type_matches_only_the_null_object.py -test/components/schema/test_number_type_matches_numbers.py -test/components/schema/test_object_properties_validation.py -test/components/schema/test_object_type_matches_objects.py -test/components/schema/test_oneof.py -test/components/schema/test_oneof_complex_types.py -test/components/schema/test_oneof_with_base_schema.py -test/components/schema/test_oneof_with_empty_schema.py -test/components/schema/test_oneof_with_required.py -test/components/schema/test_pattern_is_not_anchored.py -test/components/schema/test_pattern_validation.py -test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py -test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_properties_with_escaped_characters.py -test/components/schema/test_properties_with_null_valued_instance_properties.py -test/components/schema/test_property_named_ref_that_is_not_a_reference.py -test/components/schema/test_regex_format.py -test/components/schema/test_relative_json_pointer_format.py -test/components/schema/test_required_default_validation.py -test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_required_validation.py -test/components/schema/test_required_with_empty_array.py -test/components/schema/test_required_with_escaped_characters.py -test/components/schema/test_simple_enum_validation.py -test/components/schema/test_single_dependency.py -test/components/schema/test_small_multiple_of_large_integer.py -test/components/schema/test_string_type_matches_strings.py -test/components/schema/test_time_format.py -test/components/schema/test_type_array_object_or_null.py -test/components/schema/test_type_array_or_object.py -test/components/schema/test_type_as_array_with_one_item.py -test/components/schema/test_uniqueitems_false_validation.py -test/components/schema/test_uniqueitems_false_with_an_array_of_items.py -test/components/schema/test_uniqueitems_validation.py -test/components/schema/test_uniqueitems_with_an_array_of_items.py -test/components/schema/test_uri_format.py -test/components/schema/test_uri_reference_format.py -test/components/schema/test_uri_template_format.py -test/components/schema/test_uuid_format.py +test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py +test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py +test/components/schema/test_dependent_schemas_single_dependency.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3213,6 +3190,12 @@ test/test_paths/test_request_body_post_date_format_request_body/__init__.py test/test_paths/test_request_body_post_date_format_request_body/test_post.py test/test_paths/test_request_body_post_date_time_format_request_body/__init__.py test/test_paths/test_request_body_post_date_time_format_request_body/test_post.py +test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py +test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/test_post.py +test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py +test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/test_post.py +test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/__init__.py +test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/test_post.py test/test_paths/test_request_body_post_duration_format_request_body/__init__.py test/test_paths/test_request_body_post_duration_format_request_body/test_post.py test/test_paths/test_request_body_post_email_format_request_body/__init__.py @@ -3431,6 +3414,12 @@ test/test_paths/test_response_body_post_date_format_response_body_for_content_ty test/test_paths/test_response_body_post_date_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_date_time_format_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_duration_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_duration_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_email_format_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index f2fa3b903d3..f1e0e648d3b 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -197,6 +197,9 @@ HTTP request | Method | Description /requestBody/postContainsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_request_body](docs/paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | /requestBody/postDateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_request_body](docs/paths/request_body_post_date_format_request_body/post.md) | /requestBody/postDateTimeFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_request_body](docs/paths/request_body_post_date_time_format_request_body/post.md) | +/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) [DependentSchemasApi](docs/apis/tags/dependent_schemas_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_request_body](docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) | +/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body](docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body](docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) [DependentSchemasApi](docs/apis/tags/dependent_schemas_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body](docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body](docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) | +/requestBody/postDependentSchemasSingleDependencyRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_dependent_schemas_single_dependency_request_body](docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependent_schemas_single_dependency_request_body](docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) [DependentSchemasApi](docs/apis/tags/dependent_schemas_api.md).[post_dependent_schemas_single_dependency_request_body](docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependent_schemas_single_dependency_request_body](docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) | /requestBody/postDurationFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_request_body](docs/paths/request_body_post_duration_format_request_body/post.md) | /requestBody/postEmailFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_email_format_request_body](docs/paths/request_body_post_email_format_request_body/post.md) | /requestBody/postEmptyDependentsRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_empty_dependents_request_body](docs/paths/request_body_post_empty_dependents_request_body/post.md) | @@ -306,6 +309,9 @@ HTTP request | Method | Description /responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes **post** | [ContainsApi](docs/apis/tags/contains_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_contains_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postDateFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_format_response_body_for_content_types](docs/paths/response_body_post_date_format_response_body_for_content_types/post.md) | /responseBody/postDateTimeFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_date_time_format_response_body_for_content_types](docs/paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [DependentSchemasApi](docs/apis/tags/dependent_schemas_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | +/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) [DependentSchemasApi](docs/apis/tags/dependent_schemas_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) | +/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_dependent_schemas_single_dependency_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) [DependentSchemasApi](docs/apis/tags/dependent_schemas_api.md).[post_dependent_schemas_single_dependency_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_dependent_schemas_single_dependency_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_dependent_schemas_single_dependency_response_body_for_content_types](docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) | /responseBody/postDurationFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_duration_format_response_body_for_content_types](docs/paths/response_body_post_duration_format_response_body_for_content_types/post.md) | /responseBody/postEmailFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_email_format_response_body_for_content_types](docs/paths/response_body_post_email_format_response_body_for_content_types/post.md) | /responseBody/postEmptyDependentsResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_empty_dependents_response_body_for_content_types](docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | @@ -420,6 +426,9 @@ Class | Description [ContainsWithNullInstanceElements](docs/components/schema/contains_with_null_instance_elements.md) | [DateFormat](docs/components/schema/date_format.md) | [DateTimeFormat](docs/components/schema/date_time_format.md) | +[DependentSchemasDependenciesWithEscapedCharacters](docs/components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | +[DependentSchemasDependentSubschemaIncompatibleWithRoot](docs/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | +[DependentSchemasSingleDependency](docs/components/schema/dependent_schemas_single_dependency.md) | [DurationFormat](docs/components/schema/duration_format.md) | [EmailFormat](docs/components/schema/email_format.md) | [EmptyDependents](docs/components/schema/empty_dependents.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 907fc994a84..e6e45d9a834 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -63,6 +63,12 @@ Method | Description [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body**](../../paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) | +[**post_dependent_schemas_single_dependency_request_body**](../../paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) | +[**post_dependent_schemas_single_dependency_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_schemas_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_schemas_api.md new file mode 100644 index 00000000000..55bb8085e68 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/dependent_schemas_api.md @@ -0,0 +1,19 @@ + +unit_test_api.apis.tags.dependent_schemas_api +# DependentSchemasApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_dependent_schemas_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body**](../../paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) | +[**post_dependent_schemas_single_dependency_request_body**](../../paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) | +[**post_dependent_schemas_single_dependency_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 3a14f521ec4..41d7e846ba9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -36,6 +36,9 @@ Method | Description [**post_contains_with_null_instance_elements_request_body**](../../paths/request_body_post_contains_with_null_instance_elements_request_body/post.md) | [**post_date_format_request_body**](../../paths/request_body_post_date_format_request_body/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body**](../../paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) | +[**post_dependent_schemas_single_dependency_request_body**](../../paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | [**post_empty_dependents_request_body**](../../paths/request_body_post_empty_dependents_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 1b730006f98..6ced6f3f6bb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -63,6 +63,12 @@ Method | Description [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_request_body**](../../paths/request_body_post_date_time_format_request_body/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_request_body**](../../paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body**](../../paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) | +[**post_dependent_schemas_single_dependency_request_body**](../../paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md) | +[**post_dependent_schemas_single_dependency_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) | [**post_duration_format_request_body**](../../paths/request_body_post_duration_format_request_body/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_request_body**](../../paths/request_body_post_email_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 9320b84d800..eae9656a588 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -36,6 +36,9 @@ Method | Description [**post_contains_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_date_format_response_body_for_content_types**](../../paths/response_body_post_date_format_response_body_for_content_types/post.md) | [**post_date_time_format_response_body_for_content_types**](../../paths/response_body_post_date_time_format_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md) | +[**post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md) | +[**post_dependent_schemas_single_dependency_response_body_for_content_types**](../../paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md) | [**post_duration_format_response_body_for_content_types**](../../paths/response_body_post_duration_format_response_body_for_content_types/post.md) | [**post_email_format_response_body_for_content_types**](../../paths/response_body_post_email_format_response_body_for_content_types/post.md) | [**post_empty_dependents_response_body_for_content_types**](../../paths/response_body_post_empty_dependents_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependencies_with_escaped_characters.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependencies_with_escaped_characters.md new file mode 100644 index 00000000000..31836342fba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependencies_with_escaped_characters.md @@ -0,0 +1,12 @@ +# DependentSchemasDependenciesWithEscapedCharacters +unit_test_api.components.schema.dependent_schemas_dependencies_with_escaped_characters +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md new file mode 100644 index 00000000000..2d25240c2a8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md @@ -0,0 +1,43 @@ +# DependentSchemasDependentSubschemaIncompatibleWithRoot +unit_test_api.components.schema.dependent_schemas_dependent_subschema_incompatible_with_root +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [DependentSchemasDependentSubschemaIncompatibleWithRootDict](#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [DependentSchemasDependentSubschemaIncompatibleWithRootDict](#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | + +## DependentSchemasDependentSubschemaIncompatibleWithRootDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] + +## DependentSchemasDependentSubschemaIncompatibleWithRootDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [DependentSchemasDependentSubschemaIncompatibleWithRootDict](#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [DependentSchemasDependentSubschemaIncompatibleWithRootDict](#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor +get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_single_dependency.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_single_dependency.md new file mode 100644 index 00000000000..b39875c1ce0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/dependent_schemas_single_dependency.md @@ -0,0 +1,12 @@ +# DependentSchemasSingleDependency +unit_test_api.components.schema.dependent_schemas_single_dependency +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md new file mode 100644 index 00000000000..bbf068d0f01 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependent_schemas_dependencies_with_escaped_characters_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_dependent_schemas_dependencies_with_escaped_characters_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependent_schemas_dependencies_with_escaped_characters_request_body | [DependentSchemasApi](../../apis/tags/dependent_schemas_api.md) | This api is only for tag=dependentSchemas | +| post_dependent_schemas_dependencies_with_escaped_characters_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostDependentSchemasDependenciesWithEscapedCharactersRequestBody | This api is only for path=/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters**](../../components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters.validate(None) + try: + api_response = api_instance.post_dependent_schemas_dependencies_with_escaped_characters_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_dependent_schemas_dependencies_with_escaped_characters_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to DependentSchemasApi API]](../../apis/tags/dependent_schemas_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..60e9afd1527 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters**](../../../../../../components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md new file mode 100644 index 00000000000..b1a97bfebda --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body | [DependentSchemasApi](../../apis/tags/dependent_schemas_api.md) | This api is only for tag=dependentSchemas | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody | This api is only for path=/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot**](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot.validate(None) + try: + api_response = api_instance.post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to DependentSchemasApi API]](../../apis/tags/dependent_schemas_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a4110811db1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot**](../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md new file mode 100644 index 00000000000..5f5dbe29ea9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependent_schemas_single_dependency_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_dependent_schemas_single_dependency_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependent_schemas_single_dependency_request_body | [DependentSchemasApi](../../apis/tags/dependent_schemas_api.md) | This api is only for tag=dependentSchemas | +| post_dependent_schemas_single_dependency_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostDependentSchemasSingleDependencyRequestBody | This api is only for path=/requestBody/postDependentSchemasSingleDependencyRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postDependentSchemasSingleDependencyRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_single_dependency.DependentSchemasSingleDependency**](../../components/schema/dependent_schemas_single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = dependent_schemas_single_dependency.DependentSchemasSingleDependency.validate(None) + try: + api_response = api_instance.post_dependent_schemas_single_dependency_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_dependent_schemas_single_dependency_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to DependentSchemasApi API]](../../apis/tags/dependent_schemas_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..35fca3c1a65 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_single_dependency.DependentSchemasSingleDependency**](../../../../../../components/schema/dependent_schemas_single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md new file mode 100644 index 00000000000..53c8f76344f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types | [DependentSchemasApi](../../apis/tags/dependent_schemas_api.md) | This api is only for tag=dependentSchemas | +| post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes | This api is only for path=/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters**](../../components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to DependentSchemasApi API]](../../apis/tags/dependent_schemas_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..3cd2dca4265 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters**](../../../../../../../../components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md new file mode 100644 index 00000000000..129e92aa1db --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types | [DependentSchemasApi](../../apis/tags/dependent_schemas_api.md) | This api is only for tag=dependentSchemas | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes | This api is only for path=/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot**](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to DependentSchemasApi API]](../../apis/tags/dependent_schemas_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..bf8c3805b1d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot**](../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md new file mode 100644 index 00000000000..db673a75a7f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_dependent_schemas_single_dependency_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_dependent_schemas_single_dependency_response_body_for_content_types | [DependentSchemasApi](../../apis/tags/dependent_schemas_api.md) | This api is only for tag=dependentSchemas | +| post_dependent_schemas_single_dependency_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_dependent_schemas_single_dependency_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostDependentSchemasSingleDependencyResponseBodyForContentTypes | This api is only for path=/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_single_dependency.DependentSchemasSingleDependency**](../../components/schema/dependent_schemas_single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_dependent_schemas_single_dependency_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_dependent_schemas_single_dependency_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to DependentSchemasApi API]](../../apis/tags/dependent_schemas_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8a4b6d2748e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**dependent_schemas_single_dependency.DependentSchemasSingleDependency**](../../../../../../../../components/schema/dependent_schemas_single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 94e7c2e8ff1..89212517da5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -28,6 +28,9 @@ from unit_test_api.apis.paths.request_body_post_contains_with_null_instance_elements_request_body import RequestBodyPostContainsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_date_format_request_body import RequestBodyPostDateFormatRequestBody from unit_test_api.apis.paths.request_body_post_date_time_format_request_body import RequestBodyPostDateTimeFormatRequestBody +from unit_test_api.apis.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body import RequestBodyPostDependentSchemasDependenciesWithEscapedCharactersRequestBody +from unit_test_api.apis.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body import RequestBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody +from unit_test_api.apis.paths.request_body_post_dependent_schemas_single_dependency_request_body import RequestBodyPostDependentSchemasSingleDependencyRequestBody from unit_test_api.apis.paths.request_body_post_duration_format_request_body import RequestBodyPostDurationFormatRequestBody from unit_test_api.apis.paths.request_body_post_email_format_request_body import RequestBodyPostEmailFormatRequestBody from unit_test_api.apis.paths.request_body_post_empty_dependents_request_body import RequestBodyPostEmptyDependentsRequestBody @@ -137,6 +140,9 @@ from unit_test_api.apis.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_format_response_body_for_content_types import ResponseBodyPostDateFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_date_time_format_response_body_for_content_types import ResponseBodyPostDateTimeFormatResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types import ResponseBodyPostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types import ResponseBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types import ResponseBodyPostDependentSchemasSingleDependencyResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_duration_format_response_body_for_content_types import ResponseBodyPostDurationFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_email_format_response_body_for_content_types import ResponseBodyPostEmailFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_empty_dependents_response_body_for_content_types import ResponseBodyPostEmptyDependentsResponseBodyForContentTypes @@ -250,6 +256,9 @@ "/requestBody/postContainsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostContainsWithNullInstanceElementsRequestBody], "/requestBody/postDateFormatRequestBody": typing.Type[RequestBodyPostDateFormatRequestBody], "/requestBody/postDateTimeFormatRequestBody": typing.Type[RequestBodyPostDateTimeFormatRequestBody], + "/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostDependentSchemasDependenciesWithEscapedCharactersRequestBody], + "/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody": typing.Type[RequestBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody], + "/requestBody/postDependentSchemasSingleDependencyRequestBody": typing.Type[RequestBodyPostDependentSchemasSingleDependencyRequestBody], "/requestBody/postDurationFormatRequestBody": typing.Type[RequestBodyPostDurationFormatRequestBody], "/requestBody/postEmailFormatRequestBody": typing.Type[RequestBodyPostEmailFormatRequestBody], "/requestBody/postEmptyDependentsRequestBody": typing.Type[RequestBodyPostEmptyDependentsRequestBody], @@ -359,6 +368,9 @@ "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postDateFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateFormatResponseBodyForContentTypes], "/responseBody/postDateTimeFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDateTimeFormatResponseBodyForContentTypes], + "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes], + "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes": typing.Type[ResponseBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes], + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes": typing.Type[ResponseBodyPostDependentSchemasSingleDependencyResponseBodyForContentTypes], "/responseBody/postDurationFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostDurationFormatResponseBodyForContentTypes], "/responseBody/postEmailFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostEmailFormatResponseBodyForContentTypes], "/responseBody/postEmptyDependentsResponseBodyForContentTypes": typing.Type[ResponseBodyPostEmptyDependentsResponseBodyForContentTypes], @@ -473,6 +485,9 @@ "/requestBody/postContainsWithNullInstanceElementsRequestBody": RequestBodyPostContainsWithNullInstanceElementsRequestBody, "/requestBody/postDateFormatRequestBody": RequestBodyPostDateFormatRequestBody, "/requestBody/postDateTimeFormatRequestBody": RequestBodyPostDateTimeFormatRequestBody, + "/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody": RequestBodyPostDependentSchemasDependenciesWithEscapedCharactersRequestBody, + "/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody": RequestBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, + "/requestBody/postDependentSchemasSingleDependencyRequestBody": RequestBodyPostDependentSchemasSingleDependencyRequestBody, "/requestBody/postDurationFormatRequestBody": RequestBodyPostDurationFormatRequestBody, "/requestBody/postEmailFormatRequestBody": RequestBodyPostEmailFormatRequestBody, "/requestBody/postEmptyDependentsRequestBody": RequestBodyPostEmptyDependentsRequestBody, @@ -582,6 +597,9 @@ "/responseBody/postContainsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostContainsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postDateFormatResponseBodyForContentTypes": ResponseBodyPostDateFormatResponseBodyForContentTypes, "/responseBody/postDateTimeFormatResponseBodyForContentTypes": ResponseBodyPostDateTimeFormatResponseBodyForContentTypes, + "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, + "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes": ResponseBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes": ResponseBodyPostDependentSchemasSingleDependencyResponseBodyForContentTypes, "/responseBody/postDurationFormatResponseBodyForContentTypes": ResponseBodyPostDurationFormatResponseBodyForContentTypes, "/responseBody/postEmailFormatResponseBodyForContentTypes": ResponseBodyPostEmailFormatResponseBodyForContentTypes, "/responseBody/postEmptyDependentsResponseBodyForContentTypes": ResponseBodyPostEmptyDependentsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py new file mode 100644 index 00000000000..95784705a29 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.operation import ApiForPost + + +class RequestBodyPostDependentSchemasDependenciesWithEscapedCharactersRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py new file mode 100644 index 00000000000..8e43653433d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import ApiForPost + + +class RequestBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py new file mode 100644 index 00000000000..b7ee1c475ca --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.operation import ApiForPost + + +class RequestBodyPostDependentSchemasSingleDependencyRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py new file mode 100644 index 00000000000..d3f87bc4387 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py new file mode 100644 index 00000000000..c1000d3b5ad --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py new file mode 100644 index 00000000000..886c4c76fb4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostDependentSchemasSingleDependencyResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 85c1ebd24cd..a32ba65ff17 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -31,6 +31,7 @@ from unit_test_api.apis.tags.const_api import ConstApi from unit_test_api.apis.tags.enum_api import EnumApi from unit_test_api.apis.tags.max_items_api import MaxItemsApi +from unit_test_api.apis.tags.dependent_schemas_api import DependentSchemasApi TagToApi = typing.TypedDict( 'TagToApi', @@ -65,6 +66,7 @@ "const": typing.Type[ConstApi], "enum": typing.Type[EnumApi], "maxItems": typing.Type[MaxItemsApi], + "dependentSchemas": typing.Type[DependentSchemasApi], } ) @@ -100,5 +102,6 @@ "const": ConstApi, "enum": EnumApi, "maxItems": MaxItemsApi, + "dependentSchemas": DependentSchemasApi, } ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index 4e92d9a5b36..c792d427427 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -36,6 +36,7 @@ from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.operation import PostPropertyNamedRefThatIsNotAReferenceRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.request_body_post_by_int_request_body.post.operation import PostByIntRequestBody @@ -94,6 +95,7 @@ from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody +from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.operation import PostMaxproperties0MeansTheObjectIsEmptyRequestBody @@ -112,6 +114,7 @@ from unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.operation import PostMinpropertiesValidationRequestBody from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody from unit_test_api.paths.request_body_post_uniqueitems_with_an_array_of_items_request_body.post.operation import PostUniqueitemsWithAnArrayOfItemsRequestBody from unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.operation import PostUriFormatResponseBodyForContentTypes @@ -171,10 +174,13 @@ from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody +from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.operation import PostNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.operation import PostDependentSchemasSingleDependencyRequestBody from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes @@ -257,6 +263,7 @@ class ContentTypeJsonApi( PostMaximumValidationWithUnsignedIntegerRequestBody, PostEnumsInPropertiesResponseBodyForContentTypes, PostPropertyNamedRefThatIsNotAReferenceRequestBody, + PostDependentSchemasDependenciesWithEscapedCharactersRequestBody, PostNestedItemsResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, PostByIntRequestBody, @@ -315,6 +322,7 @@ class ContentTypeJsonApi( PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, + PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostMinimumValidationResponseBodyForContentTypes, PostMaxproperties0MeansTheObjectIsEmptyRequestBody, @@ -333,6 +341,7 @@ class ContentTypeJsonApi( PostMinpropertiesValidationRequestBody, PostJsonPointerFormatRequestBody, PostAnyofComplexTypesRequestBody, + PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, PostForbiddenPropertyRequestBody, PostUniqueitemsWithAnArrayOfItemsRequestBody, PostUriFormatResponseBodyForContentTypes, @@ -392,10 +401,13 @@ class ContentTypeJsonApi( PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, + PostDependentSchemasSingleDependencyResponseBodyForContentTypes, PostEnumWith1DoesNotMatchTrueRequestBody, + PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, PostNulCharactersInStringsResponseBodyForContentTypes, PostRequiredWithEmptyArrayRequestBody, + PostDependentSchemasSingleDependencyRequestBody, PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py new file mode 100644 index 00000000000..77fe37f0d75 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py @@ -0,0 +1,28 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.operation import PostDependentSchemasSingleDependencyRequestBody +from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersRequestBody + + +class DependentSchemasApi( + PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, + PostDependentSchemasSingleDependencyResponseBodyForContentTypes, + PostDependentSchemasSingleDependencyRequestBody, + PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, + PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, + PostDependentSchemasDependenciesWithEscapedCharactersRequestBody, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 56a437b0b59..99cbed1fe50 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -29,6 +29,7 @@ from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.operation import PostPropertyNamedRefThatIsNotAReferenceRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.request_body_post_by_int_request_body.post.operation import PostByIntRequestBody @@ -69,6 +70,7 @@ from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.operation import PostDependentSchemasSingleDependencyRequestBody from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.request_body_post_minlength_validation_request_body.post.operation import PostMinlengthValidationRequestBody @@ -109,6 +111,7 @@ from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_oneof_request_body.post.operation import PostOneofRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody from unit_test_api.paths.request_body_post_oneof_with_base_schema_request_body.post.operation import PostOneofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody from unit_test_api.paths.request_body_post_uniqueitems_with_an_array_of_items_request_body.post.operation import PostUniqueitemsWithAnArrayOfItemsRequestBody @@ -141,6 +144,7 @@ class OperationRequestBodyApi( PostIdnEmailFormatRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, PostPropertyNamedRefThatIsNotAReferenceRequestBody, + PostDependentSchemasDependenciesWithEscapedCharactersRequestBody, PostNulCharactersInStringsRequestBody, PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, PostByIntRequestBody, @@ -181,6 +185,7 @@ class OperationRequestBodyApi( PostEnumWithFalseDoesNotMatch0RequestBody, PostNotMoreComplexSchemaRequestBody, PostRequiredWithEmptyArrayRequestBody, + PostDependentSchemasSingleDependencyRequestBody, PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostMinlengthValidationRequestBody, @@ -221,6 +226,7 @@ class OperationRequestBodyApi( PostJsonPointerFormatRequestBody, PostOneofRequestBody, PostAnyofComplexTypesRequestBody, + PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, PostOneofWithBaseSchemaRequestBody, PostForbiddenPropertyRequestBody, PostUniqueitemsWithAnArrayOfItemsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 2743d70bf7e..3dcb4cf3c5c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -36,6 +36,7 @@ from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.operation import PostPropertyNamedRefThatIsNotAReferenceRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.request_body_post_by_int_request_body.post.operation import PostByIntRequestBody @@ -94,6 +95,7 @@ from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody +from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.operation import PostMaxproperties0MeansTheObjectIsEmptyRequestBody @@ -112,6 +114,7 @@ from unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.operation import PostMinpropertiesValidationRequestBody from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody from unit_test_api.paths.request_body_post_uniqueitems_with_an_array_of_items_request_body.post.operation import PostUniqueitemsWithAnArrayOfItemsRequestBody from unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.operation import PostUriFormatResponseBodyForContentTypes @@ -171,10 +174,13 @@ from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody +from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.operation import PostNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody +from unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post.operation import PostDependentSchemasSingleDependencyRequestBody from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes @@ -257,6 +263,7 @@ class PathPostApi( PostMaximumValidationWithUnsignedIntegerRequestBody, PostEnumsInPropertiesResponseBodyForContentTypes, PostPropertyNamedRefThatIsNotAReferenceRequestBody, + PostDependentSchemasDependenciesWithEscapedCharactersRequestBody, PostNestedItemsResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, PostByIntRequestBody, @@ -315,6 +322,7 @@ class PathPostApi( PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, + PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostMinimumValidationResponseBodyForContentTypes, PostMaxproperties0MeansTheObjectIsEmptyRequestBody, @@ -333,6 +341,7 @@ class PathPostApi( PostMinpropertiesValidationRequestBody, PostJsonPointerFormatRequestBody, PostAnyofComplexTypesRequestBody, + PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, PostForbiddenPropertyRequestBody, PostUniqueitemsWithAnArrayOfItemsRequestBody, PostUriFormatResponseBodyForContentTypes, @@ -392,10 +401,13 @@ class PathPostApi( PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, + PostDependentSchemasSingleDependencyResponseBodyForContentTypes, PostEnumWith1DoesNotMatchTrueRequestBody, + PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, PostNulCharactersInStringsResponseBodyForContentTypes, PostRequiredWithEmptyArrayRequestBody, + PostDependentSchemasSingleDependencyRequestBody, PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 195c5b9b438..548b7cd7448 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -61,6 +61,8 @@ from unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.operation import PostMinlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types.post.operation import PostNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes @@ -91,6 +93,7 @@ from unit_test_api.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.post.operation import PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_default_validation_response_body_for_content_types.post.operation import PostRequiredDefaultValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.response_body_post_iri_reference_format_response_body_for_content_types.post.operation import PostIriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes @@ -173,6 +176,8 @@ class ResponseContentContentTypeSchemaApi( PostMinlengthValidationResponseBodyForContentTypes, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, + PostDependentSchemasSingleDependencyResponseBodyForContentTypes, + PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNulCharactersInStringsResponseBodyForContentTypes, PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, @@ -203,6 +208,7 @@ class ResponseContentContentTypeSchemaApi( PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes, PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, PostRequiredDefaultValidationResponseBodyForContentTypes, + PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostIriReferenceFormatResponseBodyForContentTypes, PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, PostMinimumValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependencies_with_escaped_characters.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependencies_with_escaped_characters.py new file mode 100644 index 00000000000..7417e1e51d2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependencies_with_escaped_characters.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class FooTbar( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + min_properties: int = 4 + + + +class FoobarDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): + __required_keys__: typing.FrozenSet[str] = frozenset({ + "foo\"bar", + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + }) + + def __new__( + cls, + *, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: schemas.INPUT_TYPES_ALL, + ): + arg_: typing.Dict[str, typing.Any] = { + } + arg_.update(kwargs) + used_arg_ = typing.cast(FoobarDictInput, arg_) + return Foobar.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + FoobarDictInput, + FoobarDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FoobarDict: + return Foobar.validate(arg, configuration=configuration) + + def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + return self.get(name, schemas.unset) +FoobarDictInput = typing.Mapping[str, schemas.INPUT_TYPES_ALL] + + +@dataclasses.dataclass(frozen=True) +class Foobar( + schemas.AnyTypeSchema[FoobarDict, typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + required: typing.FrozenSet[str] = frozenset({ + "foo\"bar", + }) + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: FoobarDict, + } + ) + +DependentSchemas = typing.TypedDict( + 'DependentSchemas', + { + "foo\tbar": typing.Type[FooTbar], + "foo'bar": typing.Type[Foobar], + } +) + + +@dataclasses.dataclass(frozen=True) +class DependentSchemasDependenciesWithEscapedCharacters( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + dependent_schemas: DependentSchemas = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(DependentSchemas)) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.py new file mode 100644 index 00000000000..f0bf6bfb7bb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema +Bar: typing_extensions.TypeAlias = schemas.AnyTypeSchema +Properties2 = typing.TypedDict( + 'Properties2', + { + "bar": typing.Type[Bar], + } +) + + +class FooDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "bar", + }) + + def __new__( + cls, + *, + bar: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("bar", bar), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + used_arg_ = typing.cast(FooDictInput, arg_) + return Foo2.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + FooDictInput, + FooDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FooDict: + return Foo2.validate(arg, configuration=configuration) + + @property + def bar(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + val = self.get("bar", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + schemas.OUTPUT_BASE_TYPES, + val + ) +FooDictInput = typing.TypedDict( + 'FooDictInput', + { + "bar": typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + }, + total=False +) + + +@dataclasses.dataclass(frozen=True) +class Foo2( + schemas.Schema[FooDict, tuple] +): + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + properties: Properties2 = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties2)) # type: ignore + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: FooDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + FooDictInput, + FooDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> FooDict: + return super().validate_base( + arg, + configuration=configuration, + ) + +DependentSchemas = typing.TypedDict( + 'DependentSchemas', + { + "foo": typing.Type[Foo2], + } +) +Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema +Properties = typing.TypedDict( + 'Properties', + { + "foo": typing.Type[Foo], + } +) + + +class DependentSchemasDependentSubschemaIncompatibleWithRootDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "foo", + }) + + def __new__( + cls, + *, + foo: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: schemas.INPUT_TYPES_ALL, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("foo", foo), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + arg_.update(kwargs) + used_arg_ = typing.cast(DependentSchemasDependentSubschemaIncompatibleWithRootDictInput, arg_) + return DependentSchemasDependentSubschemaIncompatibleWithRoot.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + DependentSchemasDependentSubschemaIncompatibleWithRootDictInput, + DependentSchemasDependentSubschemaIncompatibleWithRootDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> DependentSchemasDependentSubschemaIncompatibleWithRootDict: + return DependentSchemasDependentSubschemaIncompatibleWithRoot.validate(arg, configuration=configuration) + + @property + def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + val = self.get("foo", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + schemas.OUTPUT_BASE_TYPES, + val + ) + + def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + return self.get(name, schemas.unset) +DependentSchemasDependentSubschemaIncompatibleWithRootDictInput = typing.Mapping[str, schemas.INPUT_TYPES_ALL] + + +@dataclasses.dataclass(frozen=True) +class DependentSchemasDependentSubschemaIncompatibleWithRoot( + schemas.AnyTypeSchema[DependentSchemasDependentSubschemaIncompatibleWithRootDict, typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + dependent_schemas: DependentSchemas = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(DependentSchemas)) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: DependentSchemasDependentSubschemaIncompatibleWithRootDict, + } + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_single_dependency.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_single_dependency.py new file mode 100644 index 00000000000..96660e9564f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/dependent_schemas_single_dependency.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +Foo: typing_extensions.TypeAlias = schemas.IntSchema +Bar2: typing_extensions.TypeAlias = schemas.IntSchema +Properties = typing.TypedDict( + 'Properties', + { + "foo": typing.Type[Foo], + "bar": typing.Type[Bar2], + } +) + + +class BarDict(schemas.immutabledict[str, int]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "foo", + "bar", + }) + + def __new__( + cls, + *, + foo: typing.Union[ + int, + schemas.Unset + ] = schemas.unset, + bar: typing.Union[ + int, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: schemas.INPUT_TYPES_ALL, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("foo", foo), + ("bar", bar), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + arg_.update(kwargs) + used_arg_ = typing.cast(BarDictInput, arg_) + return Bar.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + BarDictInput, + BarDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> BarDict: + return Bar.validate(arg, configuration=configuration) + + @property + def foo(self) -> typing.Union[int, schemas.Unset]: + val = self.get("foo", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + int, + val + ) + + @property + def bar(self) -> typing.Union[int, schemas.Unset]: + val = self.get("bar", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + int, + val + ) + + def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + return self.get(name, schemas.unset) +BarDictInput = typing.Mapping[str, schemas.INPUT_TYPES_ALL] + + +@dataclasses.dataclass(frozen=True) +class Bar( + schemas.AnyTypeSchema[BarDict, typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: BarDict, + } + ) + +DependentSchemas = typing.TypedDict( + 'DependentSchemas', + { + "bar": typing.Type[Bar], + } +) + + +@dataclasses.dataclass(frozen=True) +class DependentSchemasSingleDependency( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + dependent_schemas: DependentSchemas = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(DependentSchemas)) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 8ecac402672..1cd60552b80 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -38,6 +38,9 @@ from unit_test_api.components.schema.contains_with_null_instance_elements import ContainsWithNullInstanceElements from unit_test_api.components.schema.date_format import DateFormat from unit_test_api.components.schema.date_time_format import DateTimeFormat +from unit_test_api.components.schema.dependent_schemas_dependencies_with_escaped_characters import DependentSchemasDependenciesWithEscapedCharacters +from unit_test_api.components.schema.dependent_schemas_dependent_subschema_incompatible_with_root import DependentSchemasDependentSubschemaIncompatibleWithRoot +from unit_test_api.components.schema.dependent_schemas_single_dependency import DependentSchemasSingleDependency from unit_test_api.components.schema.duration_format import DurationFormat from unit_test_api.components.schema.email_format import EmailFormat from unit_test_api.components.schema.empty_dependents import EmptyDependents diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py new file mode 100644 index 00000000000..819a211a88f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body import RequestBodyPostDependentSchemasDependenciesWithEscapedCharactersRequestBody + +path = "/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py new file mode 100644 index 00000000000..5a1fb62f86d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_dependencies_with_escaped_characters + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependent_schemas_dependencies_with_escaped_characters_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependent_schemas_dependencies_with_escaped_characters_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependent_schemas_dependencies_with_escaped_characters_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependentSchemasDependenciesWithEscapedCharactersRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependent_schemas_dependencies_with_escaped_characters_request_body = BaseApi._post_dependent_schemas_dependencies_with_escaped_characters_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependent_schemas_dependencies_with_escaped_characters_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..981b4722708 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_dependencies_with_escaped_characters +Schema2: typing_extensions.TypeAlias = dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py new file mode 100644 index 00000000000..9a8ab6ac4a1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body import RequestBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody + +path = "/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py new file mode 100644 index 00000000000..c3510c8d682 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_dependent_subschema_incompatible_with_root + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body = BaseApi._post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..99918d2f11f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_dependent_subschema_incompatible_with_root +Schema2: typing_extensions.TypeAlias = dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/__init__.py new file mode 100644 index 00000000000..cb52b57183a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_dependent_schemas_single_dependency_request_body import RequestBodyPostDependentSchemasSingleDependencyRequestBody + +path = "/requestBody/postDependentSchemasSingleDependencyRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py new file mode 100644 index 00000000000..014c233f4df --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_single_dependency + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependent_schemas_single_dependency_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependent_schemas_single_dependency_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependent_schemas_single_dependency_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependentSchemasSingleDependencyRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependent_schemas_single_dependency_request_body = BaseApi._post_dependent_schemas_single_dependency_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependent_schemas_single_dependency_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..4ae5003b83d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_single_dependency +Schema2: typing_extensions.TypeAlias = dependent_schemas_single_dependency.DependentSchemasSingleDependency diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..33e4fbaf0df --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types import ResponseBodyPostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes + +path = "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..c79175c1d7b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types = BaseApi._post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..981b4722708 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_dependencies_with_escaped_characters +Schema2: typing_extensions.TypeAlias = dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..5f583b1ac33 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types import ResponseBodyPostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes + +path = "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..42cd9b0021f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types = BaseApi._post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..99918d2f11f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_dependent_subschema_incompatible_with_root +Schema2: typing_extensions.TypeAlias = dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..46568753bb4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types import ResponseBodyPostDependentSchemasSingleDependencyResponseBodyForContentTypes + +path = "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..db90565fec6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_dependent_schemas_single_dependency_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_dependent_schemas_single_dependency_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_dependent_schemas_single_dependency_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostDependentSchemasSingleDependencyResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_dependent_schemas_single_dependency_response_body_for_content_types = BaseApi._post_dependent_schemas_single_dependency_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_dependent_schemas_single_dependency_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..4ae5003b83d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import dependent_schemas_single_dependency +Schema2: typing_extensions.TypeAlias = dependent_schemas_single_dependency.DependentSchemasSingleDependency diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py new file mode 100644 index 00000000000..a5a3f79f32c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.dependent_schemas_dependencies_with_escaped_characters import DependentSchemasDependenciesWithEscapedCharacters +from unit_test_api.configurations import schema_configuration + + +class TestDependentSchemasDependenciesWithEscapedCharacters(unittest.TestCase): + """DependentSchemasDependenciesWithEscapedCharacters unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_quoted_tab_passes(self): + # quoted tab + DependentSchemasDependenciesWithEscapedCharacters.validate( + { + "foo\tbar": + 1, + "a": + 2, + "b": + 3, + "c": + 4, + }, + configuration=self.configuration + ) + + def test_quoted_quote_invalid_under_dependent_schema_fails(self): + # quoted quote invalid under dependent schema + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasDependenciesWithEscapedCharacters.validate( + { + "foo'bar": + 1, + }, + configuration=self.configuration + ) + + def test_quoted_quote_fails(self): + # quoted quote + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasDependenciesWithEscapedCharacters.validate( + { + "foo'bar": + { + "foo\"bar": + 1, + }, + }, + configuration=self.configuration + ) + + def test_quoted_tab_invalid_under_dependent_schema_fails(self): + # quoted tab invalid under dependent schema + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasDependenciesWithEscapedCharacters.validate( + { + "foo\tbar": + 1, + "a": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py new file mode 100644 index 00000000000..643e29f3e41 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.dependent_schemas_dependent_subschema_incompatible_with_root import DependentSchemasDependentSubschemaIncompatibleWithRoot +from unit_test_api.configurations import schema_configuration + + +class TestDependentSchemasDependentSubschemaIncompatibleWithRoot(unittest.TestCase): + """DependentSchemasDependentSubschemaIncompatibleWithRoot unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_matches_both_fails(self): + # matches both + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasDependentSubschemaIncompatibleWithRoot.validate( + { + "foo": + 1, + "bar": + 2, + }, + configuration=self.configuration + ) + + def test_matches_dependency_passes(self): + # matches dependency + DependentSchemasDependentSubschemaIncompatibleWithRoot.validate( + { + "bar": + 1, + }, + configuration=self.configuration + ) + + def test_matches_root_fails(self): + # matches root + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasDependentSubschemaIncompatibleWithRoot.validate( + { + "foo": + 1, + }, + configuration=self.configuration + ) + + def test_no_dependency_passes(self): + # no dependency + DependentSchemasDependentSubschemaIncompatibleWithRoot.validate( + { + "baz": + 1, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_single_dependency.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_single_dependency.py new file mode 100644 index 00000000000..5e85ee92b87 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_dependent_schemas_single_dependency.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.dependent_schemas_single_dependency import DependentSchemasSingleDependency +from unit_test_api.configurations import schema_configuration + + +class TestDependentSchemasSingleDependency(unittest.TestCase): + """DependentSchemasSingleDependency unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_valid_passes(self): + # valid + DependentSchemasSingleDependency.validate( + { + "foo": + 1, + "bar": + 2, + }, + configuration=self.configuration + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + DependentSchemasSingleDependency.validate( + [ + "bar", + ], + configuration=self.configuration + ) + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + DependentSchemasSingleDependency.validate( + 12, + configuration=self.configuration + ) + + def test_wrong_type_other_fails(self): + # wrong type other + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasSingleDependency.validate( + { + "foo": + 2, + "bar": + "quux", + }, + configuration=self.configuration + ) + + def test_ignores_strings_passes(self): + # ignores strings + DependentSchemasSingleDependency.validate( + "foobar", + configuration=self.configuration + ) + + def test_no_dependency_passes(self): + # no dependency + DependentSchemasSingleDependency.validate( + { + "foo": + "quux", + }, + configuration=self.configuration + ) + + def test_wrong_type_both_fails(self): + # wrong type both + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasSingleDependency.validate( + { + "foo": + "quux", + "bar": + "quux", + }, + configuration=self.configuration + ) + + def test_wrong_type_fails(self): + # wrong type + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + DependentSchemasSingleDependency.validate( + { + "foo": + "quux", + "bar": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/test_post.py new file mode 100644 index 00000000000..4f32337827c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/test_post.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_quoted_tab_passes(self): + content_type = 'application/json' + # quoted tab + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\tbar": + 1, + "a": + 2, + "b": + 3, + "c": + 4, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_quoted_quote_invalid_under_dependent_schema_fails(self): + content_type = 'application/json' + # quoted quote invalid under dependent schema + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo'bar": + 1, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_quoted_quote_fails(self): + content_type = 'application/json' + # quoted quote + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo'bar": + { + "foo\"bar": + 1, + }, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_quoted_tab_invalid_under_dependent_schema_fails(self): + content_type = 'application/json' + # quoted tab invalid under dependent schema + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\tbar": + 1, + "a": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/test_post.py new file mode 100644 index 00000000000..9ec33b96925 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/test_post.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_matches_both_fails(self): + content_type = 'application/json' + # matches both + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_matches_dependency_passes(self): + content_type = 'application/json' + # matches dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 1, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_matches_root_fails(self): + content_type = 'application/json' + # matches root + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_no_dependency_passes(self): + content_type = 'application/json' + # no dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "baz": + 1, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/test_post.py new file mode 100644 index 00000000000..a1ff70215cc --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_dependent_schemas_single_dependency_request_body/test_post.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_dependent_schemas_single_dependency_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_valid_passes(self): + content_type = 'application/json' + # valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_arrays_passes(self): + content_type = 'application/json' + # ignores arrays + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "bar", + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_other_non_objects_passes(self): + content_type = 'application/json' + # ignores other non-objects + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_wrong_type_other_fails(self): + content_type = 'application/json' + # wrong type other + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 2, + "bar": + "quux", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_ignores_strings_passes(self): + content_type = 'application/json' + # ignores strings + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobar" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_no_dependency_passes(self): + content_type = 'application/json' + # no dependency + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "quux", + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postDependentSchemasSingleDependencyRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_wrong_type_both_fails(self): + content_type = 'application/json' + # wrong type both + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "quux", + "bar": + "quux", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_wrong_type_fails(self): + content_type = 'application/json' + # wrong type + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "quux", + "bar": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..13109463097 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/test_post.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_quoted_tab_passes(self): + # quoted tab + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\tbar": + 1, + "a": + 2, + "b": + 3, + "c": + 4, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_quoted_quote_invalid_under_dependent_schema_fails(self): + # quoted quote invalid under dependent schema + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo'bar": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_quoted_quote_fails(self): + # quoted quote + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo'bar": + { + "foo\"bar": + 1, + }, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_quoted_tab_invalid_under_dependent_schema_fails(self): + # quoted tab invalid under dependent schema + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo\tbar": + 1, + "a": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..e3452ccc56c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/test_post.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_matches_both_fails(self): + # matches both + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_matches_dependency_passes(self): + # matches dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_matches_root_fails(self): + # matches root + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_no_dependency_passes(self): + # no dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "baz": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..3521438c319 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/test_post.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_valid_passes(self): + # valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_arrays_passes(self): + # ignores arrays + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "bar", + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_wrong_type_other_fails(self): + # wrong type other + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 2, + "bar": + "quux", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_ignores_strings_passes(self): + # ignores strings + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobar" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_no_dependency_passes(self): + # no dependency + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "quux", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_wrong_type_both_fails(self): + # wrong type both + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "quux", + "bar": + "quux", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_wrong_type_fails(self): + # wrong type + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "quux", + "bar": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 86be9753dfa..2f41298082e 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -17,6 +17,7 @@ tags: - name: const - name: contains - name: dependentRequired +- name: dependentSchemas - name: enum - name: format - name: items @@ -974,6 +975,114 @@ paths: - path.post - contentType_json - dependentRequired + /requestBody/postDependentSchemasSingleDependencyRequestBody: + post: + operationId: postDependentSchemasSingleDependencyRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DependentSchemasSingleDependency' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependentSchemasSingleDependency' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentSchemas + /responseBody/postDependentSchemasSingleDependencyResponseBodyForContentTypes: + post: + operationId: postDependentSchemasSingleDependencyResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/DependentSchemasSingleDependency' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependentSchemasSingleDependency' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentSchemas + /requestBody/postDependentSchemasDependenciesWithEscapedCharactersRequestBody: + post: + operationId: postDependentSchemasDependenciesWithEscapedCharactersRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DependentSchemasDependenciesWithEscapedCharacters' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependentSchemasDependenciesWithEscapedCharacters' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentSchemas + /responseBody/postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes: + post: + operationId: postDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/DependentSchemasDependenciesWithEscapedCharacters' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependentSchemasDependenciesWithEscapedCharacters' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentSchemas + /requestBody/postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody: + post: + operationId: postDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependentSchemasDependentSubschemaIncompatibleWithRoot' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - dependentSchemas + /responseBody/postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes: + post: + operationId: postDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DependentSchemasDependentSubschemaIncompatibleWithRoot' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - dependentSchemas /requestBody/postSimpleEnumValidationRequestBody: post: operationId: postSimpleEnumValidationRequestBody @@ -4125,6 +4234,31 @@ components: quux: - foo - bar + DependentSchemasSingleDependency: + $schema: https://json-schema.org/draft/2020-12/schema + dependentSchemas: + bar: + properties: + foo: + type: integer + bar: + type: integer + DependentSchemasDependenciesWithEscapedCharacters: + $schema: https://json-schema.org/draft/2020-12/schema + dependentSchemas: + "foo\tbar": + minProperties: 4 + foo'bar: + required: + - foo"bar + DependentSchemasDependentSubschemaIncompatibleWithRoot: + properties: + foo: {} + dependentSchemas: + foo: + properties: + bar: {} + additionalProperties: false SimpleEnumValidation: $schema: https://json-schema.org/draft/2020-12/schema enum: @@ -4928,6 +5062,97 @@ components: data: quux: 1 valid: false + DependentSchemasSingleDependency: + Valid: + description: valid + data: + foo: 1 + bar: 2 + valid: true + NoDependency: + description: no dependency + data: + foo: quux + valid: true + WrongType: + description: wrong type + data: + foo: quux + bar: 2 + valid: false + WrongTypeOther: + description: wrong type other + data: + foo: 2 + bar: quux + valid: false + WrongTypeBoth: + description: wrong type both + data: + foo: quux + bar: quux + valid: false + IgnoresArrays: + description: ignores arrays + data: + - bar + valid: true + IgnoresStrings: + description: ignores strings + data: foobar + valid: true + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true + DependentSchemasDependenciesWithEscapedCharacters: + QuotedTab: + description: quoted tab + data: + "foo\tbar": 1 + a: 2 + b: 3 + c: 4 + valid: true + QuotedQuote: + description: quoted quote + data: + foo'bar: + foo"bar: 1 + valid: false + QuotedTabInvalidUnderDependentSchema: + description: quoted tab invalid under dependent schema + data: + "foo\tbar": 1 + a: 2 + valid: false + QuotedQuoteInvalidUnderDependentSchema: + description: quoted quote invalid under dependent schema + data: + foo'bar: 1 + valid: false + DependentSchemasDependentSubschemaIncompatibleWithRoot: + MatchesRoot: + description: matches root + data: + foo: 1 + valid: false + MatchesDependency: + description: matches dependency + data: + bar: 1 + valid: true + MatchesBoth: + description: matches both + data: + foo: 1 + bar: 2 + valid: false + NoDependency: + description: no dependency + data: + baz: 1 + valid: true SimpleEnumValidation: OneOfTheEnumIsValid: description: one of the enum is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 7d782230c41..1671bb04b17 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -149,6 +149,9 @@ class ExclusionReason: (json_schema_test_draft, 'dependentRequired.json'): { "dependencies with escaped characters": ExclusionReason.bug_dependent_required_values_incorrect, }, + (json_schema_test_draft, 'dependentSchemas.json'): { + "boolean subschemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + }, (json_schema_test_draft, 'enum.json'): { 'heterogeneous enum validation': ExclusionReason.swagger_parser_enum_type_bug, 'heterogeneous enum-with-null validation': ExclusionReason.swagger_parser_enum_type_bug, @@ -285,6 +288,7 @@ class ExclusionReason: # 'default.json': (json_schema_test_draft,), # 'defs.json': (json_schema_test_draft,), 'dependentRequired.json': (json_schema_test_draft,), + 'dependentSchemas.json': (json_schema_test_draft,), 'enum.json': (json_schema_test_draft,), 'exclusiveMaximum.json': (json_schema_test_draft,), 'exclusiveMinimum.json': (json_schema_test_draft,), @@ -481,6 +485,9 @@ def get_component_schemas_and_test_examples( if json_schema_keyword == "const" and not component_name.lower().startswith("const"): # prefix added to prevent collision with other components component_name = "Const" + component_name + if json_schema_keyword == "dependentSchemas" and not component_name.lower().startswith("dependentschemas"): + # prefix added to prevent collision with other components + component_name = "DependentSchemas" + component_name if isinstance(test_schema.schema, bool): component_schemas[component_name] = test_schema.schema else: @@ -574,7 +581,7 @@ def write_openapi_spec(): openapi.tags.append(json_schema_tag) for component_name, schema in component_schemas.items(): if component_name in openapi.components['schemas']: - raise ValueError('A component schema with that name is already defined!') + raise ValueError(f'A component schema with name={component_name} is already defined!') openapi.components['schemas'][component_name] = schema for component_name, test_examples in component_name_to_test_examples.items(): if component_name in openapi.components['x-schema-test-examples']: From 4e3069427ed9901dbd629ee1e7187ab2e34076c2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 24 Sep 2023 10:54:06 -0700 Subject: [PATCH 15/34] Adds maxContains tests --- README.md | 2 +- .../python/.openapi-generator/FILES | 143 ++++++++++++++++++ .../client/3_1_0_unit_test/python/README.md | 3 + .../docs/apis/tags/content_type_json_api.md | 2 + .../python/docs/apis/tags/max_contains_api.md | 15 ++ .../apis/tags/operation_request_body_api.md | 1 + .../python/docs/apis/tags/path_post_api.md | 2 + ...esponse_content_content_type_schema_api.md | 1 + ...maxcontains_without_contains_is_ignored.md | 12 ++ .../post.md | 116 ++++++++++++++ .../content/application_json/schema.md | 10 ++ .../post.md | 111 ++++++++++++++ .../content/application_json/schema.md | 10 ++ .../src/unit_test_api/apis/path_to_api.py | 6 + ...ithout_contains_is_ignored_request_body.py | 13 ++ ...ignored_response_body_for_content_types.py | 13 ++ .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 4 + .../apis/tags/max_contains_api.py | 20 +++ .../apis/tags/operation_request_body_api.py | 2 + .../unit_test_api/apis/tags/path_post_api.py | 4 + ...esponse_content_content_type_schema_api.py | 2 + ...maxcontains_without_contains_is_ignored.py | 25 +++ .../components/schemas/__init__.py | 1 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++++++++ .../post/request_body/__init__.py | 20 +++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 +++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++++++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ ...maxcontains_without_contains_is_ignored.py | 44 ++++++ .../__init__.py | 0 .../test_post.py | 99 ++++++++++++ .../__init__.py | 0 .../test_post.py | 100 ++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 52 +++++++ .../3_1/unit_test_spec/spec_writer.py | 7 + 48 files changed, 1172 insertions(+), 1 deletion(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/max_contains_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/maxcontains_without_contains_is_ignored.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/maxcontains_without_contains_is_ignored.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_maxcontains_without_contains_is_ignored.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/test_post.py diff --git a/README.md b/README.md index 2820ad477f0..3dc5ae6c71d 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ mvn -Pstatic-analysis clean install #### OpenAPI JSON Schema Generator CLI Docker Image -The OpenAPI JSON Schema Generator image acts as a standalone executable. It can be used as an alternative to installing via homebrew, or for developers who are unable to install Java or upgrade the installed version. +The docker image acts as a standalone executable. It can be used as an alternative to installing via homebrew, or for developers who are unable to install Java or upgrade the installed version. To generate code with this image, you'll need to mount a local location as a volume. diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 052f344277f..856d2b96b6c 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -14,6 +14,7 @@ docs/apis/tags/dependent_schemas_api.md docs/apis/tags/enum_api.md docs/apis/tags/format_api.md docs/apis/tags/items_api.md +docs/apis/tags/max_contains_api.md docs/apis/tags/max_items_api.md docs/apis/tags/max_length_api.md docs/apis/tags/max_properties_api.md @@ -87,6 +88,7 @@ docs/components/schema/items_contains.md docs/components/schema/items_does_not_look_in_applicators_valid_case.md docs/components/schema/items_with_null_instance_elements.md docs/components/schema/json_pointer_format.md +docs/components/schema/maxcontains_without_contains_is_ignored.md docs/components/schema/maximum_validation.md docs/components/schema/maximum_validation_with_unsigned_integer.md docs/components/schema/maxitems_validation.md @@ -251,6 +253,8 @@ docs/paths/request_body_post_items_with_null_instance_elements_request_body/post docs/paths/request_body_post_items_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_json_pointer_format_request_body/post.md docs/paths/request_body_post_json_pointer_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md +docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maximum_validation_request_body/post.md docs/paths/request_body_post_maximum_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md @@ -475,6 +479,8 @@ docs/paths/response_body_post_items_with_null_instance_elements_response_body_fo docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md +docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md @@ -658,6 +664,7 @@ src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py src/unit_test_api/apis/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body.py src/unit_test_api/apis/paths/request_body_post_items_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py +src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py @@ -770,6 +777,7 @@ src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for src/unit_test_api/apis/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py @@ -843,6 +851,7 @@ src/unit_test_api/apis/tags/dependent_schemas_api.py src/unit_test_api/apis/tags/enum_api.py src/unit_test_api/apis/tags/format_api.py src/unit_test_api/apis/tags/items_api.py +src/unit_test_api/apis/tags/max_contains_api.py src/unit_test_api/apis/tags/max_items_api.py src/unit_test_api/apis/tags/max_length_api.py src/unit_test_api/apis/tags/max_properties_api.py @@ -918,6 +927,7 @@ src/unit_test_api/components/schema/items_contains.py src/unit_test_api/components/schema/items_does_not_look_in_applicators_valid_case.py src/unit_test_api/components/schema/items_with_null_instance_elements.py src/unit_test_api/components/schema/json_pointer_format.py +src/unit_test_api/components/schema/maxcontains_without_contains_is_ignored.py src/unit_test_api/components/schema/maximum_validation.py src/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.py src/unit_test_api/components/schema/maxitems_validation.py @@ -1459,6 +1469,15 @@ src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/ src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_maximum_validation_request_body/__init__.py src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -2414,6 +2433,14 @@ src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -2909,9 +2936,121 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py +test/components/schema/test__not.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_does_not_look_in_applicators.py +test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py +test/components/schema/test_additionalproperties_with_schema.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py +test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_contains_keyword_validation.py +test/components/schema/test_contains_with_null_instance_elements.py +test/components/schema/test_date_format.py +test/components/schema/test_date_time_format.py test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py test/components/schema/test_dependent_schemas_single_dependency.py +test/components/schema/test_duration_format.py +test/components/schema/test_email_format.py +test/components/schema/test_empty_dependents.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_float_division_inf.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_idn_email_format.py +test/components/schema/test_idn_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_iri_format.py +test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_contains.py +test/components/schema/test_items_does_not_look_in_applicators_valid_case.py +test/components/schema/test_items_with_null_instance_elements.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maxcontains_without_contains_is_ignored.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py +test/components/schema/test_multiple_dependents_required.py +test/components/schema/test_multiple_types_can_be_specified_in_an_array.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_properties_with_null_valued_instance_properties.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py +test/components/schema/test_regex_format.py +test/components/schema/test_relative_json_pointer_format.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py +test/components/schema/test_single_dependency.py +test/components/schema/test_small_multiple_of_large_integer.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_time_format.py +test/components/schema/test_type_array_object_or_null.py +test/components/schema/test_type_array_or_object.py +test/components/schema/test_type_as_array_with_one_item.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_false_with_an_array_of_items.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uniqueitems_with_an_array_of_items.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py +test/components/schema/test_uuid_format.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3242,6 +3381,8 @@ test/test_paths/test_request_body_post_items_with_null_instance_elements_request test/test_paths/test_request_body_post_items_with_null_instance_elements_request_body/test_post.py test/test_paths/test_request_body_post_json_pointer_format_request_body/__init__.py test/test_paths/test_request_body_post_json_pointer_format_request_body/test_post.py +test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py +test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/test_post.py test/test_paths/test_request_body_post_maximum_validation_request_body/__init__.py test/test_paths/test_request_body_post_maximum_validation_request_body/test_post.py test/test_paths/test_request_body_post_maximum_validation_with_unsigned_integer_request_body/__init__.py @@ -3466,6 +3607,8 @@ test/test_paths/test_response_body_post_items_with_null_instance_elements_respon test/test_paths/test_response_body_post_items_with_null_instance_elements_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_json_pointer_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_json_pointer_format_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_maximum_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_maximum_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index f1e0e648d3b..cbb0741e650 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -223,6 +223,7 @@ HTTP request | Method | Description /requestBody/postItemsDoesNotLookInApplicatorsValidCaseRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_does_not_look_in_applicators_valid_case_request_body](docs/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) | /requestBody/postItemsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_with_null_instance_elements_request_body](docs/paths/request_body_post_items_with_null_instance_elements_request_body/post.md) | /requestBody/postJsonPointerFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_json_pointer_format_request_body](docs/paths/request_body_post_json_pointer_format_request_body/post.md) | +/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maxcontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxcontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxcontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) [MaxContainsApi](docs/apis/tags/max_contains_api.md).[post_maxcontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) | /requestBody/postMaximumValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maximum_validation_request_body](docs/paths/request_body_post_maximum_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maximum_validation_request_body](docs/paths/request_body_post_maximum_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maximum_validation_request_body](docs/paths/request_body_post_maximum_validation_request_body/post.md) [MaximumApi](docs/apis/tags/maximum_api.md).[post_maximum_validation_request_body](docs/paths/request_body_post_maximum_validation_request_body/post.md) | /requestBody/postMaximumValidationWithUnsignedIntegerRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maximum_validation_with_unsigned_integer_request_body](docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maximum_validation_with_unsigned_integer_request_body](docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maximum_validation_with_unsigned_integer_request_body](docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) [MaximumApi](docs/apis/tags/maximum_api.md).[post_maximum_validation_with_unsigned_integer_request_body](docs/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) | /requestBody/postMaxitemsValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maxitems_validation_request_body](docs/paths/request_body_post_maxitems_validation_request_body/post.md) [MaxItemsApi](docs/apis/tags/max_items_api.md).[post_maxitems_validation_request_body](docs/paths/request_body_post_maxitems_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxitems_validation_request_body](docs/paths/request_body_post_maxitems_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxitems_validation_request_body](docs/paths/request_body_post_maxitems_validation_request_body/post.md) | @@ -335,6 +336,7 @@ HTTP request | Method | Description /responseBody/postItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types](docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) | /responseBody/postItemsWithNullInstanceElementsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_items_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postJsonPointerFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) | +/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxcontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxcontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) [MaxContainsApi](docs/apis/tags/max_contains_api.md).[post_maxcontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maxcontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) | /responseBody/postMaximumValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_maximum_validation_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maximum_validation_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) [MaximumApi](docs/apis/tags/maximum_api.md).[post_maximum_validation_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maximum_validation_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) | /responseBody/postMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_maximum_validation_with_unsigned_integer_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maximum_validation_with_unsigned_integer_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md) [MaximumApi](docs/apis/tags/maximum_api.md).[post_maximum_validation_with_unsigned_integer_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maximum_validation_with_unsigned_integer_response_body_for_content_types](docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md) | /responseBody/postMaxitemsValidationResponseBodyForContentTypes **post** | [MaxItemsApi](docs/apis/tags/max_items_api.md).[post_maxitems_validation_response_body_for_content_types](docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxitems_validation_response_body_for_content_types](docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxitems_validation_response_body_for_content_types](docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maxitems_validation_response_body_for_content_types](docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md) | @@ -452,6 +454,7 @@ Class | Description [ItemsDoesNotLookInApplicatorsValidCase](docs/components/schema/items_does_not_look_in_applicators_valid_case.md) | [ItemsWithNullInstanceElements](docs/components/schema/items_with_null_instance_elements.md) | [JsonPointerFormat](docs/components/schema/json_pointer_format.md) | +[MaxcontainsWithoutContainsIsIgnored](docs/components/schema/maxcontains_without_contains_is_ignored.md) | [MaximumValidation](docs/components/schema/maximum_validation.md) | [MaximumValidationWithUnsignedInteger](docs/components/schema/maximum_validation_with_unsigned_integer.md) | [MaxitemsValidation](docs/components/schema/maxitems_validation.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index e6e45d9a834..6a3dbfb2061 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -115,6 +115,8 @@ Method | Description [**post_items_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_json_pointer_format_request_body**](../../paths/request_body_post_json_pointer_format_request_body/post.md) | [**post_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) | +[**post_maxcontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) | +[**post_maxcontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) | [**post_maximum_validation_request_body**](../../paths/request_body_post_maximum_validation_request_body/post.md) | [**post_maximum_validation_response_body_for_content_types**](../../paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) | [**post_maximum_validation_with_unsigned_integer_request_body**](../../paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/max_contains_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/max_contains_api.md new file mode 100644 index 00000000000..b34c8a41d8a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/max_contains_api.md @@ -0,0 +1,15 @@ + +unit_test_api.apis.tags.max_contains_api +# MaxContainsApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_maxcontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) | +[**post_maxcontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 41d7e846ba9..85efd36b8ca 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -62,6 +62,7 @@ Method | Description [**post_items_does_not_look_in_applicators_valid_case_request_body**](../../paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post.md) | [**post_items_with_null_instance_elements_request_body**](../../paths/request_body_post_items_with_null_instance_elements_request_body/post.md) | [**post_json_pointer_format_request_body**](../../paths/request_body_post_json_pointer_format_request_body/post.md) | +[**post_maxcontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) | [**post_maximum_validation_request_body**](../../paths/request_body_post_maximum_validation_request_body/post.md) | [**post_maximum_validation_with_unsigned_integer_request_body**](../../paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) | [**post_maxitems_validation_request_body**](../../paths/request_body_post_maxitems_validation_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 6ced6f3f6bb..ee6ec59046d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -115,6 +115,8 @@ Method | Description [**post_items_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_json_pointer_format_request_body**](../../paths/request_body_post_json_pointer_format_request_body/post.md) | [**post_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) | +[**post_maxcontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md) | +[**post_maxcontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) | [**post_maximum_validation_request_body**](../../paths/request_body_post_maximum_validation_request_body/post.md) | [**post_maximum_validation_response_body_for_content_types**](../../paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) | [**post_maximum_validation_with_unsigned_integer_request_body**](../../paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index eae9656a588..8fc499fbbd3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -62,6 +62,7 @@ Method | Description [**post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types**](../../paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post.md) | [**post_items_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_json_pointer_format_response_body_for_content_types/post.md) | +[**post_maxcontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md) | [**post_maximum_validation_response_body_for_content_types**](../../paths/response_body_post_maximum_validation_response_body_for_content_types/post.md) | [**post_maximum_validation_with_unsigned_integer_response_body_for_content_types**](../../paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.md) | [**post_maxitems_validation_response_body_for_content_types**](../../paths/response_body_post_maxitems_validation_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/maxcontains_without_contains_is_ignored.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/maxcontains_without_contains_is_ignored.md new file mode 100644 index 00000000000..47b8eb381f5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/maxcontains_without_contains_is_ignored.md @@ -0,0 +1,12 @@ +# MaxcontainsWithoutContainsIsIgnored +unit_test_api.components.schema.maxcontains_without_contains_is_ignored +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md new file mode 100644 index 00000000000..7713814f587 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_maxcontains_without_contains_is_ignored_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_maxcontains_without_contains_is_ignored_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_maxcontains_without_contains_is_ignored_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_maxcontains_without_contains_is_ignored_request_body | [MaxContainsApi](../../apis/tags/max_contains_api.md) | This api is only for tag=maxContains | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostMaxcontainsWithoutContainsIsIgnoredRequestBody | This api is only for path=/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored**](../../components/schema/maxcontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored.validate(None) + try: + api_response = api_instance.post_maxcontains_without_contains_is_ignored_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_maxcontains_without_contains_is_ignored_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to MaxContainsApi API]](../../apis/tags/max_contains_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..29ad4706452 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored**](../../../../../../components/schema/maxcontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md new file mode 100644 index 00000000000..d3addf8eba6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_maxcontains_without_contains_is_ignored_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_maxcontains_without_contains_is_ignored_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_maxcontains_without_contains_is_ignored_response_body_for_content_types | [MaxContainsApi](../../apis/tags/max_contains_api.md) | This api is only for tag=maxContains | +| post_maxcontains_without_contains_is_ignored_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes | This api is only for path=/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored**](../../components/schema/maxcontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_maxcontains_without_contains_is_ignored_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_maxcontains_without_contains_is_ignored_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to MaxContainsApi API]](../../apis/tags/max_contains_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..c6d7ee4990d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored**](../../../../../../../../components/schema/maxcontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 89212517da5..81f163919b1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -54,6 +54,7 @@ from unit_test_api.apis.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body import RequestBodyPostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.apis.paths.request_body_post_items_with_null_instance_elements_request_body import RequestBodyPostItemsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_json_pointer_format_request_body import RequestBodyPostJsonPointerFormatRequestBody +from unit_test_api.apis.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body import RequestBodyPostMaxcontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.apis.paths.request_body_post_maximum_validation_request_body import RequestBodyPostMaximumValidationRequestBody from unit_test_api.apis.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body import RequestBodyPostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.apis.paths.request_body_post_maxitems_validation_request_body import RequestBodyPostMaxitemsValidationRequestBody @@ -166,6 +167,7 @@ from unit_test_api.apis.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types import ResponseBodyPostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostItemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_json_pointer_format_response_body_for_content_types import ResponseBodyPostJsonPointerFormatResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types import ResponseBodyPostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_maximum_validation_response_body_for_content_types import ResponseBodyPostMaximumValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types import ResponseBodyPostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_maxitems_validation_response_body_for_content_types import ResponseBodyPostMaxitemsValidationResponseBodyForContentTypes @@ -282,6 +284,7 @@ "/requestBody/postItemsDoesNotLookInApplicatorsValidCaseRequestBody": typing.Type[RequestBodyPostItemsDoesNotLookInApplicatorsValidCaseRequestBody], "/requestBody/postItemsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostItemsWithNullInstanceElementsRequestBody], "/requestBody/postJsonPointerFormatRequestBody": typing.Type[RequestBodyPostJsonPointerFormatRequestBody], + "/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody": typing.Type[RequestBodyPostMaxcontainsWithoutContainsIsIgnoredRequestBody], "/requestBody/postMaximumValidationRequestBody": typing.Type[RequestBodyPostMaximumValidationRequestBody], "/requestBody/postMaximumValidationWithUnsignedIntegerRequestBody": typing.Type[RequestBodyPostMaximumValidationWithUnsignedIntegerRequestBody], "/requestBody/postMaxitemsValidationRequestBody": typing.Type[RequestBodyPostMaxitemsValidationRequestBody], @@ -394,6 +397,7 @@ "/responseBody/postItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes": typing.Type[ResponseBodyPostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes], "/responseBody/postItemsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostItemsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postJsonPointerFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostJsonPointerFormatResponseBodyForContentTypes], + "/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes], "/responseBody/postMaximumValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaximumValidationResponseBodyForContentTypes], "/responseBody/postMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes], "/responseBody/postMaxitemsValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaxitemsValidationResponseBodyForContentTypes], @@ -511,6 +515,7 @@ "/requestBody/postItemsDoesNotLookInApplicatorsValidCaseRequestBody": RequestBodyPostItemsDoesNotLookInApplicatorsValidCaseRequestBody, "/requestBody/postItemsWithNullInstanceElementsRequestBody": RequestBodyPostItemsWithNullInstanceElementsRequestBody, "/requestBody/postJsonPointerFormatRequestBody": RequestBodyPostJsonPointerFormatRequestBody, + "/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody": RequestBodyPostMaxcontainsWithoutContainsIsIgnoredRequestBody, "/requestBody/postMaximumValidationRequestBody": RequestBodyPostMaximumValidationRequestBody, "/requestBody/postMaximumValidationWithUnsignedIntegerRequestBody": RequestBodyPostMaximumValidationWithUnsignedIntegerRequestBody, "/requestBody/postMaxitemsValidationRequestBody": RequestBodyPostMaxitemsValidationRequestBody, @@ -623,6 +628,7 @@ "/responseBody/postItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes": ResponseBodyPostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, "/responseBody/postItemsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostItemsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postJsonPointerFormatResponseBodyForContentTypes": ResponseBodyPostJsonPointerFormatResponseBodyForContentTypes, + "/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes": ResponseBodyPostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, "/responseBody/postMaximumValidationResponseBodyForContentTypes": ResponseBodyPostMaximumValidationResponseBodyForContentTypes, "/responseBody/postMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes": ResponseBodyPostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes, "/responseBody/postMaxitemsValidationResponseBodyForContentTypes": ResponseBodyPostMaxitemsValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py new file mode 100644 index 00000000000..6d8a164f42a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import ApiForPost + + +class RequestBodyPostMaxcontainsWithoutContainsIsIgnoredRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py new file mode 100644 index 00000000000..e1c00c44a14 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index a32ba65ff17..408577f0f9c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -17,6 +17,7 @@ from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi from unit_test_api.apis.tags.contains_api import ContainsApi from unit_test_api.apis.tags.one_of_api import OneOfApi +from unit_test_api.apis.tags.max_contains_api import MaxContainsApi from unit_test_api.apis.tags.ref_api import RefApi from unit_test_api.apis.tags.all_of_api import AllOfApi from unit_test_api.apis.tags.minimum_api import MinimumApi @@ -52,6 +53,7 @@ "operation.requestBody": typing.Type[OperationRequestBodyApi], "contains": typing.Type[ContainsApi], "oneOf": typing.Type[OneOfApi], + "maxContains": typing.Type[MaxContainsApi], "$ref": typing.Type[RefApi], "allOf": typing.Type[AllOfApi], "minimum": typing.Type[MinimumApi], @@ -88,6 +90,7 @@ "operation.requestBody": OperationRequestBodyApi, "contains": ContainsApi, "oneOf": OneOfApi, + "maxContains": MaxContainsApi, "$ref": RefApi, "allOf": AllOfApi, "minimum": MinimumApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index c792d427427..fb6b4482d17 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -45,11 +45,13 @@ from unit_test_api.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody +from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody @@ -272,11 +274,13 @@ class ContentTypeJsonApi( PostItemsDoesNotLookInApplicatorsValidCaseRequestBody, PostIdnHostnameFormatRequestBody, PostEmptyDependentsResponseBodyForContentTypes, + PostMaxcontainsWithoutContainsIsIgnoredRequestBody, PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, PostMultipleDependentsRequiredResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, + PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, PostSingleDependencyRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py new file mode 100644 index 00000000000..b84ff881d58 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody + + +class MaxContainsApi( + PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, + PostMaxcontainsWithoutContainsIsIgnoredRequestBody, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 99cbed1fe50..add39b7d7bf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -39,6 +39,7 @@ from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody +from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody @@ -154,6 +155,7 @@ class OperationRequestBodyApi( PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, PostIdnHostnameFormatRequestBody, PostOneofWithEmptySchemaRequestBody, + PostMaxcontainsWithoutContainsIsIgnoredRequestBody, PostUriFormatRequestBody, PostAllofRequestBody, PostNestedItemsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 3dcb4cf3c5c..ebd3b5914f3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -45,11 +45,13 @@ from unit_test_api.paths.request_body_post_items_does_not_look_in_applicators_valid_case_request_body.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseRequestBody from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody +from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody @@ -272,11 +274,13 @@ class PathPostApi( PostItemsDoesNotLookInApplicatorsValidCaseRequestBody, PostIdnHostnameFormatRequestBody, PostEmptyDependentsResponseBodyForContentTypes, + PostMaxcontainsWithoutContainsIsIgnoredRequestBody, PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, PostMultipleDependentsRequiredResponseBodyForContentTypes, PostAllofWithBaseSchemaRequestBody, + PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, PostSingleDependencyRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 548b7cd7448..ff38800a074 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -47,6 +47,7 @@ from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes @@ -162,6 +163,7 @@ class ResponseContentContentTypeSchemaApi( PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, PostMultipleDependentsRequiredResponseBodyForContentTypes, + PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/maxcontains_without_contains_is_ignored.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/maxcontains_without_contains_is_ignored.py new file mode 100644 index 00000000000..9a4093f43b3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/maxcontains_without_contains_is_ignored.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class MaxcontainsWithoutContainsIsIgnored( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 1cd60552b80..e3b007f2728 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -64,6 +64,7 @@ from unit_test_api.components.schema.items_does_not_look_in_applicators_valid_case import ItemsDoesNotLookInApplicatorsValidCase from unit_test_api.components.schema.items_with_null_instance_elements import ItemsWithNullInstanceElements from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.maxcontains_without_contains_is_ignored import MaxcontainsWithoutContainsIsIgnored from unit_test_api.components.schema.maximum_validation import MaximumValidation from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py new file mode 100644 index 00000000000..81256b10aec --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body import RequestBodyPostMaxcontainsWithoutContainsIsIgnoredRequestBody + +path = "/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py new file mode 100644 index 00000000000..de1d349aec8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import maxcontains_without_contains_is_ignored + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_maxcontains_without_contains_is_ignored_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_maxcontains_without_contains_is_ignored_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_maxcontains_without_contains_is_ignored_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMaxcontainsWithoutContainsIsIgnoredRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_maxcontains_without_contains_is_ignored_request_body = BaseApi._post_maxcontains_without_contains_is_ignored_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_maxcontains_without_contains_is_ignored_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..331b1c52a9b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import maxcontains_without_contains_is_ignored +Schema2: typing_extensions.TypeAlias = maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..052ff1d2998 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types import ResponseBodyPostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes + +path = "/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..19511a03fd5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_maxcontains_without_contains_is_ignored_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_maxcontains_without_contains_is_ignored_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_maxcontains_without_contains_is_ignored_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_maxcontains_without_contains_is_ignored_response_body_for_content_types = BaseApi._post_maxcontains_without_contains_is_ignored_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_maxcontains_without_contains_is_ignored_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..331b1c52a9b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import maxcontains_without_contains_is_ignored +Schema2: typing_extensions.TypeAlias = maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_maxcontains_without_contains_is_ignored.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_maxcontains_without_contains_is_ignored.py new file mode 100644 index 00000000000..4bd3c3b542d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_maxcontains_without_contains_is_ignored.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.maxcontains_without_contains_is_ignored import MaxcontainsWithoutContainsIsIgnored +from unit_test_api.configurations import schema_configuration + + +class TestMaxcontainsWithoutContainsIsIgnored(unittest.TestCase): + """MaxcontainsWithoutContainsIsIgnored unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_one_item_valid_against_lone_maxcontains_passes(self): + # one item valid against lone maxContains + MaxcontainsWithoutContainsIsIgnored.validate( + [ + 1, + ], + configuration=self.configuration + ) + + def test_two_items_still_valid_against_lone_maxcontains_passes(self): + # two items still valid against lone maxContains + MaxcontainsWithoutContainsIsIgnored.validate( + [ + 1, + 2, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/test_post.py new file mode 100644 index 00000000000..fd6096e148c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_maxcontains_without_contains_is_ignored_request_body/test_post.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_one_item_valid_against_lone_maxcontains_passes(self): + content_type = 'application/json' + # one item valid against lone maxContains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_two_items_still_valid_against_lone_maxcontains_passes(self): + content_type = 'application/json' + # two items still valid against lone maxContains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 2, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..22b429af888 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/test_post.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_one_item_valid_against_lone_maxcontains_passes(self): + # one item valid against lone maxContains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_two_items_still_valid_against_lone_maxcontains_passes(self): + # two items still valid against lone maxContains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 2, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 2f41298082e..5caf6a9d130 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -21,6 +21,7 @@ tags: - name: enum - name: format - name: items +- name: maxContains - name: maximum - name: maxItems - name: maxLength @@ -2199,6 +2200,42 @@ paths: - path.post - contentType_json - items + /requestBody/postMaxcontainsWithoutContainsIsIgnoredRequestBody: + post: + operationId: postMaxcontainsWithoutContainsIsIgnoredRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MaxcontainsWithoutContainsIsIgnored' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MaxcontainsWithoutContainsIsIgnored' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - maxContains + /responseBody/postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes: + post: + operationId: postMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/MaxcontainsWithoutContainsIsIgnored' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MaxcontainsWithoutContainsIsIgnored' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - maxContains /requestBody/postMaximumValidationRequestBody: post: operationId: postMaximumValidationRequestBody @@ -4389,6 +4426,9 @@ components: $schema: https://json-schema.org/draft/2020-12/schema items: type: 'null' + MaxcontainsWithoutContainsIsIgnored: + $schema: https://json-schema.org/draft/2020-12/schema + maxContains: 1 MaximumValidation: $schema: https://json-schema.org/draft/2020-12/schema maximum: 3.0 @@ -5887,6 +5927,18 @@ components: data: - null valid: true + MaxcontainsWithoutContainsIsIgnored: + OneItemValidAgainstLoneMaxcontains: + description: one item valid against lone maxContains + data: + - 1 + valid: true + TwoItemsStillValidAgainstLoneMaxcontains: + description: two items still valid against lone maxContains + data: + - 1 + - 2 + valid: true MaximumValidation: BelowTheMaximumIsValid: description: below the maximum is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 1671bb04b17..6fccd3c4290 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -105,6 +105,7 @@ class ExclusionReason: bug_max_items_missing = 'swagger-parser has a bug where maxItems is omitted: https://github.com/swagger-api/swagger-parser/issues/1974' bug_with_non_string_const_values = 'swagger-parser const bug: https://github.com/swagger-api/swagger-parser/issues/1975' bug_dependent_required_values_incorrect = 'swagger parser bug where dependentRequired values are incorrect https://github.com/swagger-api/swagger-parser/issues/1978' + bug_max_contains_lacks_float_value = 'swagger-parser bug where float values for maxContains are omitted https://github.com/swagger-api/swagger-parser/issues/1979' json_schema_test_draft = 'draft2020-12' path_to_json_schema_drafts = ('..', '..', 'JSON-Schema-Test-Suite', 'tests') @@ -170,6 +171,11 @@ class ExclusionReason: 'a schema given for items': ExclusionReason.swagger_parser_items_type_bug, 'prefixItems with no additional items allowed': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, + (json_schema_test_draft, 'maxContains.json'): { + "maxContains with contains, value with a decimal": ExclusionReason.bug_max_contains_lacks_float_value, + "maxContains with contains": ExclusionReason.bug_with_non_string_const_values, + "minContains < maxContains": ExclusionReason.bug_with_non_string_const_values, + }, (json_schema_test_draft, 'maxItems.json'): { 'maxItems validation with a decimal': ExclusionReason.bug_max_items_missing, }, @@ -296,6 +302,7 @@ class ExclusionReason: # 'id.json': (json_schema_test_draft,), # 'infinite-loop-detection.json': (json_schema_test_draft,), # activate after fixing this 'items.json': (json_schema_test_draft,), + 'maxContains.json': (json_schema_test_draft,), 'maximum.json': (json_schema_test_draft,), 'maxItems.json': (json_schema_test_draft,), 'maxLength.json': (json_schema_test_draft,), From dba8328930ad5f2d3d899a40e6ce4e663a5b49b3 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 25 Sep 2023 09:16:11 -0700 Subject: [PATCH 16/34] Adds minContains test cases --- .../python/.openapi-generator/FILES | 34 +++++ .../client/3_1_0_unit_test/python/README.md | 3 + .../docs/apis/tags/content_type_json_api.md | 2 + .../python/docs/apis/tags/min_contains_api.md | 15 ++ .../apis/tags/operation_request_body_api.md | 1 + .../python/docs/apis/tags/path_post_api.md | 2 + ...esponse_content_content_type_schema_api.md | 1 + ...mincontains_without_contains_is_ignored.md | 12 ++ .../post.md | 116 +++++++++++++++ .../content/application_json/schema.md | 10 ++ .../post.md | 111 +++++++++++++++ .../content/application_json/schema.md | 10 ++ .../src/unit_test_api/apis/path_to_api.py | 6 + ...ithout_contains_is_ignored_request_body.py | 13 ++ ...ignored_response_body_for_content_types.py | 13 ++ .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 4 + .../apis/tags/min_contains_api.py | 20 +++ .../apis/tags/operation_request_body_api.py | 2 + .../unit_test_api/apis/tags/path_post_api.py | 4 + ...esponse_content_content_type_schema_api.py | 2 + ...mincontains_without_contains_is_ignored.py | 25 ++++ .../components/schemas/__init__.py | 1 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++++++++++ .../post/request_body/__init__.py | 20 +++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 +++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ ...mincontains_without_contains_is_ignored.py | 42 ++++++ .../__init__.py | 0 .../test_post.py | 97 +++++++++++++ .../__init__.py | 0 .../test_post.py | 98 +++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 50 +++++++ .../3_1/unit_test_spec/spec_writer.py | 10 ++ 47 files changed, 1057 insertions(+) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/min_contains_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/mincontains_without_contains_is_ignored.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/mincontains_without_contains_is_ignored.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_mincontains_without_contains_is_ignored.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 856d2b96b6c..16d4ed6fafc 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -19,6 +19,7 @@ docs/apis/tags/max_items_api.md docs/apis/tags/max_length_api.md docs/apis/tags/max_properties_api.md docs/apis/tags/maximum_api.md +docs/apis/tags/min_contains_api.md docs/apis/tags/min_items_api.md docs/apis/tags/min_length_api.md docs/apis/tags/min_properties_api.md @@ -95,6 +96,7 @@ docs/components/schema/maxitems_validation.md docs/components/schema/maxlength_validation.md docs/components/schema/maxproperties0_means_the_object_is_empty.md docs/components/schema/maxproperties_validation.md +docs/components/schema/mincontains_without_contains_is_ignored.md docs/components/schema/minimum_validation.md docs/components/schema/minimum_validation_with_signed_integer.md docs/components/schema/minitems_validation.md @@ -267,6 +269,8 @@ docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_bo docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_maxproperties_validation_request_body/post.md docs/paths/request_body_post_maxproperties_validation_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md +docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minimum_validation_request_body/post.md docs/paths/request_body_post_minimum_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md @@ -493,6 +497,8 @@ docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_ docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md +docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md @@ -671,6 +677,7 @@ src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body. src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py +src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py @@ -784,6 +791,7 @@ src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_bod src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py @@ -856,6 +864,7 @@ src/unit_test_api/apis/tags/max_items_api.py src/unit_test_api/apis/tags/max_length_api.py src/unit_test_api/apis/tags/max_properties_api.py src/unit_test_api/apis/tags/maximum_api.py +src/unit_test_api/apis/tags/min_contains_api.py src/unit_test_api/apis/tags/min_items_api.py src/unit_test_api/apis/tags/min_length_api.py src/unit_test_api/apis/tags/min_properties_api.py @@ -934,6 +943,7 @@ src/unit_test_api/components/schema/maxitems_validation.py src/unit_test_api/components/schema/maxlength_validation.py src/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.py src/unit_test_api/components/schema/maxproperties_validation.py +src/unit_test_api/components/schema/mincontains_without_contains_is_ignored.py src/unit_test_api/components/schema/minimum_validation.py src/unit_test_api/components/schema/minimum_validation_with_signed_integer.py src/unit_test_api/components/schema/minitems_validation.py @@ -1532,6 +1542,15 @@ src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/ src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_minimum_validation_request_body/__init__.py src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -2489,6 +2508,14 @@ src/unit_test_api/paths/response_body_post_maxproperties_validation_response_bod src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -2997,6 +3024,7 @@ test/components/schema/test_maxitems_validation.py test/components/schema/test_maxlength_validation.py test/components/schema/test_maxproperties0_means_the_object_is_empty.py test/components/schema/test_maxproperties_validation.py +test/components/schema/test_mincontains_without_contains_is_ignored.py test/components/schema/test_minimum_validation.py test/components/schema/test_minimum_validation_with_signed_integer.py test/components/schema/test_minitems_validation.py @@ -3275,6 +3303,8 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py @@ -3395,6 +3425,8 @@ test/test_paths/test_request_body_post_maxproperties0_means_the_object_is_empty_ test/test_paths/test_request_body_post_maxproperties0_means_the_object_is_empty_request_body/test_post.py test/test_paths/test_request_body_post_maxproperties_validation_request_body/__init__.py test/test_paths/test_request_body_post_maxproperties_validation_request_body/test_post.py +test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py +test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/test_post.py test/test_paths/test_request_body_post_minimum_validation_request_body/__init__.py test/test_paths/test_request_body_post_minimum_validation_request_body/test_post.py test/test_paths/test_request_body_post_minimum_validation_with_signed_integer_request_body/__init__.py @@ -3621,6 +3653,8 @@ test/test_paths/test_response_body_post_maxproperties0_means_the_object_is_empty test/test_paths/test_response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_maxproperties_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_maxproperties_validation_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_minimum_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_minimum_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index cbb0741e650..ab087579c86 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -230,6 +230,7 @@ HTTP request | Method | Description /requestBody/postMaxlengthValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maxlength_validation_request_body](docs/paths/request_body_post_maxlength_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxlength_validation_request_body](docs/paths/request_body_post_maxlength_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxlength_validation_request_body](docs/paths/request_body_post_maxlength_validation_request_body/post.md) [MaxLengthApi](docs/apis/tags/max_length_api.md).[post_maxlength_validation_request_body](docs/paths/request_body_post_maxlength_validation_request_body/post.md) | /requestBody/postMaxproperties0MeansTheObjectIsEmptyRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maxproperties0_means_the_object_is_empty_request_body](docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxproperties0_means_the_object_is_empty_request_body](docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxproperties0_means_the_object_is_empty_request_body](docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md) [MaxPropertiesApi](docs/apis/tags/max_properties_api.md).[post_maxproperties0_means_the_object_is_empty_request_body](docs/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md) | /requestBody/postMaxpropertiesValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_maxproperties_validation_request_body](docs/paths/request_body_post_maxproperties_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxproperties_validation_request_body](docs/paths/request_body_post_maxproperties_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxproperties_validation_request_body](docs/paths/request_body_post_maxproperties_validation_request_body/post.md) [MaxPropertiesApi](docs/apis/tags/max_properties_api.md).[post_maxproperties_validation_request_body](docs/paths/request_body_post_maxproperties_validation_request_body/post.md) | +/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_mincontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_mincontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_mincontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) [MinContainsApi](docs/apis/tags/min_contains_api.md).[post_mincontains_without_contains_is_ignored_request_body](docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) | /requestBody/postMinimumValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minimum_validation_request_body](docs/paths/request_body_post_minimum_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minimum_validation_request_body](docs/paths/request_body_post_minimum_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minimum_validation_request_body](docs/paths/request_body_post_minimum_validation_request_body/post.md) [MinimumApi](docs/apis/tags/minimum_api.md).[post_minimum_validation_request_body](docs/paths/request_body_post_minimum_validation_request_body/post.md) | /requestBody/postMinimumValidationWithSignedIntegerRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minimum_validation_with_signed_integer_request_body](docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minimum_validation_with_signed_integer_request_body](docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minimum_validation_with_signed_integer_request_body](docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) [MinimumApi](docs/apis/tags/minimum_api.md).[post_minimum_validation_with_signed_integer_request_body](docs/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) | /requestBody/postMinitemsValidationRequestBody **post** | [MinItemsApi](docs/apis/tags/min_items_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minitems_validation_request_body](docs/paths/request_body_post_minitems_validation_request_body/post.md) | @@ -343,6 +344,7 @@ HTTP request | Method | Description /responseBody/postMaxlengthValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxlength_validation_response_body_for_content_types](docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxlength_validation_response_body_for_content_types](docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maxlength_validation_response_body_for_content_types](docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md) [MaxLengthApi](docs/apis/tags/max_length_api.md).[post_maxlength_validation_response_body_for_content_types](docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md) | /responseBody/postMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxproperties0_means_the_object_is_empty_response_body_for_content_types](docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxproperties0_means_the_object_is_empty_response_body_for_content_types](docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) [MaxPropertiesApi](docs/apis/tags/max_properties_api.md).[post_maxproperties0_means_the_object_is_empty_response_body_for_content_types](docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maxproperties0_means_the_object_is_empty_response_body_for_content_types](docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) | /responseBody/postMaxpropertiesValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_maxproperties_validation_response_body_for_content_types](docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_maxproperties_validation_response_body_for_content_types](docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) [MaxPropertiesApi](docs/apis/tags/max_properties_api.md).[post_maxproperties_validation_response_body_for_content_types](docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_maxproperties_validation_response_body_for_content_types](docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) | +/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_mincontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_mincontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_mincontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) [MinContainsApi](docs/apis/tags/min_contains_api.md).[post_mincontains_without_contains_is_ignored_response_body_for_content_types](docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) | /responseBody/postMinimumValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_minimum_validation_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minimum_validation_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) [MinimumApi](docs/apis/tags/minimum_api.md).[post_minimum_validation_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minimum_validation_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) | /responseBody/postMinimumValidationWithSignedIntegerResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_minimum_validation_with_signed_integer_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minimum_validation_with_signed_integer_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md) [MinimumApi](docs/apis/tags/minimum_api.md).[post_minimum_validation_with_signed_integer_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minimum_validation_with_signed_integer_response_body_for_content_types](docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md) | /responseBody/postMinitemsValidationResponseBodyForContentTypes **post** | [MinItemsApi](docs/apis/tags/min_items_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minitems_validation_response_body_for_content_types](docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) | @@ -461,6 +463,7 @@ Class | Description [MaxlengthValidation](docs/components/schema/maxlength_validation.md) | [Maxproperties0MeansTheObjectIsEmpty](docs/components/schema/maxproperties0_means_the_object_is_empty.md) | [MaxpropertiesValidation](docs/components/schema/maxproperties_validation.md) | +[MincontainsWithoutContainsIsIgnored](docs/components/schema/mincontains_without_contains_is_ignored.md) | [MinimumValidation](docs/components/schema/minimum_validation.md) | [MinimumValidationWithSignedInteger](docs/components/schema/minimum_validation_with_signed_integer.md) | [MinitemsValidation](docs/components/schema/minitems_validation.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 6a3dbfb2061..3d2b806719a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -129,6 +129,8 @@ Method | Description [**post_maxproperties0_means_the_object_is_empty_response_body_for_content_types**](../../paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) | [**post_maxproperties_validation_request_body**](../../paths/request_body_post_maxproperties_validation_request_body/post.md) | [**post_maxproperties_validation_response_body_for_content_types**](../../paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) | +[**post_mincontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) | +[**post_mincontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) | [**post_minimum_validation_request_body**](../../paths/request_body_post_minimum_validation_request_body/post.md) | [**post_minimum_validation_response_body_for_content_types**](../../paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) | [**post_minimum_validation_with_signed_integer_request_body**](../../paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/min_contains_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/min_contains_api.md new file mode 100644 index 00000000000..c95fdd9fb95 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/min_contains_api.md @@ -0,0 +1,15 @@ + +unit_test_api.apis.tags.min_contains_api +# MinContainsApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_mincontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) | +[**post_mincontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 85efd36b8ca..23e280fb6b1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -69,6 +69,7 @@ Method | Description [**post_maxlength_validation_request_body**](../../paths/request_body_post_maxlength_validation_request_body/post.md) | [**post_maxproperties0_means_the_object_is_empty_request_body**](../../paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.md) | [**post_maxproperties_validation_request_body**](../../paths/request_body_post_maxproperties_validation_request_body/post.md) | +[**post_mincontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) | [**post_minimum_validation_request_body**](../../paths/request_body_post_minimum_validation_request_body/post.md) | [**post_minimum_validation_with_signed_integer_request_body**](../../paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) | [**post_minitems_validation_request_body**](../../paths/request_body_post_minitems_validation_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index ee6ec59046d..4669423c875 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -129,6 +129,8 @@ Method | Description [**post_maxproperties0_means_the_object_is_empty_response_body_for_content_types**](../../paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) | [**post_maxproperties_validation_request_body**](../../paths/request_body_post_maxproperties_validation_request_body/post.md) | [**post_maxproperties_validation_response_body_for_content_types**](../../paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) | +[**post_mincontains_without_contains_is_ignored_request_body**](../../paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md) | +[**post_mincontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) | [**post_minimum_validation_request_body**](../../paths/request_body_post_minimum_validation_request_body/post.md) | [**post_minimum_validation_response_body_for_content_types**](../../paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) | [**post_minimum_validation_with_signed_integer_request_body**](../../paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 8fc499fbbd3..b6ddefd344f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -69,6 +69,7 @@ Method | Description [**post_maxlength_validation_response_body_for_content_types**](../../paths/response_body_post_maxlength_validation_response_body_for_content_types/post.md) | [**post_maxproperties0_means_the_object_is_empty_response_body_for_content_types**](../../paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.md) | [**post_maxproperties_validation_response_body_for_content_types**](../../paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.md) | +[**post_mincontains_without_contains_is_ignored_response_body_for_content_types**](../../paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md) | [**post_minimum_validation_response_body_for_content_types**](../../paths/response_body_post_minimum_validation_response_body_for_content_types/post.md) | [**post_minimum_validation_with_signed_integer_response_body_for_content_types**](../../paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.md) | [**post_minitems_validation_response_body_for_content_types**](../../paths/response_body_post_minitems_validation_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/mincontains_without_contains_is_ignored.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/mincontains_without_contains_is_ignored.md new file mode 100644 index 00000000000..2ee43a35728 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/mincontains_without_contains_is_ignored.md @@ -0,0 +1,12 @@ +# MincontainsWithoutContainsIsIgnored +unit_test_api.components.schema.mincontains_without_contains_is_ignored +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md new file mode 100644 index 00000000000..d9fe30753be --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_mincontains_without_contains_is_ignored_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_mincontains_without_contains_is_ignored_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_mincontains_without_contains_is_ignored_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_mincontains_without_contains_is_ignored_request_body | [MinContainsApi](../../apis/tags/min_contains_api.md) | This api is only for tag=minContains | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostMincontainsWithoutContainsIsIgnoredRequestBody | This api is only for path=/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored**](../../components/schema/mincontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored.validate(None) + try: + api_response = api_instance.post_mincontains_without_contains_is_ignored_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_mincontains_without_contains_is_ignored_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to MinContainsApi API]](../../apis/tags/min_contains_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..0632fdad700 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored**](../../../../../../components/schema/mincontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md new file mode 100644 index 00000000000..300b76d9f76 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_mincontains_without_contains_is_ignored_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_mincontains_without_contains_is_ignored_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_mincontains_without_contains_is_ignored_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post_mincontains_without_contains_is_ignored_response_body_for_content_types | [MinContainsApi](../../apis/tags/min_contains_api.md) | This api is only for tag=minContains | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes | This api is only for path=/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored**](../../components/schema/mincontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_mincontains_without_contains_is_ignored_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_mincontains_without_contains_is_ignored_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to MinContainsApi API]](../../apis/tags/min_contains_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..842889f95dd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored**](../../../../../../../../components/schema/mincontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 81f163919b1..7b3d11e5449 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -61,6 +61,7 @@ from unit_test_api.apis.paths.request_body_post_maxlength_validation_request_body import RequestBodyPostMaxlengthValidationRequestBody from unit_test_api.apis.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body import RequestBodyPostMaxproperties0MeansTheObjectIsEmptyRequestBody from unit_test_api.apis.paths.request_body_post_maxproperties_validation_request_body import RequestBodyPostMaxpropertiesValidationRequestBody +from unit_test_api.apis.paths.request_body_post_mincontains_without_contains_is_ignored_request_body import RequestBodyPostMincontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.apis.paths.request_body_post_minimum_validation_request_body import RequestBodyPostMinimumValidationRequestBody from unit_test_api.apis.paths.request_body_post_minimum_validation_with_signed_integer_request_body import RequestBodyPostMinimumValidationWithSignedIntegerRequestBody from unit_test_api.apis.paths.request_body_post_minitems_validation_request_body import RequestBodyPostMinitemsValidationRequestBody @@ -174,6 +175,7 @@ from unit_test_api.apis.paths.response_body_post_maxlength_validation_response_body_for_content_types import ResponseBodyPostMaxlengthValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types import ResponseBodyPostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_maxproperties_validation_response_body_for_content_types import ResponseBodyPostMaxpropertiesValidationResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types import ResponseBodyPostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_minimum_validation_response_body_for_content_types import ResponseBodyPostMinimumValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types import ResponseBodyPostMinimumValidationWithSignedIntegerResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_minitems_validation_response_body_for_content_types import ResponseBodyPostMinitemsValidationResponseBodyForContentTypes @@ -291,6 +293,7 @@ "/requestBody/postMaxlengthValidationRequestBody": typing.Type[RequestBodyPostMaxlengthValidationRequestBody], "/requestBody/postMaxproperties0MeansTheObjectIsEmptyRequestBody": typing.Type[RequestBodyPostMaxproperties0MeansTheObjectIsEmptyRequestBody], "/requestBody/postMaxpropertiesValidationRequestBody": typing.Type[RequestBodyPostMaxpropertiesValidationRequestBody], + "/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody": typing.Type[RequestBodyPostMincontainsWithoutContainsIsIgnoredRequestBody], "/requestBody/postMinimumValidationRequestBody": typing.Type[RequestBodyPostMinimumValidationRequestBody], "/requestBody/postMinimumValidationWithSignedIntegerRequestBody": typing.Type[RequestBodyPostMinimumValidationWithSignedIntegerRequestBody], "/requestBody/postMinitemsValidationRequestBody": typing.Type[RequestBodyPostMinitemsValidationRequestBody], @@ -404,6 +407,7 @@ "/responseBody/postMaxlengthValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaxlengthValidationResponseBodyForContentTypes], "/responseBody/postMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes], "/responseBody/postMaxpropertiesValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMaxpropertiesValidationResponseBodyForContentTypes], + "/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes": typing.Type[ResponseBodyPostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes], "/responseBody/postMinimumValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinimumValidationResponseBodyForContentTypes], "/responseBody/postMinimumValidationWithSignedIntegerResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinimumValidationWithSignedIntegerResponseBodyForContentTypes], "/responseBody/postMinitemsValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinitemsValidationResponseBodyForContentTypes], @@ -522,6 +526,7 @@ "/requestBody/postMaxlengthValidationRequestBody": RequestBodyPostMaxlengthValidationRequestBody, "/requestBody/postMaxproperties0MeansTheObjectIsEmptyRequestBody": RequestBodyPostMaxproperties0MeansTheObjectIsEmptyRequestBody, "/requestBody/postMaxpropertiesValidationRequestBody": RequestBodyPostMaxpropertiesValidationRequestBody, + "/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody": RequestBodyPostMincontainsWithoutContainsIsIgnoredRequestBody, "/requestBody/postMinimumValidationRequestBody": RequestBodyPostMinimumValidationRequestBody, "/requestBody/postMinimumValidationWithSignedIntegerRequestBody": RequestBodyPostMinimumValidationWithSignedIntegerRequestBody, "/requestBody/postMinitemsValidationRequestBody": RequestBodyPostMinitemsValidationRequestBody, @@ -635,6 +640,7 @@ "/responseBody/postMaxlengthValidationResponseBodyForContentTypes": ResponseBodyPostMaxlengthValidationResponseBodyForContentTypes, "/responseBody/postMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes": ResponseBodyPostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes, "/responseBody/postMaxpropertiesValidationResponseBodyForContentTypes": ResponseBodyPostMaxpropertiesValidationResponseBodyForContentTypes, + "/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes": ResponseBodyPostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, "/responseBody/postMinimumValidationResponseBodyForContentTypes": ResponseBodyPostMinimumValidationResponseBodyForContentTypes, "/responseBody/postMinimumValidationWithSignedIntegerResponseBodyForContentTypes": ResponseBodyPostMinimumValidationWithSignedIntegerResponseBodyForContentTypes, "/responseBody/postMinitemsValidationResponseBodyForContentTypes": ResponseBodyPostMinitemsValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py new file mode 100644 index 00000000000..38f5d1ba39c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import ApiForPost + + +class RequestBodyPostMincontainsWithoutContainsIsIgnoredRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py new file mode 100644 index 00000000000..cf416dc54f4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 408577f0f9c..9a1ef13c6ea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -17,6 +17,7 @@ from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi from unit_test_api.apis.tags.contains_api import ContainsApi from unit_test_api.apis.tags.one_of_api import OneOfApi +from unit_test_api.apis.tags.min_contains_api import MinContainsApi from unit_test_api.apis.tags.max_contains_api import MaxContainsApi from unit_test_api.apis.tags.ref_api import RefApi from unit_test_api.apis.tags.all_of_api import AllOfApi @@ -53,6 +54,7 @@ "operation.requestBody": typing.Type[OperationRequestBodyApi], "contains": typing.Type[ContainsApi], "oneOf": typing.Type[OneOfApi], + "minContains": typing.Type[MinContainsApi], "maxContains": typing.Type[MaxContainsApi], "$ref": typing.Type[RefApi], "allOf": typing.Type[AllOfApi], @@ -90,6 +92,7 @@ "operation.requestBody": OperationRequestBodyApi, "contains": ContainsApi, "oneOf": OneOfApi, + "minContains": MinContainsApi, "maxContains": MaxContainsApi, "$ref": RefApi, "allOf": AllOfApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index fb6b4482d17..fc6f44d2874 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -159,6 +159,7 @@ from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.operation import PostAllofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody @@ -192,6 +193,7 @@ from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.operation import PostAllofWithOneEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_array_type_matches_arrays_response_body_for_content_types.post.operation import PostArrayTypeMatchesArraysResponseBodyForContentTypes @@ -388,6 +390,7 @@ class ContentTypeJsonApi( PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, + PostMincontainsWithoutContainsIsIgnoredRequestBody, PostPropertiesWithEscapedCharactersRequestBody, PostAllofWithOneEmptySchemaRequestBody, PostObjectPropertiesValidationRequestBody, @@ -421,6 +424,7 @@ class ContentTypeJsonApi( PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, + PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostOneofWithRequiredResponseBodyForContentTypes, PostAllofWithOneEmptySchemaResponseBodyForContentTypes, PostArrayTypeMatchesArraysResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py new file mode 100644 index 00000000000..c058ca548a1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody + + +class MinContainsApi( + PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, + PostMincontainsWithoutContainsIsIgnoredRequestBody, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index add39b7d7bf..0fed4f7ac84 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -46,6 +46,7 @@ from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody +from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.operation import PostOneofWithRequiredRequestBody @@ -162,6 +163,7 @@ class OperationRequestBodyApi( PostNumberTypeMatchesNumbersRequestBody, PostAllofWithBaseSchemaRequestBody, PostIpv4FormatRequestBody, + PostMincontainsWithoutContainsIsIgnoredRequestBody, PostPropertiesWithEscapedCharactersRequestBody, PostSingleDependencyRequestBody, PostOneofWithRequiredRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index ebd3b5914f3..47aa6255459 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -159,6 +159,7 @@ from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_allof_with_one_empty_schema_request_body.post.operation import PostAllofWithOneEmptySchemaRequestBody from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody @@ -192,6 +193,7 @@ from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.operation import PostAllofWithOneEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_array_type_matches_arrays_response_body_for_content_types.post.operation import PostArrayTypeMatchesArraysResponseBodyForContentTypes @@ -388,6 +390,7 @@ class PathPostApi( PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, + PostMincontainsWithoutContainsIsIgnoredRequestBody, PostPropertiesWithEscapedCharactersRequestBody, PostAllofWithOneEmptySchemaRequestBody, PostObjectPropertiesValidationRequestBody, @@ -421,6 +424,7 @@ class PathPostApi( PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, + PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostOneofWithRequiredResponseBodyForContentTypes, PostAllofWithOneEmptySchemaResponseBodyForContentTypes, PostArrayTypeMatchesArraysResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index ff38800a074..78334cd2c64 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -71,6 +71,7 @@ from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.operation import PostAllofWithOneEmptySchemaResponseBodyForContentTypes @@ -187,6 +188,7 @@ class ResponseContentContentTypeSchemaApi( PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, + PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostConstNulCharactersInStringsResponseBodyForContentTypes, PostOneofWithRequiredResponseBodyForContentTypes, PostAllofWithOneEmptySchemaResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/mincontains_without_contains_is_ignored.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/mincontains_without_contains_is_ignored.py new file mode 100644 index 00000000000..297ed903090 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/mincontains_without_contains_is_ignored.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class MincontainsWithoutContainsIsIgnored( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index e3b007f2728..0b84135efb1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -71,6 +71,7 @@ from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.mincontains_without_contains_is_ignored import MincontainsWithoutContainsIsIgnored from unit_test_api.components.schema.minimum_validation import MinimumValidation from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from unit_test_api.components.schema.minitems_validation import MinitemsValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py new file mode 100644 index 00000000000..acb05c70abf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_mincontains_without_contains_is_ignored_request_body import RequestBodyPostMincontainsWithoutContainsIsIgnoredRequestBody + +path = "/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py new file mode 100644 index 00000000000..3db6e0bea17 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import mincontains_without_contains_is_ignored + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_mincontains_without_contains_is_ignored_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_mincontains_without_contains_is_ignored_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_mincontains_without_contains_is_ignored_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMincontainsWithoutContainsIsIgnoredRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_mincontains_without_contains_is_ignored_request_body = BaseApi._post_mincontains_without_contains_is_ignored_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_mincontains_without_contains_is_ignored_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..fdfe3baa6bf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import mincontains_without_contains_is_ignored +Schema2: typing_extensions.TypeAlias = mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..7fb257596c7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types import ResponseBodyPostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes + +path = "/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..c0091e979c5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_mincontains_without_contains_is_ignored_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_mincontains_without_contains_is_ignored_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_mincontains_without_contains_is_ignored_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_mincontains_without_contains_is_ignored_response_body_for_content_types = BaseApi._post_mincontains_without_contains_is_ignored_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_mincontains_without_contains_is_ignored_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..fdfe3baa6bf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import mincontains_without_contains_is_ignored +Schema2: typing_extensions.TypeAlias = mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_mincontains_without_contains_is_ignored.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_mincontains_without_contains_is_ignored.py new file mode 100644 index 00000000000..bf4375b341f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_mincontains_without_contains_is_ignored.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.mincontains_without_contains_is_ignored import MincontainsWithoutContainsIsIgnored +from unit_test_api.configurations import schema_configuration + + +class TestMincontainsWithoutContainsIsIgnored(unittest.TestCase): + """MincontainsWithoutContainsIsIgnored unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_one_item_valid_against_lone_mincontains_passes(self): + # one item valid against lone minContains + MincontainsWithoutContainsIsIgnored.validate( + [ + 1, + ], + configuration=self.configuration + ) + + def test_zero_items_still_valid_against_lone_mincontains_passes(self): + # zero items still valid against lone minContains + MincontainsWithoutContainsIsIgnored.validate( + [ + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/test_post.py new file mode 100644 index 00000000000..6f92adc7fe4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_mincontains_without_contains_is_ignored_request_body/test_post.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_one_item_valid_against_lone_mincontains_passes(self): + content_type = 'application/json' + # one item valid against lone minContains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_zero_items_still_valid_against_lone_mincontains_passes(self): + content_type = 'application/json' + # zero items still valid against lone minContains + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..cbefae4e9dd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/test_post.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_one_item_valid_against_lone_mincontains_passes(self): + # one item valid against lone minContains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_zero_items_still_valid_against_lone_mincontains_passes(self): + # zero items still valid against lone minContains + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 5caf6a9d130..31d33d4709f 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -27,6 +27,7 @@ tags: - name: maxLength - name: maxProperties - name: minimum +- name: minContains - name: minItems - name: minLength - name: minProperties @@ -2524,6 +2525,42 @@ paths: - path.post - contentType_json - minimum + /requestBody/postMincontainsWithoutContainsIsIgnoredRequestBody: + post: + operationId: postMincontainsWithoutContainsIsIgnoredRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MincontainsWithoutContainsIsIgnored' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MincontainsWithoutContainsIsIgnored' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - minContains + /responseBody/postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes: + post: + operationId: postMincontainsWithoutContainsIsIgnoredResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/MincontainsWithoutContainsIsIgnored' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MincontainsWithoutContainsIsIgnored' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - minContains /requestBody/postMinitemsValidationRequestBody: post: operationId: postMinitemsValidationRequestBody @@ -4453,6 +4490,9 @@ components: MinimumValidationWithSignedInteger: $schema: https://json-schema.org/draft/2020-12/schema minimum: -2 + MincontainsWithoutContainsIsIgnored: + $schema: https://json-schema.org/draft/2020-12/schema + minContains: 1 MinitemsValidation: $schema: https://json-schema.org/draft/2020-12/schema minItems: 1 @@ -6107,6 +6147,16 @@ components: description: ignores non-numbers data: x valid: true + MincontainsWithoutContainsIsIgnored: + OneItemValidAgainstLoneMincontains: + description: one item valid against lone minContains + data: + - 1 + valid: true + ZeroItemsStillValidAgainstLoneMincontains: + description: zero items still valid against lone minContains + data: [] + valid: true MinitemsValidation: LongerIsValid: description: longer is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 6fccd3c4290..390f583bee3 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -185,6 +185,15 @@ class ExclusionReason: (json_schema_test_draft, 'maxProperties.json'): { 'maxProperties validation with a decimal': ExclusionReason.bug_max_items_missing, }, + (json_schema_test_draft, 'minContains.json'): { + "minContains=1 with contains": ExclusionReason.bug_with_non_string_const_values, + "minContains=2 with contains": ExclusionReason.bug_with_non_string_const_values, + "minContains=2 with contains with a decimal value": ExclusionReason.bug_max_contains_lacks_float_value, + "maxContains = minContains": ExclusionReason.bug_with_non_string_const_values, + "maxContains < minContains": ExclusionReason.bug_with_non_string_const_values, + "minContains = 0": ExclusionReason.bug_with_non_string_const_values, + "minContains = 0 with maxContains": ExclusionReason.bug_with_non_string_const_values, + }, (json_schema_test_draft, 'minItems.json'): { 'minItems validation with a decimal': ExclusionReason.bug_max_items_missing, }, @@ -308,6 +317,7 @@ class ExclusionReason: 'maxLength.json': (json_schema_test_draft,), 'maxProperties.json': (json_schema_test_draft,), 'minimum.json': (json_schema_test_draft,), + 'minContains.json': (json_schema_test_draft,), 'minItems.json': (json_schema_test_draft,), 'minLength.json': (json_schema_test_draft,), 'minProperties.json': (json_schema_test_draft,), From 8ccd7543fb30ad1d6398f9859ff28b1eb5554f5e Mon Sep 17 00:00:00 2001 From: Justin Black Date: Mon, 25 Sep 2023 09:48:35 -0700 Subject: [PATCH 17/34] Turns on patternProperties tests --- .../python/.openapi-generator/FILES | 340 ++++++++---- .../client/3_1_0_unit_test/python/README.md | 21 + .../apis/tags/additional_properties_api.md | 4 + .../docs/apis/tags/content_type_json_api.md | 14 + .../apis/tags/operation_request_body_api.md | 7 + .../python/docs/apis/tags/path_post_api.md | 14 + .../docs/apis/tags/pattern_properties_api.md | 21 + .../python/docs/apis/tags/properties_api.md | 2 + ...esponse_content_content_type_schema_api.md | 7 + ...g_false_does_not_allow_other_properties.md | 43 ++ ...taneous_patternproperties_are_validated.md | 12 + ...ascii_pattern_with_additionalproperties.md | 32 ++ ...s_validates_properties_matching_a_regex.md | 12 + ...es_with_null_valued_instance_properties.md | 12 + ...erties_additionalproperties_interaction.md | 79 +++ ...hored_by_default_and_are_case_sensitive.md | 12 + .../post.md | 119 +++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 119 +++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 42 ++ ...not_allow_other_properties_request_body.py | 13 + ...rnproperties_are_validated_request_body.py | 13 + ..._with_additionalproperties_request_body.py | 13 + ...roperties_matching_a_regex_request_body.py | 13 + ...valued_instance_properties_request_body.py | 13 + ...onalproperties_interaction_request_body.py | 13 + ...ult_and_are_case_sensitive_request_body.py | 13 + ...perties_response_body_for_content_types.py | 13 + ...lidated_response_body_for_content_types.py | 13 + ...perties_response_body_for_content_types.py | 13 + ...a_regex_response_body_for_content_types.py | 13 + ...perties_response_body_for_content_types.py | 13 + ...raction_response_body_for_content_types.py | 13 + ...nsitive_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/additional_properties_api.py | 16 +- .../apis/tags/content_type_json_api.py | 28 + .../apis/tags/operation_request_body_api.py | 14 + .../unit_test_api/apis/tags/path_post_api.py | 28 + .../apis/tags/pattern_properties_api.py | 32 ++ .../unit_test_api/apis/tags/properties_api.py | 4 + ...esponse_content_content_type_schema_api.py | 14 + ...g_false_does_not_allow_other_properties.py | 150 ++++++ ...taneous_patternproperties_are_validated.py | 48 ++ ...ascii_pattern_with_additionalproperties.py | 85 +++ ...s_validates_properties_matching_a_regex.py | 36 ++ ...es_with_null_valued_instance_properties.py | 36 ++ ...erties_additionalproperties_interaction.py | 191 +++++++ ...hored_by_default_and_are_case_sensitive.py | 40 ++ .../components/schemas/__init__.py | 7 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + ...g_false_does_not_allow_other_properties.py | 87 +++ ...taneous_patternproperties_are_validated.py | 92 ++++ ...ascii_pattern_with_additionalproperties.py | 46 ++ ...s_validates_properties_matching_a_regex.py | 96 ++++ ...es_with_null_valued_instance_properties.py | 35 ++ ...erties_additionalproperties_interaction.py | 123 +++++ ...hored_by_default_and_are_case_sensitive.py | 67 +++ .../__init__.py | 0 .../test_post.py | 214 ++++++++ .../__init__.py | 0 .../test_post.py | 187 +++++++ .../__init__.py | 0 .../test_post.py | 85 +++ .../__init__.py | 0 .../test_post.py | 229 ++++++++ .../__init__.py | 0 .../test_post.py | 68 +++ .../__init__.py | 0 .../test_post.py | 246 +++++++++ .../__init__.py | 0 .../test_post.py | 134 +++++ .../__init__.py | 0 .../test_post.py | 225 ++++++++ .../__init__.py | 0 .../test_post.py | 218 ++++++++ .../__init__.py | 0 .../test_post.py | 96 ++++ .../__init__.py | 0 .../test_post.py | 250 +++++++++ .../__init__.py | 0 .../test_post.py | 69 +++ .../__init__.py | 0 .../test_post.py | 287 ++++++++++ .../__init__.py | 0 .../test_post.py | 155 ++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 494 ++++++++++++++++++ .../3_1/unit_test_spec/spec_writer.py | 13 +- 231 files changed, 9162 insertions(+), 127 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/pattern_properties_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_simultaneous_patternproperties_are_validated.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/non_ascii_pattern_with_additionalproperties.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_validates_properties_matching_a_regex.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_with_null_valued_instance_properties.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/properties_patternproperties_additionalproperties_interaction.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_simultaneous_patternproperties_are_validated.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_validates_properties_matching_a_regex.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_with_null_valued_instance_properties.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_non_ascii_pattern_with_additionalproperties.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_with_null_valued_instance_properties.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 16d4ed6fafc..0965dda66b6 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -29,6 +29,7 @@ docs/apis/tags/one_of_api.md docs/apis/tags/operation_request_body_api.md docs/apis/tags/path_post_api.md docs/apis/tags/pattern_api.md +docs/apis/tags/pattern_properties_api.md docs/apis/tags/properties_api.md docs/apis/tags/ref_api.md docs/apis/tags/required_api.md @@ -37,6 +38,7 @@ docs/apis/tags/type_api.md docs/apis/tags/unique_items_api.md docs/components/schema/_not.md docs/components/schema/additionalproperties_are_allowed_by_default.md +docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md docs/components/schema/additionalproperties_can_exist_by_itself.md docs/components/schema/additionalproperties_does_not_look_in_applicators.md docs/components/schema/additionalproperties_with_null_valued_instance_properties.md @@ -103,11 +105,13 @@ docs/components/schema/minitems_validation.md docs/components/schema/minlength_validation.md docs/components/schema/minproperties_validation.md docs/components/schema/multiple_dependents_required.md +docs/components/schema/multiple_simultaneous_patternproperties_are_validated.md docs/components/schema/multiple_types_can_be_specified_in_an_array.md docs/components/schema/nested_allof_to_check_validation_semantics.md docs/components/schema/nested_anyof_to_check_validation_semantics.md docs/components/schema/nested_items.md docs/components/schema/nested_oneof_to_check_validation_semantics.md +docs/components/schema/non_ascii_pattern_with_additionalproperties.md docs/components/schema/not_more_complex_schema.md docs/components/schema/nul_characters_in_strings.md docs/components/schema/null_type_matches_only_the_null_object.md @@ -121,12 +125,16 @@ docs/components/schema/oneof_with_empty_schema.md docs/components/schema/oneof_with_required.md docs/components/schema/pattern_is_not_anchored.md docs/components/schema/pattern_validation.md +docs/components/schema/patternproperties_validates_properties_matching_a_regex.md +docs/components/schema/patternproperties_with_null_valued_instance_properties.md docs/components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md +docs/components/schema/properties_patternproperties_additionalproperties_interaction.md docs/components/schema/properties_whose_names_are_javascript_object_property_names.md docs/components/schema/properties_with_escaped_characters.md docs/components/schema/properties_with_null_valued_instance_properties.md docs/components/schema/property_named_ref_that_is_not_a_reference.md docs/components/schema/regex_format.md +docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md docs/components/schema/relative_json_pointer_format.md docs/components/schema/required_default_validation.md docs/components/schema/required_properties_whose_names_are_javascript_object_property_names.md @@ -151,6 +159,8 @@ docs/components/schema/uri_template_format.md docs/components/schema/uuid_format.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md +docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md @@ -283,6 +293,8 @@ docs/paths/request_body_post_minproperties_validation_request_body/post.md docs/paths/request_body_post_minproperties_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_multiple_dependents_required_request_body/post.md docs/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md +docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md @@ -293,6 +305,8 @@ docs/paths/request_body_post_nested_items_request_body/post.md docs/paths/request_body_post_nested_items_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md +docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_not_more_complex_schema_request_body/post.md docs/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_not_request_body/post.md @@ -321,8 +335,14 @@ docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md docs/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_pattern_validation_request_body/post.md docs/paths/request_body_post_pattern_validation_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md +docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md +docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md +docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md @@ -333,6 +353,8 @@ docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_ docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_regex_format_request_body/post.md docs/paths/request_body_post_regex_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md +docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md docs/paths/request_body_post_relative_json_pointer_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_required_default_validation_request_body/post.md @@ -379,6 +401,8 @@ docs/paths/request_body_post_uuid_format_request_body/post.md docs/paths/request_body_post_uuid_format_request_body/post/request_body/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md +docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md @@ -511,6 +535,8 @@ docs/paths/response_body_post_minproperties_validation_response_body_for_content docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md +docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md @@ -521,6 +547,8 @@ docs/paths/response_body_post_nested_items_response_body_for_content_types/post. docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md +docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_not_response_body_for_content_types/post.md @@ -549,8 +577,14 @@ docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_ docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md +docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md +docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md @@ -561,6 +595,8 @@ docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_respons docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md docs/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md +docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md @@ -618,6 +654,7 @@ src/unit_test_api/apis/__init__.py src/unit_test_api/apis/path_to_api.py src/unit_test_api/apis/paths/__init__.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py +src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.py @@ -684,11 +721,13 @@ src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body. src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py +src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py src/unit_test_api/apis/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py +src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py src/unit_test_api/apis/paths/request_body_post_not_request_body.py src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py @@ -703,12 +742,16 @@ src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_b src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py +src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py +src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.py +src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_with_null_valued_instance_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py src/unit_test_api/apis/paths/request_body_post_regex_format_request_body.py +src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py src/unit_test_api/apis/paths/request_body_post_relative_json_pointer_format_request_body.py src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.py @@ -732,6 +775,7 @@ src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -798,11 +842,13 @@ src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_bod src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py @@ -817,12 +863,16 @@ src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_regex_format_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py @@ -874,6 +924,7 @@ src/unit_test_api/apis/tags/one_of_api.py src/unit_test_api/apis/tags/operation_request_body_api.py src/unit_test_api/apis/tags/path_post_api.py src/unit_test_api/apis/tags/pattern_api.py +src/unit_test_api/apis/tags/pattern_properties_api.py src/unit_test_api/apis/tags/properties_api.py src/unit_test_api/apis/tags/ref_api.py src/unit_test_api/apis/tags/required_api.py @@ -884,6 +935,7 @@ src/unit_test_api/components/__init__.py src/unit_test_api/components/schema/__init__.py src/unit_test_api/components/schema/_not.py src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py +src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py src/unit_test_api/components/schema/additionalproperties_with_null_valued_instance_properties.py @@ -950,11 +1002,13 @@ src/unit_test_api/components/schema/minitems_validation.py src/unit_test_api/components/schema/minlength_validation.py src/unit_test_api/components/schema/minproperties_validation.py src/unit_test_api/components/schema/multiple_dependents_required.py +src/unit_test_api/components/schema/multiple_simultaneous_patternproperties_are_validated.py src/unit_test_api/components/schema/multiple_types_can_be_specified_in_an_array.py src/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py src/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py src/unit_test_api/components/schema/nested_items.py src/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py +src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py src/unit_test_api/components/schema/not_more_complex_schema.py src/unit_test_api/components/schema/nul_characters_in_strings.py src/unit_test_api/components/schema/null_type_matches_only_the_null_object.py @@ -968,12 +1022,16 @@ src/unit_test_api/components/schema/oneof_with_empty_schema.py src/unit_test_api/components/schema/oneof_with_required.py src/unit_test_api/components/schema/pattern_is_not_anchored.py src/unit_test_api/components/schema/pattern_validation.py +src/unit_test_api/components/schema/patternproperties_validates_properties_matching_a_regex.py +src/unit_test_api/components/schema/patternproperties_with_null_valued_instance_properties.py src/unit_test_api/components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.py +src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py src/unit_test_api/components/schema/properties_whose_names_are_javascript_object_property_names.py src/unit_test_api/components/schema/properties_with_escaped_characters.py src/unit_test_api/components/schema/properties_with_null_valued_instance_properties.py src/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py src/unit_test_api/components/schema/regex_format.py +src/unit_test_api/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.py src/unit_test_api/components/schema/relative_json_pointer_format.py src/unit_test_api/components/schema/required_default_validation.py src/unit_test_api/components/schema/required_properties_whose_names_are_javascript_object_property_names.py @@ -1011,6 +1069,15 @@ src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_de src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -1605,6 +1672,15 @@ src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_b src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/__init__.py src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py @@ -1650,6 +1726,15 @@ src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_seman src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/__init__.py src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -1776,6 +1861,24 @@ src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/r src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/__init__.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py @@ -1785,6 +1888,15 @@ src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_sta src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/__init__.py src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -1830,6 +1942,15 @@ src/unit_test_api/paths/request_body_post_regex_format_request_body/post/request src/unit_test_api/paths/request_body_post_regex_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py @@ -2036,6 +2157,14 @@ src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_d src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -2564,6 +2693,14 @@ src/unit_test_api/paths/response_body_post_multiple_dependents_required_response src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py @@ -2604,6 +2741,14 @@ src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_sema src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -2716,6 +2861,22 @@ src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_ src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py @@ -2724,6 +2885,14 @@ src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_st src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -2764,6 +2933,14 @@ src/unit_test_api/paths/response_body_post_regex_format_response_body_for_conten src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py @@ -2963,120 +3140,27 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test__not.py -test/components/schema/test_additionalproperties_are_allowed_by_default.py -test/components/schema/test_additionalproperties_can_exist_by_itself.py -test/components/schema/test_additionalproperties_does_not_look_in_applicators.py -test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py -test/components/schema/test_additionalproperties_with_schema.py -test/components/schema/test_allof.py -test/components/schema/test_allof_combined_with_anyof_oneof.py -test/components/schema/test_allof_simple_types.py -test/components/schema/test_allof_with_base_schema.py -test/components/schema/test_allof_with_one_empty_schema.py -test/components/schema/test_allof_with_the_first_empty_schema.py -test/components/schema/test_allof_with_the_last_empty_schema.py -test/components/schema/test_allof_with_two_empty_schemas.py -test/components/schema/test_anyof.py -test/components/schema/test_anyof_complex_types.py -test/components/schema/test_anyof_with_base_schema.py -test/components/schema/test_anyof_with_one_empty_schema.py -test/components/schema/test_array_type_matches_arrays.py -test/components/schema/test_boolean_type_matches_booleans.py -test/components/schema/test_by_int.py -test/components/schema/test_by_number.py -test/components/schema/test_by_small_number.py -test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_contains_keyword_validation.py -test/components/schema/test_contains_with_null_instance_elements.py -test/components/schema/test_date_format.py -test/components/schema/test_date_time_format.py -test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py -test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py -test/components/schema/test_dependent_schemas_single_dependency.py -test/components/schema/test_duration_format.py -test/components/schema/test_email_format.py -test/components/schema/test_empty_dependents.py -test/components/schema/test_enum_with0_does_not_match_false.py -test/components/schema/test_enum_with1_does_not_match_true.py -test/components/schema/test_enum_with_escaped_characters.py -test/components/schema/test_enum_with_false_does_not_match0.py -test/components/schema/test_enum_with_true_does_not_match1.py -test/components/schema/test_enums_in_properties.py -test/components/schema/test_float_division_inf.py -test/components/schema/test_forbidden_property.py -test/components/schema/test_hostname_format.py -test/components/schema/test_idn_email_format.py -test/components/schema/test_idn_hostname_format.py -test/components/schema/test_integer_type_matches_integers.py -test/components/schema/test_ipv4_format.py -test/components/schema/test_ipv6_format.py -test/components/schema/test_iri_format.py -test/components/schema/test_iri_reference_format.py -test/components/schema/test_items_contains.py -test/components/schema/test_items_does_not_look_in_applicators_valid_case.py -test/components/schema/test_items_with_null_instance_elements.py -test/components/schema/test_json_pointer_format.py -test/components/schema/test_maxcontains_without_contains_is_ignored.py -test/components/schema/test_maximum_validation.py -test/components/schema/test_maximum_validation_with_unsigned_integer.py -test/components/schema/test_maxitems_validation.py -test/components/schema/test_maxlength_validation.py -test/components/schema/test_maxproperties0_means_the_object_is_empty.py -test/components/schema/test_maxproperties_validation.py -test/components/schema/test_mincontains_without_contains_is_ignored.py -test/components/schema/test_minimum_validation.py -test/components/schema/test_minimum_validation_with_signed_integer.py -test/components/schema/test_minitems_validation.py -test/components/schema/test_minlength_validation.py -test/components/schema/test_minproperties_validation.py -test/components/schema/test_multiple_dependents_required.py -test/components/schema/test_multiple_types_can_be_specified_in_an_array.py -test/components/schema/test_nested_allof_to_check_validation_semantics.py -test/components/schema/test_nested_anyof_to_check_validation_semantics.py -test/components/schema/test_nested_items.py -test/components/schema/test_nested_oneof_to_check_validation_semantics.py -test/components/schema/test_not_more_complex_schema.py -test/components/schema/test_nul_characters_in_strings.py -test/components/schema/test_null_type_matches_only_the_null_object.py -test/components/schema/test_number_type_matches_numbers.py -test/components/schema/test_object_properties_validation.py -test/components/schema/test_object_type_matches_objects.py -test/components/schema/test_oneof.py -test/components/schema/test_oneof_complex_types.py -test/components/schema/test_oneof_with_base_schema.py -test/components/schema/test_oneof_with_empty_schema.py -test/components/schema/test_oneof_with_required.py -test/components/schema/test_pattern_is_not_anchored.py -test/components/schema/test_pattern_validation.py -test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py -test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_properties_with_escaped_characters.py -test/components/schema/test_properties_with_null_valued_instance_properties.py -test/components/schema/test_property_named_ref_that_is_not_a_reference.py -test/components/schema/test_regex_format.py -test/components/schema/test_relative_json_pointer_format.py -test/components/schema/test_required_default_validation.py -test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_required_validation.py -test/components/schema/test_required_with_empty_array.py -test/components/schema/test_required_with_escaped_characters.py -test/components/schema/test_simple_enum_validation.py -test/components/schema/test_single_dependency.py -test/components/schema/test_small_multiple_of_large_integer.py -test/components/schema/test_string_type_matches_strings.py -test/components/schema/test_time_format.py -test/components/schema/test_type_array_object_or_null.py -test/components/schema/test_type_array_or_object.py -test/components/schema/test_type_as_array_with_one_item.py -test/components/schema/test_uniqueitems_false_validation.py -test/components/schema/test_uniqueitems_false_with_an_array_of_items.py -test/components/schema/test_uniqueitems_validation.py -test/components/schema/test_uniqueitems_with_an_array_of_items.py -test/components/schema/test_uri_format.py -test/components/schema/test_uri_reference_format.py -test/components/schema/test_uri_template_format.py -test/components/schema/test_uuid_format.py +test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py +test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py +test/components/schema/test_non_ascii_pattern_with_additionalproperties.py +test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py +test/components/schema/test_patternproperties_with_null_valued_instance_properties.py +test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py +test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3307,6 +3391,8 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/test_post.py +test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py +test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_does_not_look_in_applicators_request_body/__init__.py @@ -3439,6 +3525,8 @@ test/test_paths/test_request_body_post_minproperties_validation_request_body/__i test/test_paths/test_request_body_post_minproperties_validation_request_body/test_post.py test/test_paths/test_request_body_post_multiple_dependents_required_request_body/__init__.py test/test_paths/test_request_body_post_multiple_dependents_required_request_body/test_post.py +test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py +test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/test_post.py test/test_paths/test_request_body_post_multiple_types_can_be_specified_in_an_array_request_body/__init__.py test/test_paths/test_request_body_post_multiple_types_can_be_specified_in_an_array_request_body/test_post.py test/test_paths/test_request_body_post_nested_allof_to_check_validation_semantics_request_body/__init__.py @@ -3449,6 +3537,8 @@ test/test_paths/test_request_body_post_nested_items_request_body/__init__.py test/test_paths/test_request_body_post_nested_items_request_body/test_post.py test/test_paths/test_request_body_post_nested_oneof_to_check_validation_semantics_request_body/__init__.py test/test_paths/test_request_body_post_nested_oneof_to_check_validation_semantics_request_body/test_post.py +test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py +test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/test_post.py test/test_paths/test_request_body_post_not_more_complex_schema_request_body/__init__.py test/test_paths/test_request_body_post_not_more_complex_schema_request_body/test_post.py test/test_paths/test_request_body_post_not_request_body/__init__.py @@ -3477,8 +3567,14 @@ test/test_paths/test_request_body_post_pattern_is_not_anchored_request_body/__in test/test_paths/test_request_body_post_pattern_is_not_anchored_request_body/test_post.py test/test_paths/test_request_body_post_pattern_validation_request_body/__init__.py test/test_paths/test_request_body_post_pattern_validation_request_body/test_post.py +test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py +test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/test_post.py +test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py +test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/test_post.py test/test_paths/test_request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/__init__.py test/test_paths/test_request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/test_post.py +test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py +test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/test_post.py test/test_paths/test_request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/__init__.py test/test_paths/test_request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/test_post.py test/test_paths/test_request_body_post_properties_with_escaped_characters_request_body/__init__.py @@ -3489,6 +3585,8 @@ test/test_paths/test_request_body_post_property_named_ref_that_is_not_a_referenc test/test_paths/test_request_body_post_property_named_ref_that_is_not_a_reference_request_body/test_post.py test/test_paths/test_request_body_post_regex_format_request_body/__init__.py test/test_paths/test_request_body_post_regex_format_request_body/test_post.py +test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py +test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/test_post.py test/test_paths/test_request_body_post_relative_json_pointer_format_request_body/__init__.py test/test_paths/test_request_body_post_relative_json_pointer_format_request_body/test_post.py test/test_paths/test_request_body_post_required_default_validation_request_body/__init__.py @@ -3535,6 +3633,8 @@ test/test_paths/test_request_body_post_uuid_format_request_body/__init__.py test/test_paths/test_request_body_post_uuid_format_request_body/test_post.py test/test_paths/test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/__init__.py @@ -3667,6 +3767,8 @@ test/test_paths/test_response_body_post_minproperties_validation_response_body_f test/test_paths/test_response_body_post_minproperties_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_multiple_dependents_required_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/__init__.py @@ -3677,6 +3779,8 @@ test/test_paths/test_response_body_post_nested_items_response_body_for_content_t test/test_paths/test_response_body_post_nested_items_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_not_more_complex_schema_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_not_more_complex_schema_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_not_response_body_for_content_types/__init__.py @@ -3705,8 +3809,14 @@ test/test_paths/test_response_body_post_pattern_is_not_anchored_response_body_fo test/test_paths/test_response_body_post_pattern_is_not_anchored_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_pattern_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_pattern_validation_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_properties_with_escaped_characters_response_body_for_content_types/__init__.py @@ -3717,6 +3827,8 @@ test/test_paths/test_response_body_post_property_named_ref_that_is_not_a_referen test/test_paths/test_response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_regex_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_regex_format_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_relative_json_pointer_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_relative_json_pointer_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_required_default_validation_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index ab087579c86..c86836fb1f8 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -171,6 +171,7 @@ All URIs are relative to the selected server HTTP request | Method | Description ------------ | ------ | ------------- /requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | +/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | /requestBody/postAdditionalpropertiesCanExistByItselfRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | /requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | /requestBody/postAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) | @@ -237,11 +238,13 @@ HTTP request | Method | Description /requestBody/postMinlengthValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) [MinLengthApi](docs/apis/tags/min_length_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minlength_validation_request_body](docs/paths/request_body_post_minlength_validation_request_body/post.md) | /requestBody/postMinpropertiesValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) [MinPropertiesApi](docs/apis/tags/min_properties_api.md).[post_minproperties_validation_request_body](docs/paths/request_body_post_minproperties_validation_request_body/post.md) | /requestBody/postMultipleDependentsRequiredRequestBody **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_dependents_required_request_body](docs/paths/request_body_post_multiple_dependents_required_request_body/post.md) | +/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_multiple_simultaneous_patternproperties_are_validated_request_body](docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_multiple_simultaneous_patternproperties_are_validated_request_body](docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_simultaneous_patternproperties_are_validated_request_body](docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_simultaneous_patternproperties_are_validated_request_body](docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) | /requestBody/postMultipleTypesCanBeSpecifiedInAnArrayRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_multiple_types_can_be_specified_in_an_array_request_body](docs/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | /requestBody/postNestedAllofToCheckValidationSemanticsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) [AllOfApi](docs/apis/tags/all_of_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_allof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | /requestBody/postNestedAnyofToCheckValidationSemanticsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) [AnyOfApi](docs/apis/tags/any_of_api.md).[post_nested_anyof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) | /requestBody/postNestedItemsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_items_request_body](docs/paths/request_body_post_nested_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_items_request_body](docs/paths/request_body_post_nested_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_items_request_body](docs/paths/request_body_post_nested_items_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_nested_items_request_body](docs/paths/request_body_post_nested_items_request_body/post.md) | /requestBody/postNestedOneofToCheckValidationSemanticsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) [OneOfApi](docs/apis/tags/one_of_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) | +/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | /requestBody/postNotMoreComplexSchemaRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) [_NotApi](docs/apis/tags/_not_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) | /requestBody/postNotRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) [_NotApi](docs/apis/tags/_not_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) | /requestBody/postNulCharactersInStringsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) | @@ -256,12 +259,16 @@ HTTP request | Method | Description /requestBody/postOneofWithRequiredRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_oneof_with_required_request_body](docs/paths/request_body_post_oneof_with_required_request_body/post.md) [OneOfApi](docs/apis/tags/one_of_api.md).[post_oneof_with_required_request_body](docs/paths/request_body_post_oneof_with_required_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_oneof_with_required_request_body](docs/paths/request_body_post_oneof_with_required_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_oneof_with_required_request_body](docs/paths/request_body_post_oneof_with_required_request_body/post.md) | /requestBody/postPatternIsNotAnchoredRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_pattern_is_not_anchored_request_body](docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_pattern_is_not_anchored_request_body](docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_pattern_is_not_anchored_request_body](docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md) [PatternApi](docs/apis/tags/pattern_api.md).[post_pattern_is_not_anchored_request_body](docs/paths/request_body_post_pattern_is_not_anchored_request_body/post.md) | /requestBody/postPatternValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_pattern_validation_request_body](docs/paths/request_body_post_pattern_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_pattern_validation_request_body](docs/paths/request_body_post_pattern_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_pattern_validation_request_body](docs/paths/request_body_post_pattern_validation_request_body/post.md) [PatternApi](docs/apis/tags/pattern_api.md).[post_pattern_validation_request_body](docs/paths/request_body_post_pattern_validation_request_body/post.md) | +/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | +/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | /requestBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | +/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | /requestBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | /requestBody/postPropertiesWithEscapedCharactersRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | /requestBody/postPropertiesWithNullValuedInstancePropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) | /requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) [RefApi](docs/apis/tags/ref_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) | /requestBody/postRegexFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) | +/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | /requestBody/postRelativeJsonPointerFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) | /requestBody/postRequiredDefaultValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_required_default_validation_request_body](docs/paths/request_body_post_required_default_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_default_validation_request_body](docs/paths/request_body_post_required_default_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_default_validation_request_body](docs/paths/request_body_post_required_default_validation_request_body/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_default_validation_request_body](docs/paths/request_body_post_required_default_validation_request_body/post.md) | /requestBody/postRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | @@ -285,6 +292,7 @@ HTTP request | Method | Description /requestBody/postUriTemplateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) | /requestBody/postUuidFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) | /responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | +/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | @@ -351,11 +359,13 @@ HTTP request | Method | Description /responseBody/postMinlengthValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) [MinLengthApi](docs/apis/tags/min_length_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minlength_validation_response_body_for_content_types](docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) | /responseBody/postMinpropertiesValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) [MinPropertiesApi](docs/apis/tags/min_properties_api.md).[post_minproperties_validation_response_body_for_content_types](docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | /responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes **post** | [DependentRequiredApi](docs/apis/tags/dependent_required_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_multiple_dependents_required_response_body_for_content_types](docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | +/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types](docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types](docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types](docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types](docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) | /responseBody/postMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types](docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | /responseBody/postNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes **post** | [AllOfApi](docs/apis/tags/all_of_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_allof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) | /responseBody/postNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) [AnyOfApi](docs/apis/tags/any_of_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_anyof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) | /responseBody/postNestedItemsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_items_response_body_for_content_types](docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_items_response_body_for_content_types](docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_nested_items_response_body_for_content_types](docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_items_response_body_for_content_types](docs/paths/response_body_post_nested_items_response_body_for_content_types/post.md) | /responseBody/postNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes **post** | [OneOfApi](docs/apis/tags/one_of_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) | +/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | /responseBody/postNotMoreComplexSchemaResponseBodyForContentTypes **post** | [_NotApi](docs/apis/tags/_not_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | /responseBody/postNotResponseBodyForContentTypes **post** | [_NotApi](docs/apis/tags/_not_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) | /responseBody/postNulCharactersInStringsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) | @@ -370,12 +380,16 @@ HTTP request | Method | Description /responseBody/postOneofWithRequiredResponseBodyForContentTypes **post** | [OneOfApi](docs/apis/tags/one_of_api.md).[post_oneof_with_required_response_body_for_content_types](docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_oneof_with_required_response_body_for_content_types](docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_oneof_with_required_response_body_for_content_types](docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_oneof_with_required_response_body_for_content_types](docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md) | /responseBody/postPatternIsNotAnchoredResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_pattern_is_not_anchored_response_body_for_content_types](docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_pattern_is_not_anchored_response_body_for_content_types](docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) [PatternApi](docs/apis/tags/pattern_api.md).[post_pattern_is_not_anchored_response_body_for_content_types](docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_pattern_is_not_anchored_response_body_for_content_types](docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) | /responseBody/postPatternValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_pattern_validation_response_body_for_content_types](docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_pattern_validation_response_body_for_content_types](docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) [PatternApi](docs/apis/tags/pattern_api.md).[post_pattern_validation_response_body_for_content_types](docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_pattern_validation_response_body_for_content_types](docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) | +/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | +/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | /responseBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | /responseBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | /responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) | /responseBody/postPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | /responseBody/postPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) [RefApi](docs/apis/tags/ref_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | /responseBody/postRegexFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) | +/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | /responseBody/postRelativeJsonPointerFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) | /responseBody/postRequiredDefaultValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_default_validation_response_body_for_content_types](docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_default_validation_response_body_for_content_types](docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_required_default_validation_response_body_for_content_types](docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_default_validation_response_body_for_content_types](docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post.md) | /responseBody/postRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [RequiredApi](docs/apis/tags/required_api.md).[post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | @@ -404,6 +418,7 @@ HTTP request | Method | Description Class | Description ----- | ------------ [AdditionalpropertiesAreAllowedByDefault](docs/components/schema/additionalproperties_are_allowed_by_default.md) | +[AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties](docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [AdditionalpropertiesCanExistByItself](docs/components/schema/additionalproperties_can_exist_by_itself.md) | [AdditionalpropertiesDoesNotLookInApplicators](docs/components/schema/additionalproperties_does_not_look_in_applicators.md) | [AdditionalpropertiesWithNullValuedInstanceProperties](docs/components/schema/additionalproperties_with_null_valued_instance_properties.md) | @@ -470,11 +485,13 @@ Class | Description [MinlengthValidation](docs/components/schema/minlength_validation.md) | [MinpropertiesValidation](docs/components/schema/minproperties_validation.md) | [MultipleDependentsRequired](docs/components/schema/multiple_dependents_required.md) | +[MultipleSimultaneousPatternpropertiesAreValidated](docs/components/schema/multiple_simultaneous_patternproperties_are_validated.md) | [MultipleTypesCanBeSpecifiedInAnArray](docs/components/schema/multiple_types_can_be_specified_in_an_array.md) | [NestedAllofToCheckValidationSemantics](docs/components/schema/nested_allof_to_check_validation_semantics.md) | [NestedAnyofToCheckValidationSemantics](docs/components/schema/nested_anyof_to_check_validation_semantics.md) | [NestedItems](docs/components/schema/nested_items.md) | [NestedOneofToCheckValidationSemantics](docs/components/schema/nested_oneof_to_check_validation_semantics.md) | +[NonAsciiPatternWithAdditionalproperties](docs/components/schema/non_ascii_pattern_with_additionalproperties.md) | [_Not](docs/components/schema/_not.md) | [NotMoreComplexSchema](docs/components/schema/not_more_complex_schema.md) | [NulCharactersInStrings](docs/components/schema/nul_characters_in_strings.md) | @@ -489,12 +506,16 @@ Class | Description [OneofWithRequired](docs/components/schema/oneof_with_required.md) | [PatternIsNotAnchored](docs/components/schema/pattern_is_not_anchored.md) | [PatternValidation](docs/components/schema/pattern_validation.md) | +[PatternpropertiesValidatesPropertiesMatchingARegex](docs/components/schema/patternproperties_validates_properties_matching_a_regex.md) | +[PatternpropertiesWithNullValuedInstanceProperties](docs/components/schema/patternproperties_with_null_valued_instance_properties.md) | [PrefixitemsValidationAdjustsTheStartingIndexForItems](docs/components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md) | +[PropertiesPatternpropertiesAdditionalpropertiesInteraction](docs/components/schema/properties_patternproperties_additionalproperties_interaction.md) | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames](docs/components/schema/properties_whose_names_are_javascript_object_property_names.md) | [PropertiesWithEscapedCharacters](docs/components/schema/properties_with_escaped_characters.md) | [PropertiesWithNullValuedInstanceProperties](docs/components/schema/properties_with_null_valued_instance_properties.md) | [PropertyNamedRefThatIsNotAReference](docs/components/schema/property_named_ref_that_is_not_a_reference.md) | [RegexFormat](docs/components/schema/regex_format.md) | +[RegexesAreNotAnchoredByDefaultAndAreCaseSensitive](docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | [RelativeJsonPointerFormat](docs/components/schema/relative_json_pointer_format.md) | [RequiredDefaultValidation](docs/components/schema/required_default_validation.md) | [RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames](docs/components/schema/required_properties_whose_names_are_javascript_object_property_names.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md index 7cc28e3283f..3a160c70514 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md @@ -11,6 +11,8 @@ Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | @@ -19,5 +21,7 @@ Method | Description [**post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_with_schema_request_body**](../../paths/request_body_post_additionalproperties_with_schema_request_body/post.md) | [**post_additionalproperties_with_schema_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_request_body**](../../paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 3d2b806719a..56afc13dade 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -11,6 +11,8 @@ Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | @@ -143,6 +145,8 @@ Method | Description [**post_minproperties_validation_response_body_for_content_types**](../../paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | [**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | [**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_request_body**](../../paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types**](../../paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) | [**post_multiple_types_can_be_specified_in_an_array_request_body**](../../paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | [**post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types**](../../paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | [**post_nested_allof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | @@ -153,6 +157,8 @@ Method | Description [**post_nested_items_response_body_for_content_types**](../../paths/response_body_post_nested_items_response_body_for_content_types/post.md) | [**post_nested_oneof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) | [**post_nested_oneof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_request_body**](../../paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | @@ -181,8 +187,14 @@ Method | Description [**post_pattern_is_not_anchored_response_body_for_content_types**](../../paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) | [**post_pattern_validation_request_body**](../../paths/request_body_post_pattern_validation_request_body/post.md) | [**post_pattern_validation_response_body_for_content_types**](../../paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_request_body**](../../paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types**](../../paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body**](../../paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types**](../../paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types**](../../paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | [**post_properties_with_escaped_characters_request_body**](../../paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | @@ -193,6 +205,8 @@ Method | Description [**post_property_named_ref_that_is_not_a_reference_response_body_for_content_types**](../../paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | [**post_regex_format_request_body**](../../paths/request_body_post_regex_format_request_body/post.md) | [**post_regex_format_response_body_for_content_types**](../../paths/response_body_post_regex_format_response_body_for_content_types/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types**](../../paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | [**post_relative_json_pointer_format_request_body**](../../paths/request_body_post_relative_json_pointer_format_request_body/post.md) | [**post_relative_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) | [**post_required_default_validation_request_body**](../../paths/request_body_post_required_default_validation_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 23e280fb6b1..f2bbd4f0291 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -10,6 +10,7 @@ All URIs are relative to the selected server Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | [**post_additionalproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) | @@ -76,11 +77,13 @@ Method | Description [**post_minlength_validation_request_body**](../../paths/request_body_post_minlength_validation_request_body/post.md) | [**post_minproperties_validation_request_body**](../../paths/request_body_post_minproperties_validation_request_body/post.md) | [**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_request_body**](../../paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) | [**post_multiple_types_can_be_specified_in_an_array_request_body**](../../paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | [**post_nested_allof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | [**post_nested_anyof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.md) | [**post_nested_items_request_body**](../../paths/request_body_post_nested_items_request_body/post.md) | [**post_nested_oneof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_request_body**](../../paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | [**post_nul_characters_in_strings_request_body**](../../paths/request_body_post_nul_characters_in_strings_request_body/post.md) | @@ -95,12 +98,16 @@ Method | Description [**post_oneof_with_required_request_body**](../../paths/request_body_post_oneof_with_required_request_body/post.md) | [**post_pattern_is_not_anchored_request_body**](../../paths/request_body_post_pattern_is_not_anchored_request_body/post.md) | [**post_pattern_validation_request_body**](../../paths/request_body_post_pattern_validation_request_body/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_request_body**](../../paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body**](../../paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | [**post_properties_with_escaped_characters_request_body**](../../paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | [**post_properties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) | [**post_property_named_ref_that_is_not_a_reference_request_body**](../../paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) | [**post_regex_format_request_body**](../../paths/request_body_post_regex_format_request_body/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | [**post_relative_json_pointer_format_request_body**](../../paths/request_body_post_relative_json_pointer_format_request_body/post.md) | [**post_required_default_validation_request_body**](../../paths/request_body_post_required_default_validation_request_body/post.md) | [**post_required_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 4669423c875..e0bc16fa1ce 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -11,6 +11,8 @@ Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | @@ -143,6 +145,8 @@ Method | Description [**post_minproperties_validation_response_body_for_content_types**](../../paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | [**post_multiple_dependents_required_request_body**](../../paths/request_body_post_multiple_dependents_required_request_body/post.md) | [**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_request_body**](../../paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types**](../../paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) | [**post_multiple_types_can_be_specified_in_an_array_request_body**](../../paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post.md) | [**post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types**](../../paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | [**post_nested_allof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.md) | @@ -153,6 +157,8 @@ Method | Description [**post_nested_items_response_body_for_content_types**](../../paths/response_body_post_nested_items_response_body_for_content_types/post.md) | [**post_nested_oneof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) | [**post_nested_oneof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_request_body**](../../paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | @@ -181,8 +187,14 @@ Method | Description [**post_pattern_is_not_anchored_response_body_for_content_types**](../../paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) | [**post_pattern_validation_request_body**](../../paths/request_body_post_pattern_validation_request_body/post.md) | [**post_pattern_validation_response_body_for_content_types**](../../paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_request_body**](../../paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types**](../../paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body**](../../paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types**](../../paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types**](../../paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | [**post_properties_with_escaped_characters_request_body**](../../paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | @@ -193,6 +205,8 @@ Method | Description [**post_property_named_ref_that_is_not_a_reference_response_body_for_content_types**](../../paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | [**post_regex_format_request_body**](../../paths/request_body_post_regex_format_request_body/post.md) | [**post_regex_format_response_body_for_content_types**](../../paths/response_body_post_regex_format_response_body_for_content_types/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types**](../../paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | [**post_relative_json_pointer_format_request_body**](../../paths/request_body_post_relative_json_pointer_format_request_body/post.md) | [**post_relative_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) | [**post_required_default_validation_request_body**](../../paths/request_body_post_required_default_validation_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/pattern_properties_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/pattern_properties_api.md new file mode 100644 index 00000000000..31a41a06c16 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/pattern_properties_api.md @@ -0,0 +1,21 @@ + +unit_test_api.apis.tags.pattern_properties_api +# PatternPropertiesApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_multiple_simultaneous_patternproperties_are_validated_request_body**](../../paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types**](../../paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_request_body**](../../paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types**](../../paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types**](../../paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/properties_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/properties_api.md index c1f0fefd038..121308a9060 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/properties_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/properties_api.md @@ -11,6 +11,8 @@ Method | Description ------ | ------------- [**post_object_properties_validation_request_body**](../../paths/request_body_post_object_properties_validation_request_body/post.md) | [**post_object_properties_validation_response_body_for_content_types**](../../paths/response_body_post_object_properties_validation_response_body_for_content_types/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types**](../../paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | [**post_properties_with_escaped_characters_request_body**](../../paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index b6ddefd344f..cbbdfe9ad49 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -10,6 +10,7 @@ All URIs are relative to the selected server Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | +[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) | [**post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | @@ -76,11 +77,13 @@ Method | Description [**post_minlength_validation_response_body_for_content_types**](../../paths/response_body_post_minlength_validation_response_body_for_content_types/post.md) | [**post_minproperties_validation_response_body_for_content_types**](../../paths/response_body_post_minproperties_validation_response_body_for_content_types/post.md) | [**post_multiple_dependents_required_response_body_for_content_types**](../../paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post.md) | +[**post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types**](../../paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md) | [**post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types**](../../paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post.md) | [**post_nested_allof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.md) | [**post_nested_anyof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.md) | [**post_nested_items_response_body_for_content_types**](../../paths/response_body_post_nested_items_response_body_for_content_types/post.md) | [**post_nested_oneof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) | +[**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | [**post_not_response_body_for_content_types**](../../paths/response_body_post_not_response_body_for_content_types/post.md) | [**post_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) | @@ -95,12 +98,16 @@ Method | Description [**post_oneof_with_required_response_body_for_content_types**](../../paths/response_body_post_oneof_with_required_response_body_for_content_types/post.md) | [**post_pattern_is_not_anchored_response_body_for_content_types**](../../paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.md) | [**post_pattern_validation_response_body_for_content_types**](../../paths/response_body_post_pattern_validation_response_body_for_content_types/post.md) | +[**post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types**](../../paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | +[**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types**](../../paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +[**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types**](../../paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | [**post_properties_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) | [**post_properties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_property_named_ref_that_is_not_a_reference_response_body_for_content_types**](../../paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | [**post_regex_format_response_body_for_content_types**](../../paths/response_body_post_regex_format_response_body_for_content_types/post.md) | +[**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types**](../../paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | [**post_relative_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) | [**post_required_default_validation_response_body_for_content_types**](../../paths/response_body_post_required_default_validation_response_body_for_content_types/post.md) | [**post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types**](../../paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md new file mode 100644 index 00000000000..f593dfb64e9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md @@ -0,0 +1,43 @@ +# AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties +unit_test_api.components.schema.additionalproperties_being_false_does_not_allow_other_properties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | + +## AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput +``` +type: typing.TypedDict +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] + +## AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] +**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] +**bar** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | a constructor + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_simultaneous_patternproperties_are_validated.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_simultaneous_patternproperties_are_validated.md new file mode 100644 index 00000000000..b42dd4f0758 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/multiple_simultaneous_patternproperties_are_validated.md @@ -0,0 +1,12 @@ +# MultipleSimultaneousPatternpropertiesAreValidated +unit_test_api.components.schema.multiple_simultaneous_patternproperties_are_validated +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/non_ascii_pattern_with_additionalproperties.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/non_ascii_pattern_with_additionalproperties.md new file mode 100644 index 00000000000..f0f000fa7b2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/non_ascii_pattern_with_additionalproperties.md @@ -0,0 +1,32 @@ +# NonAsciiPatternWithAdditionalproperties +unit_test_api.components.schema.non_ascii_pattern_with_additionalproperties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[NonAsciiPatternWithAdditionalpropertiesDictInput](#nonasciipatternwithadditionalpropertiesdictinput), [NonAsciiPatternWithAdditionalpropertiesDict](#nonasciipatternwithadditionalpropertiesdict) | [NonAsciiPatternWithAdditionalpropertiesDict](#nonasciipatternwithadditionalpropertiesdict) | + +## NonAsciiPatternWithAdditionalpropertiesDictInput +``` +type: typing.Mapping (empty) +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## NonAsciiPatternWithAdditionalpropertiesDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [NonAsciiPatternWithAdditionalpropertiesDictInput](#nonasciipatternwithadditionalpropertiesdictinput), [NonAsciiPatternWithAdditionalpropertiesDict](#nonasciipatternwithadditionalpropertiesdict) | [NonAsciiPatternWithAdditionalpropertiesDict](#nonasciipatternwithadditionalpropertiesdict) | a constructor + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_validates_properties_matching_a_regex.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_validates_properties_matching_a_regex.md new file mode 100644 index 00000000000..5ab5975f0cf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_validates_properties_matching_a_regex.md @@ -0,0 +1,12 @@ +# PatternpropertiesValidatesPropertiesMatchingARegex +unit_test_api.components.schema.patternproperties_validates_properties_matching_a_regex +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_with_null_valued_instance_properties.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_with_null_valued_instance_properties.md new file mode 100644 index 00000000000..58e994f1d56 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/patternproperties_with_null_valued_instance_properties.md @@ -0,0 +1,12 @@ +# PatternpropertiesWithNullValuedInstanceProperties +unit_test_api.components.schema.patternproperties_with_null_valued_instance_properties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/properties_patternproperties_additionalproperties_interaction.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/properties_patternproperties_additionalproperties_interaction.md new file mode 100644 index 00000000000..1026ad928fd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/properties_patternproperties_additionalproperties_interaction.md @@ -0,0 +1,79 @@ +# PropertiesPatternpropertiesAdditionalpropertiesInteraction +unit_test_api.components.schema.properties_patternproperties_additionalproperties_interaction +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](#propertiespatternpropertiesadditionalpropertiesinteractiondict) | + +## PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput +``` +type: typing.Mapping[ + str, + typing.Union[ + typing.Union[ + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...], + ], + typing.Union[ + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...], + ], + int, + ] +] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**foo** | list, tuple | | [optional] +**bar** | list, tuple | | [optional] +**any_string_name** | int | any string name can be used but the value must be the correct type | [optional] + +## PropertiesPatternpropertiesAdditionalpropertiesInteractionDict +``` +base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | list, tuple, schemas.Unset | | [optional] +**bar** | list, tuple, schemas.Unset | | [optional] +**kwargs** | int | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | tuple, schemas.Unset | | [optional] +**bar** | tuple, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](#propertiespatternpropertiesadditionalpropertiesinteractiondict) | a constructor +get_additional_property_ | str | int, schemas.Unset | provides type safety for additional properties + +# Foo +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +list, tuple | tuple | + +# Bar +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +list, tuple | tuple | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md new file mode 100644 index 00000000000..a151897b321 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md @@ -0,0 +1,12 @@ +# RegexesAreNotAnchoredByDefaultAndAreCaseSensitive +unit_test_api.components.schema.regexes_are_not_anchored_by_default_and_are_case_sensitive +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md new file mode 100644 index 00000000000..7f7731d2c89 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md @@ -0,0 +1,119 @@ +unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [AdditionalPropertiesApi](../../apis/tags/additional_properties_api.md) | This api is only for tag=additionalProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody | This api is only for path=/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate({ + "foo": None, + "bar": None, + }) + try: + api_response = api_instance.post_additionalproperties_being_false_does_not_allow_other_properties_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_additionalproperties_being_false_does_not_allow_other_properties_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to AdditionalPropertiesApi API]](../../apis/tags/additional_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..75a0e70c42c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md new file mode 100644 index 00000000000..3c9306de44b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_multiple_simultaneous_patternproperties_are_validated_request_body | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_multiple_simultaneous_patternproperties_are_validated_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_multiple_simultaneous_patternproperties_are_validated_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_multiple_simultaneous_patternproperties_are_validated_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody | This api is only for path=/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated**](../../components/schema/multiple_simultaneous_patternproperties_are_validated.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example passing only required values which don't have defaults set + body = multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated.validate(None) + try: + api_response = api_instance.post_multiple_simultaneous_patternproperties_are_validated_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_multiple_simultaneous_patternproperties_are_validated_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..32a9177a8de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated**](../../../../../../components/schema/multiple_simultaneous_patternproperties_are_validated.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md new file mode 100644 index 00000000000..0a61c1e24d5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_non_ascii_pattern_with_additionalproperties_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_non_ascii_pattern_with_additionalproperties_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_non_ascii_pattern_with_additionalproperties_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_non_ascii_pattern_with_additionalproperties_request_body | [AdditionalPropertiesApi](../../apis/tags/additional_properties_api.md) | This api is only for tag=additionalProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody | This api is only for path=/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties**](../../components/schema/non_ascii_pattern_with_additionalproperties.md) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties.validate({}) + try: + api_response = api_instance.post_non_ascii_pattern_with_additionalproperties_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_non_ascii_pattern_with_additionalproperties_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to AdditionalPropertiesApi API]](../../apis/tags/additional_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..8a54268a594 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties**](../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md new file mode 100644 index 00000000000..e92352aab81 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_patternproperties_validates_properties_matching_a_regex_request_body | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_patternproperties_validates_properties_matching_a_regex_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_patternproperties_validates_properties_matching_a_regex_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_patternproperties_validates_properties_matching_a_regex_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody | This api is only for path=/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex**](../../components/schema/patternproperties_validates_properties_matching_a_regex.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example passing only required values which don't have defaults set + body = patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex.validate(None) + try: + api_response = api_instance.post_patternproperties_validates_properties_matching_a_regex_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_patternproperties_validates_properties_matching_a_regex_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..8103e3699d4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex**](../../../../../../components/schema/patternproperties_validates_properties_matching_a_regex.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md new file mode 100644 index 00000000000..ae81937af3b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_patternproperties_with_null_valued_instance_properties_request_body | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_patternproperties_with_null_valued_instance_properties_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_patternproperties_with_null_valued_instance_properties_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_patternproperties_with_null_valued_instance_properties_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody | This api is only for path=/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties**](../../components/schema/patternproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example passing only required values which don't have defaults set + body = patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties.validate(None) + try: + api_response = api_instance.post_patternproperties_with_null_valued_instance_properties_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_patternproperties_with_null_valued_instance_properties_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..60f596a2999 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties**](../../../../../../components/schema/patternproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md new file mode 100644 index 00000000000..a324d3310e7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md @@ -0,0 +1,119 @@ +unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_properties_patternproperties_additionalproperties_interaction_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_properties_patternproperties_additionalproperties_interaction_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_properties_patternproperties_additionalproperties_interaction_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_properties_patternproperties_additionalproperties_interaction_request_body | [PropertiesApi](../../apis/tags/properties_api.md) | This api is only for tag=properties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody | This api is only for path=/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction**](../../components/schema/properties_patternproperties_additionalproperties_interaction.md) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate({ + "foo": None, + "bar": None, + }) + try: + api_response = api_instance.post_properties_patternproperties_additionalproperties_interaction_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_properties_patternproperties_additionalproperties_interaction_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to PropertiesApi API]](../../apis/tags/properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..fd109b28830 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction**](../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md new file mode 100644 index 00000000000..443aff87cf9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody | This api is only for path=/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive**](../../components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example passing only required values which don't have defaults set + body = regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.validate(None) + try: + api_response = api_instance.post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..143792dddfa --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive**](../../../../../../components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md new file mode 100644 index 00000000000..e38ce06cc5f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [AdditionalPropertiesApi](../../apis/tags/additional_properties_api.md) | This api is only for tag=additionalProperties | +| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes | This api is only for path=/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to AdditionalPropertiesApi API]](../../apis/tags/additional_properties_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..c696b99c741 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md new file mode 100644 index 00000000000..b3174b68b8a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes | This api is only for path=/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated**](../../components/schema/multiple_simultaneous_patternproperties_are_validated.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..2453e3d7c03 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated**](../../../../../../../../components/schema/multiple_simultaneous_patternproperties_are_validated.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md new file mode 100644 index 00000000000..de2076f5028 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types | [AdditionalPropertiesApi](../../apis/tags/additional_properties_api.md) | This api is only for tag=additionalProperties | +| post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes | This api is only for path=/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties**](../../components/schema/non_ascii_pattern_with_additionalproperties.md) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to AdditionalPropertiesApi API]](../../apis/tags/additional_properties_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..199677983ed --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties**](../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md new file mode 100644 index 00000000000..161696cecab --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes | This api is only for path=/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex**](../../components/schema/patternproperties_validates_properties_matching_a_regex.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..366c750e013 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex**](../../../../../../../../components/schema/patternproperties_validates_properties_matching_a_regex.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md new file mode 100644 index 00000000000..0f3c2d370cf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes | This api is only for path=/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties**](../../components/schema/patternproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..1587b9c7351 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties**](../../../../../../../../components/schema/patternproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md new file mode 100644 index 00000000000..9562a48a402 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types | [PropertiesApi](../../apis/tags/properties_api.md) | This api is only for tag=properties | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes | This api is only for path=/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction**](../../components/schema/properties_patternproperties_additionalproperties_interaction.md) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to PropertiesApi API]](../../apis/tags/properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..a40e51fa916 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction**](../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md new file mode 100644 index 00000000000..93bda35d212 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types | [PatternPropertiesApi](../../apis/tags/pattern_properties_api.md) | This api is only for tag=patternProperties | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes | This api is only for path=/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive**](../../components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import pattern_properties_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = pattern_properties_api.PatternPropertiesApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PatternPropertiesApi->post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PatternPropertiesApi API]](../../apis/tags/pattern_properties_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..390ea7364e4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive**](../../../../../../../../components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 7b3d11e5449..189d9666e67 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -2,6 +2,7 @@ import typing_extensions from unit_test_api.apis.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body import RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody +from unit_test_api.apis.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body import RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body import RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body import RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body import RequestBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody @@ -68,11 +69,13 @@ from unit_test_api.apis.paths.request_body_post_minlength_validation_request_body import RequestBodyPostMinlengthValidationRequestBody from unit_test_api.apis.paths.request_body_post_minproperties_validation_request_body import RequestBodyPostMinpropertiesValidationRequestBody from unit_test_api.apis.paths.request_body_post_multiple_dependents_required_request_body import RequestBodyPostMultipleDependentsRequiredRequestBody +from unit_test_api.apis.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body import RequestBodyPostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody from unit_test_api.apis.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body import RequestBodyPostMultipleTypesCanBeSpecifiedInAnArrayRequestBody from unit_test_api.apis.paths.request_body_post_nested_allof_to_check_validation_semantics_request_body import RequestBodyPostNestedAllofToCheckValidationSemanticsRequestBody from unit_test_api.apis.paths.request_body_post_nested_anyof_to_check_validation_semantics_request_body import RequestBodyPostNestedAnyofToCheckValidationSemanticsRequestBody from unit_test_api.apis.paths.request_body_post_nested_items_request_body import RequestBodyPostNestedItemsRequestBody from unit_test_api.apis.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body import RequestBodyPostNestedOneofToCheckValidationSemanticsRequestBody +from unit_test_api.apis.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body import RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.apis.paths.request_body_post_not_more_complex_schema_request_body import RequestBodyPostNotMoreComplexSchemaRequestBody from unit_test_api.apis.paths.request_body_post_not_request_body import RequestBodyPostNotRequestBody from unit_test_api.apis.paths.request_body_post_nul_characters_in_strings_request_body import RequestBodyPostNulCharactersInStringsRequestBody @@ -87,12 +90,16 @@ from unit_test_api.apis.paths.request_body_post_oneof_with_required_request_body import RequestBodyPostOneofWithRequiredRequestBody from unit_test_api.apis.paths.request_body_post_pattern_is_not_anchored_request_body import RequestBodyPostPatternIsNotAnchoredRequestBody from unit_test_api.apis.paths.request_body_post_pattern_validation_request_body import RequestBodyPostPatternValidationRequestBody +from unit_test_api.apis.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body import RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody +from unit_test_api.apis.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body import RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.apis.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body import RequestBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody +from unit_test_api.apis.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body import RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.apis.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body import RequestBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.apis.paths.request_body_post_properties_with_escaped_characters_request_body import RequestBodyPostPropertiesWithEscapedCharactersRequestBody from unit_test_api.apis.paths.request_body_post_properties_with_null_valued_instance_properties_request_body import RequestBodyPostPropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.apis.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body import RequestBodyPostPropertyNamedRefThatIsNotAReferenceRequestBody from unit_test_api.apis.paths.request_body_post_regex_format_request_body import RequestBodyPostRegexFormatRequestBody +from unit_test_api.apis.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body import RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody from unit_test_api.apis.paths.request_body_post_relative_json_pointer_format_request_body import RequestBodyPostRelativeJsonPointerFormatRequestBody from unit_test_api.apis.paths.request_body_post_required_default_validation_request_body import RequestBodyPostRequiredDefaultValidationRequestBody from unit_test_api.apis.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body import RequestBodyPostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody @@ -116,6 +123,7 @@ from unit_test_api.apis.paths.request_body_post_uri_template_format_request_body import RequestBodyPostUriTemplateFormatRequestBody from unit_test_api.apis.paths.request_body_post_uuid_format_request_body import RequestBodyPostUuidFormatRequestBody from unit_test_api.apis.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes @@ -182,11 +190,13 @@ from unit_test_api.apis.paths.response_body_post_minlength_validation_response_body_for_content_types import ResponseBodyPostMinlengthValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_minproperties_validation_response_body_for_content_types import ResponseBodyPostMinpropertiesValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_multiple_dependents_required_response_body_for_content_types import ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types import ResponseBodyPostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types import ResponseBodyPostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types import ResponseBodyPostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types import ResponseBodyPostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nested_items_response_body_for_content_types import ResponseBodyPostNestedItemsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types import ResponseBodyPostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types import ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_not_more_complex_schema_response_body_for_content_types import ResponseBodyPostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_not_response_body_for_content_types import ResponseBodyPostNotResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types import ResponseBodyPostNulCharactersInStringsResponseBodyForContentTypes @@ -201,12 +211,16 @@ from unit_test_api.apis.paths.response_body_post_oneof_with_required_response_body_for_content_types import ResponseBodyPostOneofWithRequiredResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types import ResponseBodyPostPatternIsNotAnchoredResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_pattern_validation_response_body_for_content_types import ResponseBodyPostPatternValidationResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types import ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types import ResponseBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types import ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types import ResponseBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types import ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types import ResponseBodyPostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_regex_format_response_body_for_content_types import ResponseBodyPostRegexFormatResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types import ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types import ResponseBodyPostRelativeJsonPointerFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_required_default_validation_response_body_for_content_types import ResponseBodyPostRequiredDefaultValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types import ResponseBodyPostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes @@ -234,6 +248,7 @@ 'PathToApi', { "/requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody], + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody], "/requestBody/postAdditionalpropertiesCanExistByItselfRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody], "/requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody], "/requestBody/postAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody], @@ -300,11 +315,13 @@ "/requestBody/postMinlengthValidationRequestBody": typing.Type[RequestBodyPostMinlengthValidationRequestBody], "/requestBody/postMinpropertiesValidationRequestBody": typing.Type[RequestBodyPostMinpropertiesValidationRequestBody], "/requestBody/postMultipleDependentsRequiredRequestBody": typing.Type[RequestBodyPostMultipleDependentsRequiredRequestBody], + "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody": typing.Type[RequestBodyPostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody], "/requestBody/postMultipleTypesCanBeSpecifiedInAnArrayRequestBody": typing.Type[RequestBodyPostMultipleTypesCanBeSpecifiedInAnArrayRequestBody], "/requestBody/postNestedAllofToCheckValidationSemanticsRequestBody": typing.Type[RequestBodyPostNestedAllofToCheckValidationSemanticsRequestBody], "/requestBody/postNestedAnyofToCheckValidationSemanticsRequestBody": typing.Type[RequestBodyPostNestedAnyofToCheckValidationSemanticsRequestBody], "/requestBody/postNestedItemsRequestBody": typing.Type[RequestBodyPostNestedItemsRequestBody], "/requestBody/postNestedOneofToCheckValidationSemanticsRequestBody": typing.Type[RequestBodyPostNestedOneofToCheckValidationSemanticsRequestBody], + "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody": typing.Type[RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody], "/requestBody/postNotMoreComplexSchemaRequestBody": typing.Type[RequestBodyPostNotMoreComplexSchemaRequestBody], "/requestBody/postNotRequestBody": typing.Type[RequestBodyPostNotRequestBody], "/requestBody/postNulCharactersInStringsRequestBody": typing.Type[RequestBodyPostNulCharactersInStringsRequestBody], @@ -319,12 +336,16 @@ "/requestBody/postOneofWithRequiredRequestBody": typing.Type[RequestBodyPostOneofWithRequiredRequestBody], "/requestBody/postPatternIsNotAnchoredRequestBody": typing.Type[RequestBodyPostPatternIsNotAnchoredRequestBody], "/requestBody/postPatternValidationRequestBody": typing.Type[RequestBodyPostPatternValidationRequestBody], + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody": typing.Type[RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody], + "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody], "/requestBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody": typing.Type[RequestBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody], + "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody": typing.Type[RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody], "/requestBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody": typing.Type[RequestBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody], "/requestBody/postPropertiesWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostPropertiesWithEscapedCharactersRequestBody], "/requestBody/postPropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostPropertiesWithNullValuedInstancePropertiesRequestBody], "/requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody": typing.Type[RequestBodyPostPropertyNamedRefThatIsNotAReferenceRequestBody], "/requestBody/postRegexFormatRequestBody": typing.Type[RequestBodyPostRegexFormatRequestBody], + "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody": typing.Type[RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody], "/requestBody/postRelativeJsonPointerFormatRequestBody": typing.Type[RequestBodyPostRelativeJsonPointerFormatRequestBody], "/requestBody/postRequiredDefaultValidationRequestBody": typing.Type[RequestBodyPostRequiredDefaultValidationRequestBody], "/requestBody/postRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody": typing.Type[RequestBodyPostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody], @@ -348,6 +369,7 @@ "/requestBody/postUriTemplateFormatRequestBody": typing.Type[RequestBodyPostUriTemplateFormatRequestBody], "/requestBody/postUuidFormatRequestBody": typing.Type[RequestBodyPostUuidFormatRequestBody], "/responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes], + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], @@ -414,11 +436,13 @@ "/responseBody/postMinlengthValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinlengthValidationResponseBodyForContentTypes], "/responseBody/postMinpropertiesValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostMinpropertiesValidationResponseBodyForContentTypes], "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes": typing.Type[ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes], + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes": typing.Type[ResponseBodyPostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes], "/responseBody/postMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes": typing.Type[ResponseBodyPostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes], "/responseBody/postNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes], "/responseBody/postNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes], "/responseBody/postNestedItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedItemsResponseBodyForContentTypes], "/responseBody/postNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes], + "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes], "/responseBody/postNotMoreComplexSchemaResponseBodyForContentTypes": typing.Type[ResponseBodyPostNotMoreComplexSchemaResponseBodyForContentTypes], "/responseBody/postNotResponseBodyForContentTypes": typing.Type[ResponseBodyPostNotResponseBodyForContentTypes], "/responseBody/postNulCharactersInStringsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNulCharactersInStringsResponseBodyForContentTypes], @@ -433,12 +457,16 @@ "/responseBody/postOneofWithRequiredResponseBodyForContentTypes": typing.Type[ResponseBodyPostOneofWithRequiredResponseBodyForContentTypes], "/responseBody/postPatternIsNotAnchoredResponseBodyForContentTypes": typing.Type[ResponseBodyPostPatternIsNotAnchoredResponseBodyForContentTypes], "/responseBody/postPatternValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostPatternValidationResponseBodyForContentTypes], + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes": typing.Type[ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes], + "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], "/responseBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes], + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes], "/responseBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes], "/responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes], "/responseBody/postPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], "/responseBody/postPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes], "/responseBody/postRegexFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostRegexFormatResponseBodyForContentTypes], + "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes": typing.Type[ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes], "/responseBody/postRelativeJsonPointerFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostRelativeJsonPointerFormatResponseBodyForContentTypes], "/responseBody/postRequiredDefaultValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostRequiredDefaultValidationResponseBodyForContentTypes], "/responseBody/postRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes": typing.Type[ResponseBodyPostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes], @@ -467,6 +495,7 @@ path_to_api = PathToApi( { "/requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody": RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody, + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody": RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, "/requestBody/postAdditionalpropertiesCanExistByItselfRequestBody": RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody, "/requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody": RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, "/requestBody/postAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, @@ -533,11 +562,13 @@ "/requestBody/postMinlengthValidationRequestBody": RequestBodyPostMinlengthValidationRequestBody, "/requestBody/postMinpropertiesValidationRequestBody": RequestBodyPostMinpropertiesValidationRequestBody, "/requestBody/postMultipleDependentsRequiredRequestBody": RequestBodyPostMultipleDependentsRequiredRequestBody, + "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody": RequestBodyPostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, "/requestBody/postMultipleTypesCanBeSpecifiedInAnArrayRequestBody": RequestBodyPostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, "/requestBody/postNestedAllofToCheckValidationSemanticsRequestBody": RequestBodyPostNestedAllofToCheckValidationSemanticsRequestBody, "/requestBody/postNestedAnyofToCheckValidationSemanticsRequestBody": RequestBodyPostNestedAnyofToCheckValidationSemanticsRequestBody, "/requestBody/postNestedItemsRequestBody": RequestBodyPostNestedItemsRequestBody, "/requestBody/postNestedOneofToCheckValidationSemanticsRequestBody": RequestBodyPostNestedOneofToCheckValidationSemanticsRequestBody, + "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody": RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody, "/requestBody/postNotMoreComplexSchemaRequestBody": RequestBodyPostNotMoreComplexSchemaRequestBody, "/requestBody/postNotRequestBody": RequestBodyPostNotRequestBody, "/requestBody/postNulCharactersInStringsRequestBody": RequestBodyPostNulCharactersInStringsRequestBody, @@ -552,12 +583,16 @@ "/requestBody/postOneofWithRequiredRequestBody": RequestBodyPostOneofWithRequiredRequestBody, "/requestBody/postPatternIsNotAnchoredRequestBody": RequestBodyPostPatternIsNotAnchoredRequestBody, "/requestBody/postPatternValidationRequestBody": RequestBodyPostPatternValidationRequestBody, + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody": RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, + "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody, "/requestBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody": RequestBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, + "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody": RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, "/requestBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody": RequestBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, "/requestBody/postPropertiesWithEscapedCharactersRequestBody": RequestBodyPostPropertiesWithEscapedCharactersRequestBody, "/requestBody/postPropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostPropertiesWithNullValuedInstancePropertiesRequestBody, "/requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody": RequestBodyPostPropertyNamedRefThatIsNotAReferenceRequestBody, "/requestBody/postRegexFormatRequestBody": RequestBodyPostRegexFormatRequestBody, + "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody": RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, "/requestBody/postRelativeJsonPointerFormatRequestBody": RequestBodyPostRelativeJsonPointerFormatRequestBody, "/requestBody/postRequiredDefaultValidationRequestBody": RequestBodyPostRequiredDefaultValidationRequestBody, "/requestBody/postRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody": RequestBodyPostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, @@ -581,6 +616,7 @@ "/requestBody/postUriTemplateFormatRequestBody": RequestBodyPostUriTemplateFormatRequestBody, "/requestBody/postUuidFormatRequestBody": RequestBodyPostUuidFormatRequestBody, "/responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, @@ -647,11 +683,13 @@ "/responseBody/postMinlengthValidationResponseBodyForContentTypes": ResponseBodyPostMinlengthValidationResponseBodyForContentTypes, "/responseBody/postMinpropertiesValidationResponseBodyForContentTypes": ResponseBodyPostMinpropertiesValidationResponseBodyForContentTypes, "/responseBody/postMultipleDependentsRequiredResponseBodyForContentTypes": ResponseBodyPostMultipleDependentsRequiredResponseBodyForContentTypes, + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes": ResponseBodyPostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, "/responseBody/postMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes": ResponseBodyPostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, "/responseBody/postNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes": ResponseBodyPostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, "/responseBody/postNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes": ResponseBodyPostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes, "/responseBody/postNestedItemsResponseBodyForContentTypes": ResponseBodyPostNestedItemsResponseBodyForContentTypes, "/responseBody/postNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes": ResponseBodyPostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes, + "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes": ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, "/responseBody/postNotMoreComplexSchemaResponseBodyForContentTypes": ResponseBodyPostNotMoreComplexSchemaResponseBodyForContentTypes, "/responseBody/postNotResponseBodyForContentTypes": ResponseBodyPostNotResponseBodyForContentTypes, "/responseBody/postNulCharactersInStringsResponseBodyForContentTypes": ResponseBodyPostNulCharactersInStringsResponseBodyForContentTypes, @@ -666,12 +704,16 @@ "/responseBody/postOneofWithRequiredResponseBodyForContentTypes": ResponseBodyPostOneofWithRequiredResponseBodyForContentTypes, "/responseBody/postPatternIsNotAnchoredResponseBodyForContentTypes": ResponseBodyPostPatternIsNotAnchoredResponseBodyForContentTypes, "/responseBody/postPatternValidationResponseBodyForContentTypes": ResponseBodyPostPatternValidationResponseBodyForContentTypes, + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes": ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes, + "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, "/responseBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes": ResponseBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes": ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes, "/responseBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes": ResponseBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, "/responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes, "/responseBody/postPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, "/responseBody/postPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes": ResponseBodyPostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes, "/responseBody/postRegexFormatResponseBodyForContentTypes": ResponseBodyPostRegexFormatResponseBodyForContentTypes, + "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes": ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, "/responseBody/postRelativeJsonPointerFormatResponseBodyForContentTypes": ResponseBodyPostRelativeJsonPointerFormatResponseBodyForContentTypes, "/responseBody/postRequiredDefaultValidationResponseBodyForContentTypes": ResponseBodyPostRequiredDefaultValidationResponseBodyForContentTypes, "/responseBody/postRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes": ResponseBodyPostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py new file mode 100644 index 00000000000..a54c87585c7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import ApiForPost + + +class RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py new file mode 100644 index 00000000000..905fe7b5d0b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import ApiForPost + + +class RequestBodyPostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py new file mode 100644 index 00000000000..55ebb28d8cd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import ApiForPost + + +class RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py new file mode 100644 index 00000000000..0d9f3bbf8b8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.operation import ApiForPost + + +class RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py new file mode 100644 index 00000000000..ce47e1801a8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.operation import ApiForPost + + +class RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py new file mode 100644 index 00000000000..470e7fada5f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.operation import ApiForPost + + +class RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py new file mode 100644 index 00000000000..a37f67f180b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import ApiForPost + + +class RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py new file mode 100644 index 00000000000..685b80267a1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py new file mode 100644 index 00000000000..508948bc493 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py new file mode 100644 index 00000000000..c4810e4928f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py new file mode 100644 index 00000000000..6e6e37cc824 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py new file mode 100644 index 00000000000..be774fd9706 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py new file mode 100644 index 00000000000..1a2711d79ad --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py new file mode 100644 index 00000000000..7d6a2e30f40 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 9a1ef13c6ea..3ef80e2b66e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -33,6 +33,7 @@ from unit_test_api.apis.tags.const_api import ConstApi from unit_test_api.apis.tags.enum_api import EnumApi from unit_test_api.apis.tags.max_items_api import MaxItemsApi +from unit_test_api.apis.tags.pattern_properties_api import PatternPropertiesApi from unit_test_api.apis.tags.dependent_schemas_api import DependentSchemasApi TagToApi = typing.TypedDict( @@ -70,6 +71,7 @@ "const": typing.Type[ConstApi], "enum": typing.Type[EnumApi], "maxItems": typing.Type[MaxItemsApi], + "patternProperties": typing.Type[PatternPropertiesApi], "dependentSchemas": typing.Type[DependentSchemasApi], } ) @@ -108,6 +110,7 @@ "const": ConstApi, "enum": EnumApi, "maxItems": MaxItemsApi, + "patternProperties": PatternPropertiesApi, "dependentSchemas": DependentSchemasApi, } ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py index d8904231f20..86e20969871 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py @@ -6,26 +6,34 @@ from unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.operation import PostAdditionalpropertiesCanExistByItselfRequestBody from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody +from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.post.operation import PostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_with_schema_request_body.post.operation import PostAdditionalpropertiesWithSchemaRequestBody +from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body.post.operation import PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody -from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody +from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody class AdditionalPropertiesApi( PostAdditionalpropertiesCanExistByItselfRequestBody, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, + PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, + PostAdditionalpropertiesAreAllowedByDefaultRequestBody, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes, PostAdditionalpropertiesWithSchemaRequestBody, + PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, - PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, - PostAdditionalpropertiesAreAllowedByDefaultRequestBody, + PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, ): """NOTE: This class is auto generated by OpenAPI JSON Schema Generator diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index fc6f44d2874..c8b30600558 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -28,6 +28,7 @@ from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody +from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody @@ -64,6 +65,7 @@ from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody +from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -82,6 +84,7 @@ from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_pattern_validation_request_body.post.operation import PostPatternValidationRequestBody +from unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.operation import PostMaxlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxitems_validation_request_body.post.operation import PostMaxitemsValidationRequestBody @@ -109,11 +112,13 @@ from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody +from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.operation import PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.operation import PostMinpropertiesValidationRequestBody +from unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody @@ -126,6 +131,7 @@ from unit_test_api.paths.response_body_post_ipv4_format_response_body_for_content_types.post.operation import PostIpv4FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.post.operation import PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minproperties_validation_response_body_for_content_types.post.operation import PostMinpropertiesValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.response_body_post_boolean_type_matches_booleans_response_body_for_content_types.post.operation import PostBooleanTypeMatchesBooleansResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.post.operation import PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxlength_validation_request_body.post.operation import PostMaxlengthValidationRequestBody @@ -142,9 +148,11 @@ from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody +from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody @@ -157,6 +165,7 @@ from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody @@ -167,6 +176,7 @@ from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody +from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes @@ -174,10 +184,12 @@ from unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.operation import PostNotResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.operation import PostMinlengthValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody @@ -187,6 +199,7 @@ from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody @@ -214,6 +227,7 @@ from unit_test_api.paths.response_body_post_required_default_validation_response_body_for_content_types.post.operation import PostRequiredDefaultValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_iri_reference_format_response_body_for_content_types.post.operation import PostIriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody @@ -259,6 +273,7 @@ class ContentTypeJsonApi( PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, PostArrayTypeMatchesArraysRequestBody, PostUriReferenceFormatResponseBodyForContentTypes, PostConstNulCharactersInStringsRequestBody, @@ -295,6 +310,7 @@ class ContentTypeJsonApi( PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, PostMultipleDependentsRequiredRequestBody, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -313,6 +329,7 @@ class ContentTypeJsonApi( PostSimpleEnumValidationRequestBody, PostConstNulCharactersInStringsResponseBodyForContentTypes, PostPatternValidationRequestBody, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes, PostMaxlengthValidationResponseBodyForContentTypes, PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, PostMaxitemsValidationRequestBody, @@ -340,11 +357,13 @@ class ContentTypeJsonApi( PostUuidFormatResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, PostContainsKeywordValidationRequestBody, + PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes, PostMinpropertiesValidationRequestBody, + PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes, PostJsonPointerFormatRequestBody, PostAnyofComplexTypesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, @@ -357,6 +376,7 @@ class ContentTypeJsonApi( PostIpv4FormatResponseBodyForContentTypes, PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes, PostMinpropertiesValidationResponseBodyForContentTypes, + PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody, PostBooleanTypeMatchesBooleansResponseBodyForContentTypes, PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes, PostMaxlengthValidationRequestBody, @@ -373,9 +393,11 @@ class ContentTypeJsonApi( PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, + PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, PostTimeFormatRequestBody, @@ -388,6 +410,7 @@ class ContentTypeJsonApi( PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, + PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostMincontainsWithoutContainsIsIgnoredRequestBody, @@ -398,6 +421,7 @@ class ContentTypeJsonApi( PostOneofWithBaseSchemaResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, + PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostPatternIsNotAnchoredResponseBodyForContentTypes, @@ -405,10 +429,12 @@ class ContentTypeJsonApi( PostNotResponseBodyForContentTypes, PostRequiredWithEscapedCharactersRequestBody, PostMinlengthValidationResponseBodyForContentTypes, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, PostDependentSchemasSingleDependencyResponseBodyForContentTypes, + PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, @@ -418,6 +444,7 @@ class ContentTypeJsonApi( PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, PostItemsWithNullInstanceElementsRequestBody, PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, @@ -445,6 +472,7 @@ class ContentTypeJsonApi( PostRequiredDefaultValidationResponseBodyForContentTypes, PostIriReferenceFormatResponseBodyForContentTypes, PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, + PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostRequiredValidationResponseBodyForContentTypes, PostUriTemplateFormatRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 0fed4f7ac84..f4329485c06 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -8,6 +8,7 @@ from unit_test_api.paths.request_body_post_properties_with_null_valued_instance_properties_request_body.post.operation import PostPropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.request_body_post_not_request_body.post.operation import PostNotRequestBody from unit_test_api.paths.request_body_post_uniqueitems_false_with_an_array_of_items_request_body.post.operation import PostUniqueitemsFalseWithAnArrayOfItemsRequestBody +from unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.request_body_post_date_format_request_body.post.operation import PostDateFormatRequestBody from unit_test_api.paths.request_body_post_allof_with_the_last_empty_schema_request_body.post.operation import PostAllofWithTheLastEmptySchemaRequestBody from unit_test_api.paths.request_body_post_uuid_format_request_body.post.operation import PostUuidFormatRequestBody @@ -20,6 +21,7 @@ from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody +from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody @@ -46,6 +48,7 @@ from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody from unit_test_api.paths.request_body_post_allof_with_base_schema_request_body.post.operation import PostAllofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody +from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody @@ -62,10 +65,13 @@ from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody +from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody +from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody +from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody @@ -99,6 +105,7 @@ from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody +from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.operation import PostMaxproperties0MeansTheObjectIsEmptyRequestBody from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody @@ -125,6 +132,7 @@ class OperationRequestBodyApi( PostPropertiesWithNullValuedInstancePropertiesRequestBody, PostNotRequestBody, PostUniqueitemsFalseWithAnArrayOfItemsRequestBody, + PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody, PostDateFormatRequestBody, PostAllofWithTheLastEmptySchemaRequestBody, PostUuidFormatRequestBody, @@ -137,6 +145,7 @@ class OperationRequestBodyApi( PostContainsWithNullInstanceElementsRequestBody, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, PostArrayTypeMatchesArraysRequestBody, PostMinitemsValidationRequestBody, PostFloatDivisionInfRequestBody, @@ -163,6 +172,7 @@ class OperationRequestBodyApi( PostNumberTypeMatchesNumbersRequestBody, PostAllofWithBaseSchemaRequestBody, PostIpv4FormatRequestBody, + PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostMincontainsWithoutContainsIsIgnoredRequestBody, PostPropertiesWithEscapedCharactersRequestBody, PostSingleDependencyRequestBody, @@ -179,10 +189,13 @@ class OperationRequestBodyApi( PostRegexFormatRequestBody, PostRequiredWithEscapedCharactersRequestBody, PostMultipleDependentsRequiredRequestBody, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, + PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, PostObjectTypeMatchesObjectsRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, @@ -216,6 +229,7 @@ class OperationRequestBodyApi( PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, + PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostMaxproperties0MeansTheObjectIsEmptyRequestBody, PostUriTemplateFormatRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 47aa6255459..864f885d9bb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -28,6 +28,7 @@ from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with_true_does_not_match1_request_body.post.operation import PostEnumWithTrueDoesNotMatch1RequestBody from unit_test_api.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body.post.operation import PostNestedOneofToCheckValidationSemanticsRequestBody +from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody @@ -64,6 +65,7 @@ from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody +from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -82,6 +84,7 @@ from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_pattern_validation_request_body.post.operation import PostPatternValidationRequestBody +from unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.operation import PostMaxlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxitems_validation_request_body.post.operation import PostMaxitemsValidationRequestBody @@ -109,11 +112,13 @@ from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody +from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.operation import PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minproperties_validation_request_body.post.operation import PostMinpropertiesValidationRequestBody +from unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody @@ -126,6 +131,7 @@ from unit_test_api.paths.response_body_post_ipv4_format_response_body_for_content_types.post.operation import PostIpv4FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.post.operation import PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minproperties_validation_response_body_for_content_types.post.operation import PostMinpropertiesValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.response_body_post_boolean_type_matches_booleans_response_body_for_content_types.post.operation import PostBooleanTypeMatchesBooleansResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.post.operation import PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxlength_validation_request_body.post.operation import PostMaxlengthValidationRequestBody @@ -142,9 +148,11 @@ from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody +from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody @@ -157,6 +165,7 @@ from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_mincontains_without_contains_is_ignored_request_body.post.operation import PostMincontainsWithoutContainsIsIgnoredRequestBody @@ -167,6 +176,7 @@ from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody +from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes @@ -174,10 +184,12 @@ from unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.operation import PostNotResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.operation import PostMinlengthValidationResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody @@ -187,6 +199,7 @@ from unit_test_api.paths.request_body_post_items_contains_request_body.post.operation import PostItemsContainsRequestBody from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody @@ -214,6 +227,7 @@ from unit_test_api.paths.response_body_post_required_default_validation_response_body_for_content_types.post.operation import PostRequiredDefaultValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_iri_reference_format_response_body_for_content_types.post.operation import PostIriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uri_template_format_request_body.post.operation import PostUriTemplateFormatRequestBody @@ -259,6 +273,7 @@ class PathPostApi( PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, PostEnumWithTrueDoesNotMatch1RequestBody, PostNestedOneofToCheckValidationSemanticsRequestBody, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, PostArrayTypeMatchesArraysRequestBody, PostUriReferenceFormatResponseBodyForContentTypes, PostConstNulCharactersInStringsRequestBody, @@ -295,6 +310,7 @@ class PathPostApi( PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, PostMultipleDependentsRequiredRequestBody, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -313,6 +329,7 @@ class PathPostApi( PostSimpleEnumValidationRequestBody, PostConstNulCharactersInStringsResponseBodyForContentTypes, PostPatternValidationRequestBody, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes, PostMaxlengthValidationResponseBodyForContentTypes, PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, PostMaxitemsValidationRequestBody, @@ -340,11 +357,13 @@ class PathPostApi( PostUuidFormatResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, PostContainsKeywordValidationRequestBody, + PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes, PostMinpropertiesValidationRequestBody, + PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes, PostJsonPointerFormatRequestBody, PostAnyofComplexTypesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, @@ -357,6 +376,7 @@ class PathPostApi( PostIpv4FormatResponseBodyForContentTypes, PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes, PostMinpropertiesValidationResponseBodyForContentTypes, + PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody, PostBooleanTypeMatchesBooleansResponseBodyForContentTypes, PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes, PostMaxlengthValidationRequestBody, @@ -373,9 +393,11 @@ class PathPostApi( PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, + PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, PostTimeFormatRequestBody, @@ -388,6 +410,7 @@ class PathPostApi( PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, + PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, PostMincontainsWithoutContainsIsIgnoredRequestBody, @@ -398,6 +421,7 @@ class PathPostApi( PostOneofWithBaseSchemaResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, + PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostPatternIsNotAnchoredResponseBodyForContentTypes, @@ -405,10 +429,12 @@ class PathPostApi( PostNotResponseBodyForContentTypes, PostRequiredWithEscapedCharactersRequestBody, PostMinlengthValidationResponseBodyForContentTypes, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, PostDependentSchemasSingleDependencyResponseBodyForContentTypes, + PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, @@ -418,6 +444,7 @@ class PathPostApi( PostItemsContainsRequestBody, PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, PostItemsWithNullInstanceElementsRequestBody, PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, @@ -445,6 +472,7 @@ class PathPostApi( PostRequiredDefaultValidationResponseBodyForContentTypes, PostIriReferenceFormatResponseBodyForContentTypes, PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, + PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostRequiredValidationResponseBodyForContentTypes, PostUriTemplateFormatRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py new file mode 100644 index 00000000000..b7e2c1f9bf1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody +from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody +from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody +from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody + + +class PatternPropertiesApi( + PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes, + PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, + PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody, + PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, + PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py index 1aec146b5af..35cb4003a76 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py @@ -7,9 +7,11 @@ from unit_test_api.paths.request_body_post_object_properties_validation_request_body.post.operation import PostObjectPropertiesValidationRequestBody from unit_test_api.paths.request_body_post_properties_with_null_valued_instance_properties_request_body.post.operation import PostPropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_with_escaped_characters_request_body.post.operation import PostPropertiesWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types.post.operation import PostPropertiesWithEscapedCharactersResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody @@ -18,9 +20,11 @@ class PropertiesApi( PostObjectPropertiesValidationRequestBody, PostPropertiesWithNullValuedInstancePropertiesRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostPropertiesWithEscapedCharactersRequestBody, PostPropertiesWithEscapedCharactersResponseBodyForContentTypes, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes, PostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, ): diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 78334cd2c64..b15f37b5c82 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -33,9 +33,11 @@ from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes @@ -55,6 +57,7 @@ from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes @@ -68,6 +71,7 @@ from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes @@ -76,6 +80,7 @@ from unit_test_api.paths.response_body_post_oneof_with_required_response_body_for_content_types.post.operation import PostOneofWithRequiredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_one_empty_schema_response_body_for_content_types.post.operation import PostAllofWithOneEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_array_type_matches_arrays_response_body_for_content_types.post.operation import PostArrayTypeMatchesArraysResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types.post.operation import PostMaxlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_escaped_characters_response_body_for_content_types.post.operation import PostRequiredWithEscapedCharactersResponseBodyForContentTypes @@ -107,6 +112,7 @@ from unit_test_api.paths.response_body_post_uuid_format_response_body_for_content_types.post.operation import PostUuidFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes @@ -116,6 +122,7 @@ from unit_test_api.paths.response_body_post_number_type_matches_numbers_response_body_for_content_types.post.operation import PostNumberTypeMatchesNumbersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_with_null_instance_elements_response_body_for_content_types.post.operation import PostItemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.operation import PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes from unit_test_api.paths.response_body_post_json_pointer_format_response_body_for_content_types.post.operation import PostJsonPointerFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.operation import PostUriFormatResponseBodyForContentTypes @@ -150,9 +157,11 @@ class ResponseContentContentTypeSchemaApi( PostUriReferenceFormatResponseBodyForContentTypes, PostDurationFormatResponseBodyForContentTypes, PostIdnEmailFormatResponseBodyForContentTypes, + PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostEnumsInPropertiesResponseBodyForContentTypes, + PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostNestedItemsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, @@ -172,6 +181,7 @@ class ResponseContentContentTypeSchemaApi( PostOneofWithBaseSchemaResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, PostObjectPropertiesValidationResponseBodyForContentTypes, + PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, PostPatternIsNotAnchoredResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, @@ -185,6 +195,7 @@ class ResponseContentContentTypeSchemaApi( PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostFloatDivisionInfResponseBodyForContentTypes, + PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, @@ -193,6 +204,7 @@ class ResponseContentContentTypeSchemaApi( PostOneofWithRequiredResponseBodyForContentTypes, PostAllofWithOneEmptySchemaResponseBodyForContentTypes, PostArrayTypeMatchesArraysResponseBodyForContentTypes, + PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes, PostMaxlengthValidationResponseBodyForContentTypes, PostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, PostRequiredWithEscapedCharactersResponseBodyForContentTypes, @@ -224,6 +236,7 @@ class ResponseContentContentTypeSchemaApi( PostUuidFormatResponseBodyForContentTypes, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, PostNotMoreComplexSchemaResponseBodyForContentTypes, + PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, @@ -233,6 +246,7 @@ class ResponseContentContentTypeSchemaApi( PostNumberTypeMatchesNumbersResponseBodyForContentTypes, PostItemsWithNullInstanceElementsResponseBodyForContentTypes, PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes, + PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes, PostJsonPointerFormatResponseBodyForContentTypes, PostUriFormatResponseBodyForContentTypes, ): diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py new file mode 100644 index 00000000000..3721f297e33 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema +V: typing_extensions.TypeAlias = schemas.AnyTypeSchema +Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema +Bar: typing_extensions.TypeAlias = schemas.AnyTypeSchema +Properties = typing.TypedDict( + 'Properties', + { + "foo": typing.Type[Foo], + "bar": typing.Type[Bar], + } +) + + +class AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "foo", + "bar", + }) + + def __new__( + cls, + *, + foo: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES, + schemas.Unset + ] = schemas.unset, + bar: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("foo", foo), + ("bar", bar), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + used_arg_ = typing.cast(AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, arg_) + return AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, + AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict: + return AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate(arg, configuration=configuration) + + @property + def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + val = self.get("foo", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + schemas.OUTPUT_BASE_TYPES, + val + ) + + @property + def bar(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + val = self.get("bar", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + schemas.OUTPUT_BASE_TYPES, + val + ) +AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput = typing.TypedDict( + 'AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput', + { + "foo": typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + "bar": typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + }, + total=False +) + + +@dataclasses.dataclass(frozen=True) +class AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties( + schemas.Schema[AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, tuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'^v' # noqa: E501 + ): V, + } + ) + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, + AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_simultaneous_patternproperties_are_validated.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_simultaneous_patternproperties_are_validated.py new file mode 100644 index 00000000000..2ee5aca2012 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/multiple_simultaneous_patternproperties_are_validated.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +A: typing_extensions.TypeAlias = schemas.IntSchema + + +@dataclasses.dataclass(frozen=True) +class Aaa( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + inclusive_maximum: typing.Union[int, float] = 20 + + + +@dataclasses.dataclass(frozen=True) +class MultipleSimultaneousPatternpropertiesAreValidated( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'a*' # noqa: E501 + ): A, + schemas.PatternInfo( + pattern=r'aaa*' # noqa: E501 + ): Aaa, + } + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py new file mode 100644 index 00000000000..57936c44cf4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema +CircumflexAccentLatinSmallLetterAWithAcute: typing_extensions.TypeAlias = schemas.AnyTypeSchema + + +class NonAsciiPatternWithAdditionalpropertiesDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + }) + # map with no key value pairs + def __new__( + cls, + arg: NonAsciiPatternWithAdditionalpropertiesDictInput, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + ): + return NonAsciiPatternWithAdditionalproperties.validate(arg, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + NonAsciiPatternWithAdditionalpropertiesDictInput, + NonAsciiPatternWithAdditionalpropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NonAsciiPatternWithAdditionalpropertiesDict: + return NonAsciiPatternWithAdditionalproperties.validate(arg, configuration=configuration) +NonAsciiPatternWithAdditionalpropertiesDictInput = typing.Mapping # mapping must be empty + + +@dataclasses.dataclass(frozen=True) +class NonAsciiPatternWithAdditionalproperties( + schemas.Schema[NonAsciiPatternWithAdditionalpropertiesDict, tuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'^á' # noqa: E501 + ): CircumflexAccentLatinSmallLetterAWithAcute, + } + ) + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: NonAsciiPatternWithAdditionalpropertiesDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + NonAsciiPatternWithAdditionalpropertiesDictInput, + NonAsciiPatternWithAdditionalpropertiesDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> NonAsciiPatternWithAdditionalpropertiesDict: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_validates_properties_matching_a_regex.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_validates_properties_matching_a_regex.py new file mode 100644 index 00000000000..5a9781bd3c0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_validates_properties_matching_a_regex.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +FO: typing_extensions.TypeAlias = schemas.IntSchema + + +@dataclasses.dataclass(frozen=True) +class PatternpropertiesValidatesPropertiesMatchingARegex( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'f.*o' # noqa: E501 + ): FO, + } + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_with_null_valued_instance_properties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_with_null_valued_instance_properties.py new file mode 100644 index 00000000000..cf041064eef --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/patternproperties_with_null_valued_instance_properties.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +Bar: typing_extensions.TypeAlias = schemas.NoneSchema + + +@dataclasses.dataclass(frozen=True) +class PatternpropertiesWithNullValuedInstanceProperties( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'^.*bar$' # noqa: E501 + ): Bar, + } + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py new file mode 100644 index 00000000000..7a0801a9680 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +AdditionalProperties: typing_extensions.TypeAlias = schemas.IntSchema + + +@dataclasses.dataclass(frozen=True) +class FO( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + min_items: int = 2 + + + +@dataclasses.dataclass(frozen=True) +class Foo( + schemas.Schema[schemas.immutabledict, typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]] +): + types: typing.FrozenSet[typing.Type] = frozenset({tuple}) + max_items: int = 3 + + @classmethod + def validate( + cls, + arg: typing.Union[ + typing.List[schemas.INPUT_TYPES_ALL], + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]: + return super().validate_base( + arg, + configuration=configuration, + ) +Bar: typing_extensions.TypeAlias = schemas.ListSchema +Properties = typing.TypedDict( + 'Properties', + { + "foo": typing.Type[Foo], + "bar": typing.Type[Bar], + } +) + + +class PropertiesPatternpropertiesAdditionalpropertiesInteractionDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "foo", + "bar", + }) + + def __new__( + cls, + *, + foo: typing.Union[ + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...], + schemas.Unset + ] = schemas.unset, + bar: typing.Union[ + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...], + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: int, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("foo", foo), + ("bar", bar), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + arg_.update(kwargs) + used_arg_ = typing.cast(PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput, arg_) + return PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput, + PropertiesPatternpropertiesAdditionalpropertiesInteractionDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PropertiesPatternpropertiesAdditionalpropertiesInteractionDict: + return PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate(arg, configuration=configuration) + + @property + def foo(self) -> typing.Union[typing.Tuple[schemas.OUTPUT_BASE_TYPES], schemas.Unset]: + val = self.get("foo", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + typing.Tuple[schemas.OUTPUT_BASE_TYPES], + val + ) + + @property + def bar(self) -> typing.Union[typing.Tuple[schemas.OUTPUT_BASE_TYPES], schemas.Unset]: + val = self.get("bar", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + typing.Tuple[schemas.OUTPUT_BASE_TYPES], + val + ) + + def get_additional_property_(self, name: str) -> typing.Union[int, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + val = self.get(name, schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + int, + val + ) +PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput = typing.Mapping[ + str, + typing.Union[ + typing.Union[ + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...], + ], + typing.Union[ + typing.Tuple[schemas.INPUT_TYPES_ALL, ...], + typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...], + ], + int, + ] +] + + +@dataclasses.dataclass(frozen=True) +class PropertiesPatternpropertiesAdditionalpropertiesInteraction( + schemas.Schema[PropertiesPatternpropertiesAdditionalpropertiesInteractionDict, tuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'f.o' # noqa: E501 + ): FO, + } + ) + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: PropertiesPatternpropertiesAdditionalpropertiesInteractionDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput, + PropertiesPatternpropertiesAdditionalpropertiesInteractionDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> PropertiesPatternpropertiesAdditionalpropertiesInteractionDict: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.py new file mode 100644 index 00000000000..072e5306c75 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +_092: typing_extensions.TypeAlias = schemas.BoolSchema +X: typing_extensions.TypeAlias = schemas.StrSchema + + +@dataclasses.dataclass(frozen=True) +class RegexesAreNotAnchoredByDefaultAndAreCaseSensitive( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + pattern_properties: typing.Mapping[ + schemas.PatternInfo, + typing.Type[schemas.Schema] + ] = dataclasses.field( + default_factory=lambda: { + schemas.PatternInfo( + pattern=r'[0-9]{2,}' # noqa: E501 + ): _092, + schemas.PatternInfo( + pattern=r'X_' # noqa: E501 + ): X, + } + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 0b84135efb1..1276e2a7996 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -12,6 +12,7 @@ # sys.setrecursionlimit(n) from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_being_false_does_not_allow_other_properties import AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from unit_test_api.components.schema.additionalproperties_does_not_look_in_applicators import AdditionalpropertiesDoesNotLookInApplicators from unit_test_api.components.schema.additionalproperties_with_null_valued_instance_properties import AdditionalpropertiesWithNullValuedInstanceProperties @@ -78,11 +79,13 @@ from unit_test_api.components.schema.minlength_validation import MinlengthValidation from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from unit_test_api.components.schema.multiple_dependents_required import MultipleDependentsRequired +from unit_test_api.components.schema.multiple_simultaneous_patternproperties_are_validated import MultipleSimultaneousPatternpropertiesAreValidated from unit_test_api.components.schema.multiple_types_can_be_specified_in_an_array import MultipleTypesCanBeSpecifiedInAnArray from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from unit_test_api.components.schema.nested_items import NestedItems from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.non_ascii_pattern_with_additionalproperties import NonAsciiPatternWithAdditionalproperties from unit_test_api.components.schema._not import _Not from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings @@ -97,12 +100,16 @@ from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from unit_test_api.components.schema.pattern_validation import PatternValidation +from unit_test_api.components.schema.patternproperties_validates_properties_matching_a_regex import PatternpropertiesValidatesPropertiesMatchingARegex +from unit_test_api.components.schema.patternproperties_with_null_valued_instance_properties import PatternpropertiesWithNullValuedInstanceProperties from unit_test_api.components.schema.prefixitems_validation_adjusts_the_starting_index_for_items import PrefixitemsValidationAdjustsTheStartingIndexForItems +from unit_test_api.components.schema.properties_patternproperties_additionalproperties_interaction import PropertiesPatternpropertiesAdditionalpropertiesInteraction from unit_test_api.components.schema.properties_whose_names_are_javascript_object_property_names import PropertiesWhoseNamesAreJavascriptObjectPropertyNames from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from unit_test_api.components.schema.properties_with_null_valued_instance_properties import PropertiesWithNullValuedInstanceProperties from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from unit_test_api.components.schema.regex_format import RegexFormat +from unit_test_api.components.schema.regexes_are_not_anchored_by_default_and_are_case_sensitive import RegexesAreNotAnchoredByDefaultAndAreCaseSensitive from unit_test_api.components.schema.relative_json_pointer_format import RelativeJsonPointerFormat from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from unit_test_api.components.schema.required_properties_whose_names_are_javascript_object_property_names import RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py new file mode 100644 index 00000000000..d711a274ed3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body import RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody + +path = "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py new file mode 100644 index 00000000000..a03fa8b5dc0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import additionalproperties_being_false_does_not_allow_other_properties + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_being_false_does_not_allow_other_properties_request_body( + self, + body: typing.Union[ + additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, + additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_additionalproperties_being_false_does_not_allow_other_properties_request_body( + self, + body: typing.Union[ + additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, + additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_additionalproperties_being_false_does_not_allow_other_properties_request_body( + self, + body: typing.Union[ + additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, + additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_additionalproperties_being_false_does_not_allow_other_properties_request_body = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..3bab9591dae --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import additionalproperties_being_false_does_not_allow_other_properties +Schema2: typing_extensions.TypeAlias = additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py new file mode 100644 index 00000000000..1b9c0218bfe --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body import RequestBodyPostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody + +path = "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py new file mode 100644 index 00000000000..0917d77bbaa --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import multiple_simultaneous_patternproperties_are_validated + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_multiple_simultaneous_patternproperties_are_validated_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_multiple_simultaneous_patternproperties_are_validated_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_multiple_simultaneous_patternproperties_are_validated_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_multiple_simultaneous_patternproperties_are_validated_request_body = BaseApi._post_multiple_simultaneous_patternproperties_are_validated_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_multiple_simultaneous_patternproperties_are_validated_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..db2c6341cac --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import multiple_simultaneous_patternproperties_are_validated +Schema2: typing_extensions.TypeAlias = multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py new file mode 100644 index 00000000000..c7862249de3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body import RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody + +path = "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py new file mode 100644 index 00000000000..ed46508e365 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import non_ascii_pattern_with_additionalproperties + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_non_ascii_pattern_with_additionalproperties_request_body( + self, + body: typing.Union[ + non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput, + non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict, + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_non_ascii_pattern_with_additionalproperties_request_body( + self, + body: typing.Union[ + non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput, + non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict, + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_non_ascii_pattern_with_additionalproperties_request_body( + self, + body: typing.Union[ + non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput, + non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict, + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostNonAsciiPatternWithAdditionalpropertiesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_non_ascii_pattern_with_additionalproperties_request_body = BaseApi._post_non_ascii_pattern_with_additionalproperties_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_non_ascii_pattern_with_additionalproperties_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..3f893755ee6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import non_ascii_pattern_with_additionalproperties +Schema2: typing_extensions.TypeAlias = non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py new file mode 100644 index 00000000000..e44618e14ff --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body import RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody + +path = "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py new file mode 100644 index 00000000000..2f4da875ddd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import patternproperties_validates_properties_matching_a_regex + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_patternproperties_validates_properties_matching_a_regex_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_patternproperties_validates_properties_matching_a_regex_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_patternproperties_validates_properties_matching_a_regex_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_patternproperties_validates_properties_matching_a_regex_request_body = BaseApi._post_patternproperties_validates_properties_matching_a_regex_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_patternproperties_validates_properties_matching_a_regex_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..75741f11542 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import patternproperties_validates_properties_matching_a_regex +Schema2: typing_extensions.TypeAlias = patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py new file mode 100644 index 00000000000..04c3858e256 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body import RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody + +path = "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py new file mode 100644 index 00000000000..123440ad216 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import patternproperties_with_null_valued_instance_properties + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_patternproperties_with_null_valued_instance_properties_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_patternproperties_with_null_valued_instance_properties_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_patternproperties_with_null_valued_instance_properties_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPatternpropertiesWithNullValuedInstancePropertiesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_patternproperties_with_null_valued_instance_properties_request_body = BaseApi._post_patternproperties_with_null_valued_instance_properties_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_patternproperties_with_null_valued_instance_properties_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..03361ed1ce4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import patternproperties_with_null_valued_instance_properties +Schema2: typing_extensions.TypeAlias = patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py new file mode 100644 index 00000000000..937ff3071a4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body import RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody + +path = "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py new file mode 100644 index 00000000000..98a12abbda6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import properties_patternproperties_additionalproperties_interaction + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_properties_patternproperties_additionalproperties_interaction_request_body( + self, + body: typing.Union[ + properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput, + properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict, + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_properties_patternproperties_additionalproperties_interaction_request_body( + self, + body: typing.Union[ + properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput, + properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict, + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_properties_patternproperties_additionalproperties_interaction_request_body( + self, + body: typing.Union[ + properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput, + properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict, + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_properties_patternproperties_additionalproperties_interaction_request_body = BaseApi._post_properties_patternproperties_additionalproperties_interaction_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_properties_patternproperties_additionalproperties_interaction_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..6c268a17f04 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import properties_patternproperties_additionalproperties_interaction +Schema2: typing_extensions.TypeAlias = properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py new file mode 100644 index 00000000000..415b733acad --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body import RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody + +path = "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py new file mode 100644 index 00000000000..1a805ba7d55 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import regexes_are_not_anchored_by_default_and_are_case_sensitive + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body = BaseApi._post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..6c7ad08a63d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import regexes_are_not_anchored_by_default_and_are_case_sensitive +Schema2: typing_extensions.TypeAlias = regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..3ee371e8662 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes + +path = "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..02bceba497e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..59ff4f2154d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: application_json_schema.additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..3bab9591dae --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import additionalproperties_being_false_does_not_allow_other_properties +Schema2: typing_extensions.TypeAlias = additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..b26abf402d1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types import ResponseBodyPostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes + +path = "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..73e89eca01b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types = BaseApi._post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..db2c6341cac --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import multiple_simultaneous_patternproperties_are_validated +Schema2: typing_extensions.TypeAlias = multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..cfd37d9dfee --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types import ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes + +path = "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..208bee80b1d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types = BaseApi._post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..1c29b805c47 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: application_json_schema.non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..3f893755ee6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import non_ascii_pattern_with_additionalproperties +Schema2: typing_extensions.TypeAlias = non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..9649179f751 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types import ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes + +path = "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..6956b643f85 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types = BaseApi._post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..75741f11542 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import patternproperties_validates_properties_matching_a_regex +Schema2: typing_extensions.TypeAlias = patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..3d91cb7a6ed --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes + +path = "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..aa07d6c6835 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types = BaseApi._post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..03361ed1ce4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import patternproperties_with_null_valued_instance_properties +Schema2: typing_extensions.TypeAlias = patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..ddcab02c075 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types import ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes + +path = "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..724e8380844 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types = BaseApi._post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..9dafbd64816 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: application_json_schema.properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..6c268a17f04 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import properties_patternproperties_additionalproperties_interaction +Schema2: typing_extensions.TypeAlias = properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..5e2548f1476 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types import ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes + +path = "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..8ca593f1ec9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types = BaseApi._post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..6c7ad08a63d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import regexes_are_not_anchored_by_default_and_are_case_sensitive +Schema2: typing_extensions.TypeAlias = regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py new file mode 100644 index 00000000000..ef193f16186 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.additionalproperties_being_false_does_not_allow_other_properties import AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties +from unit_test_api.configurations import schema_configuration + + +class TestAdditionalpropertiesBeingFalseDoesNotAllowOtherProperties(unittest.TestCase): + """AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_patternproperties_are_not_additional_properties_passes(self): + # patternProperties are not additional properties + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( + { + "foo": + 1, + "vroom": + 2, + }, + configuration=self.configuration + ) + + def test_no_additional_properties_is_valid_passes(self): + # no additional properties is valid + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( + { + "foo": + 1, + }, + configuration=self.configuration + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( + [ + 1, + 2, + 3, + ], + configuration=self.configuration + ) + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( + 12, + configuration=self.configuration + ) + + def test_ignores_strings_passes(self): + # ignores strings + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( + "foobarbaz", + configuration=self.configuration + ) + + def test_an_additional_property_is_invalid_fails(self): + # an additional property is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( + { + "foo": + 1, + "bar": + 2, + "quux": + "boom", + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py new file mode 100644 index 00000000000..266fe8e4ee8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.multiple_simultaneous_patternproperties_are_validated import MultipleSimultaneousPatternpropertiesAreValidated +from unit_test_api.configurations import schema_configuration + + +class TestMultipleSimultaneousPatternpropertiesAreValidated(unittest.TestCase): + """MultipleSimultaneousPatternpropertiesAreValidated unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_multiple_matches_is_valid_passes(self): + # multiple matches is valid + MultipleSimultaneousPatternpropertiesAreValidated.validate( + { + "a": + 21, + "aaaa": + 18, + }, + configuration=self.configuration + ) + + def test_an_invalid_due_to_the_other_is_invalid_fails(self): + # an invalid due to the other is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + MultipleSimultaneousPatternpropertiesAreValidated.validate( + { + "aaaa": + 31, + }, + configuration=self.configuration + ) + + def test_an_invalid_due_to_both_is_invalid_fails(self): + # an invalid due to both is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + MultipleSimultaneousPatternpropertiesAreValidated.validate( + { + "aaa": + "foo", + "aaaa": + 31, + }, + configuration=self.configuration + ) + + def test_a_single_valid_match_is_valid_passes(self): + # a single valid match is valid + MultipleSimultaneousPatternpropertiesAreValidated.validate( + { + "a": + 21, + }, + configuration=self.configuration + ) + + def test_a_simultaneous_match_is_valid_passes(self): + # a simultaneous match is valid + MultipleSimultaneousPatternpropertiesAreValidated.validate( + { + "aaaa": + 18, + }, + configuration=self.configuration + ) + + def test_an_invalid_due_to_one_is_invalid_fails(self): + # an invalid due to one is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + MultipleSimultaneousPatternpropertiesAreValidated.validate( + { + "a": + "bar", + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_non_ascii_pattern_with_additionalproperties.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_non_ascii_pattern_with_additionalproperties.py new file mode 100644 index 00000000000..e9ec2fb0992 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_non_ascii_pattern_with_additionalproperties.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.non_ascii_pattern_with_additionalproperties import NonAsciiPatternWithAdditionalproperties +from unit_test_api.configurations import schema_configuration + + +class TestNonAsciiPatternWithAdditionalproperties(unittest.TestCase): + """NonAsciiPatternWithAdditionalproperties unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_matching_the_pattern_is_valid_passes(self): + # matching the pattern is valid + NonAsciiPatternWithAdditionalproperties.validate( + { + "ármányos": + 2, + }, + configuration=self.configuration + ) + + def test_not_matching_the_pattern_is_invalid_fails(self): + # not matching the pattern is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + NonAsciiPatternWithAdditionalproperties.validate( + { + "élmény": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py new file mode 100644 index 00000000000..2ed2709f62b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.patternproperties_validates_properties_matching_a_regex import PatternpropertiesValidatesPropertiesMatchingARegex +from unit_test_api.configurations import schema_configuration + + +class TestPatternpropertiesValidatesPropertiesMatchingARegex(unittest.TestCase): + """PatternpropertiesValidatesPropertiesMatchingARegex unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_a_single_valid_match_is_valid_passes(self): + # a single valid match is valid + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + { + "foo": + 1, + }, + configuration=self.configuration + ) + + def test_multiple_valid_matches_is_valid_passes(self): + # multiple valid matches is valid + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + { + "foo": + 1, + "foooooo": + 2, + }, + configuration=self.configuration + ) + + def test_multiple_invalid_matches_is_invalid_fails(self): + # multiple invalid matches is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + { + "foo": + "bar", + "foooooo": + "baz", + }, + configuration=self.configuration + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + [ + "foo", + ], + configuration=self.configuration + ) + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + 12, + configuration=self.configuration + ) + + def test_ignores_strings_passes(self): + # ignores strings + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + "foo", + configuration=self.configuration + ) + + def test_a_single_invalid_match_is_invalid_fails(self): + # a single invalid match is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PatternpropertiesValidatesPropertiesMatchingARegex.validate( + { + "foo": + "bar", + "fooooo": + 2, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_with_null_valued_instance_properties.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_with_null_valued_instance_properties.py new file mode 100644 index 00000000000..4c781480bfe --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_patternproperties_with_null_valued_instance_properties.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.patternproperties_with_null_valued_instance_properties import PatternpropertiesWithNullValuedInstanceProperties +from unit_test_api.configurations import schema_configuration + + +class TestPatternpropertiesWithNullValuedInstanceProperties(unittest.TestCase): + """PatternpropertiesWithNullValuedInstanceProperties unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_allows_null_values_passes(self): + # allows null values + PatternpropertiesWithNullValuedInstanceProperties.validate( + { + "foobar": + None, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py new file mode 100644 index 00000000000..aac2d91c571 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.properties_patternproperties_additionalproperties_interaction import PropertiesPatternpropertiesAdditionalpropertiesInteraction +from unit_test_api.configurations import schema_configuration + + +class TestPropertiesPatternpropertiesAdditionalpropertiesInteraction(unittest.TestCase): + """PropertiesPatternpropertiesAdditionalpropertiesInteraction unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_patternproperty_invalidates_property_fails(self): + # patternProperty invalidates property + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "foo": + [ + ], + }, + configuration=self.configuration + ) + + def test_patternproperty_invalidates_nonproperty_fails(self): + # patternProperty invalidates nonproperty + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "fxo": + [ + ], + }, + configuration=self.configuration + ) + + def test_additionalproperty_validates_others_passes(self): + # additionalProperty validates others + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "quux": + 3, + }, + configuration=self.configuration + ) + + def test_property_invalidates_property_fails(self): + # property invalidates property + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "foo": + [ + 1, + 2, + 3, + 4, + ], + }, + configuration=self.configuration + ) + + def test_additionalproperty_ignores_property_passes(self): + # additionalProperty ignores property + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "bar": + [ + ], + }, + configuration=self.configuration + ) + + def test_additionalproperty_invalidates_others_fails(self): + # additionalProperty invalidates others + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "quux": + "foo", + }, + configuration=self.configuration + ) + + def test_patternproperty_validates_nonproperty_passes(self): + # patternProperty validates nonproperty + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "fxo": + [ + 1, + 2, + ], + }, + configuration=self.configuration + ) + + def test_property_validates_property_passes(self): + # property validates property + PropertiesPatternpropertiesAdditionalpropertiesInteraction.validate( + { + "foo": + [ + 1, + 2, + ], + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py new file mode 100644 index 00000000000..f46f5c47296 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.regexes_are_not_anchored_by_default_and_are_case_sensitive import RegexesAreNotAnchoredByDefaultAndAreCaseSensitive +from unit_test_api.configurations import schema_configuration + + +class TestRegexesAreNotAnchoredByDefaultAndAreCaseSensitive(unittest.TestCase): + """RegexesAreNotAnchoredByDefaultAndAreCaseSensitive unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_regexes_are_case_sensitive2_fails(self): + # regexes are case sensitive, 2 + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.validate( + { + "a_X_3": + 3, + }, + configuration=self.configuration + ) + + def test_non_recognized_members_are_ignored_passes(self): + # non recognized members are ignored + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.validate( + { + "answer 1": + "42", + }, + configuration=self.configuration + ) + + def test_recognized_members_are_accounted_for_fails(self): + # recognized members are accounted for + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.validate( + { + "a31b": + None, + }, + configuration=self.configuration + ) + + def test_regexes_are_case_sensitive_passes(self): + # regexes are case sensitive + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.validate( + { + "a_x_3": + 3, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py new file mode 100644 index 00000000000..0ce6ae18cca --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_patternproperties_are_not_additional_properties_passes(self): + content_type = 'application/json' + # patternProperties are not additional properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "vroom": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_no_additional_properties_is_valid_passes(self): + content_type = 'application/json' + # no additional properties is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_arrays_passes(self): + content_type = 'application/json' + # ignores arrays + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 2, + 3, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_other_non_objects_passes(self): + content_type = 'application/json' + # ignores other non-objects + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_strings_passes(self): + content_type = 'application/json' + # ignores strings + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobarbaz" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_an_additional_property_is_invalid_fails(self): + content_type = 'application/json' + # an additional property is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + "quux": + "boom", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/test_post.py new file mode 100644 index 00000000000..482826649d1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/test_post.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_multiple_matches_is_valid_passes(self): + content_type = 'application/json' + # multiple matches is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + 21, + "aaaa": + 18, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_an_invalid_due_to_the_other_is_invalid_fails(self): + content_type = 'application/json' + # an invalid due to the other is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "aaaa": + 31, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_an_invalid_due_to_both_is_invalid_fails(self): + content_type = 'application/json' + # an invalid due to both is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "aaa": + "foo", + "aaaa": + 31, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_a_single_valid_match_is_valid_passes(self): + content_type = 'application/json' + # a single valid match is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + 21, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_a_simultaneous_match_is_valid_passes(self): + content_type = 'application/json' + # a simultaneous match is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "aaaa": + 18, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_an_invalid_due_to_one_is_invalid_fails(self): + content_type = 'application/json' + # an invalid due to one is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + "bar", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/test_post.py new file mode 100644 index 00000000000..0080f57a8bf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/test_post.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_matching_the_pattern_is_valid_passes(self): + content_type = 'application/json' + # matching the pattern is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "ármányos": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_not_matching_the_pattern_is_invalid_fails(self): + content_type = 'application/json' + # not matching the pattern is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "élmény": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/test_post.py new file mode 100644 index 00000000000..35dc92ac15d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/test_post.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_a_single_valid_match_is_valid_passes(self): + content_type = 'application/json' + # a single valid match is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_multiple_valid_matches_is_valid_passes(self): + content_type = 'application/json' + # multiple valid matches is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "foooooo": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_multiple_invalid_matches_is_invalid_fails(self): + content_type = 'application/json' + # multiple invalid matches is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "bar", + "foooooo": + "baz", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_ignores_arrays_passes(self): + content_type = 'application/json' + # ignores arrays + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_other_non_objects_passes(self): + content_type = 'application/json' + # ignores other non-objects + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_strings_passes(self): + content_type = 'application/json' + # ignores strings + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foo" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_a_single_invalid_match_is_invalid_fails(self): + content_type = 'application/json' + # a single invalid match is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "bar", + "fooooo": + 2, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/test_post.py new file mode 100644 index 00000000000..26a558990b6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/test_post.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_allows_null_values_passes(self): + content_type = 'application/json' + # allows null values + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foobar": + None, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/test_post.py new file mode 100644 index 00000000000..73fcceb98b8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/test_post.py @@ -0,0 +1,246 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_patternproperty_invalidates_property_fails(self): + content_type = 'application/json' + # patternProperty invalidates property + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + [ + ], + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_patternproperty_invalidates_nonproperty_fails(self): + content_type = 'application/json' + # patternProperty invalidates nonproperty + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "fxo": + [ + ], + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_additionalproperty_validates_others_passes(self): + content_type = 'application/json' + # additionalProperty validates others + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "quux": + 3, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_property_invalidates_property_fails(self): + content_type = 'application/json' + # property invalidates property + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + [ + 1, + 2, + 3, + 4, + ], + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_additionalproperty_ignores_property_passes(self): + content_type = 'application/json' + # additionalProperty ignores property + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + [ + ], + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_additionalproperty_invalidates_others_fails(self): + content_type = 'application/json' + # additionalProperty invalidates others + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "quux": + "foo", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_patternproperty_validates_nonproperty_passes(self): + content_type = 'application/json' + # patternProperty validates nonproperty + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "fxo": + [ + 1, + 2, + ], + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_property_validates_property_passes(self): + content_type = 'application/json' + # property validates property + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + [ + 1, + 2, + ], + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/test_post.py new file mode 100644 index 00000000000..e46b28dc48b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/test_post.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_regexes_are_case_sensitive2_fails(self): + content_type = 'application/json' + # regexes are case sensitive, 2 + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a_X_3": + 3, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_non_recognized_members_are_ignored_passes(self): + content_type = 'application/json' + # non recognized members are ignored + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "answer 1": + "42", + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_recognized_members_are_accounted_for_fails(self): + content_type = 'application/json' + # recognized members are accounted for + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a31b": + None, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_regexes_are_case_sensitive_passes(self): + content_type = 'application/json' + # regexes are case sensitive + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a_x_3": + 3, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..37bc19e2408 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_patternproperties_are_not_additional_properties_passes(self): + # patternProperties are not additional properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "vroom": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_no_additional_properties_is_valid_passes(self): + # no additional properties is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_arrays_passes(self): + # ignores arrays + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 2, + 3, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_strings_passes(self): + # ignores strings + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobarbaz" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_an_additional_property_is_invalid_fails(self): + # an additional property is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "bar": + 2, + "quux": + "boom", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..d579e9f7c1d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/test_post.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_multiple_matches_is_valid_passes(self): + # multiple matches is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + 21, + "aaaa": + 18, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_an_invalid_due_to_the_other_is_invalid_fails(self): + # an invalid due to the other is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "aaaa": + 31, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_an_invalid_due_to_both_is_invalid_fails(self): + # an invalid due to both is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "aaa": + "foo", + "aaaa": + 31, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_a_single_valid_match_is_valid_passes(self): + # a single valid match is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + 21, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_a_simultaneous_match_is_valid_passes(self): + # a simultaneous match is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "aaaa": + 18, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_an_invalid_due_to_one_is_invalid_fails(self): + # an invalid due to one is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + "bar", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..369ab8851e2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/test_post.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_matching_the_pattern_is_valid_passes(self): + # matching the pattern is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "ármányos": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_not_matching_the_pattern_is_invalid_fails(self): + # not matching the pattern is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "élmény": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..e44a94f2c35 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/test_post.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_a_single_valid_match_is_valid_passes(self): + # a single valid match is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_multiple_valid_matches_is_valid_passes(self): + # multiple valid matches is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + 1, + "foooooo": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_multiple_invalid_matches_is_invalid_fails(self): + # multiple invalid matches is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "bar", + "foooooo": + "baz", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_strings_passes(self): + # ignores strings + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foo" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_a_single_invalid_match_is_invalid_fails(self): + # a single invalid match is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "bar", + "fooooo": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..fc138ef1e83 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_allows_null_values_passes(self): + # allows null values + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foobar": + None, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..41cadbf4e0e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/test_post.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_patternproperty_invalidates_property_fails(self): + # patternProperty invalidates property + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + [ + ], + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_patternproperty_invalidates_nonproperty_fails(self): + # patternProperty invalidates nonproperty + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "fxo": + [ + ], + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_additionalproperty_validates_others_passes(self): + # additionalProperty validates others + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "quux": + 3, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_property_invalidates_property_fails(self): + # property invalidates property + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + [ + 1, + 2, + 3, + 4, + ], + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_additionalproperty_ignores_property_passes(self): + # additionalProperty ignores property + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "bar": + [ + ], + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_additionalproperty_invalidates_others_fails(self): + # additionalProperty invalidates others + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "quux": + "foo", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_patternproperty_validates_nonproperty_passes(self): + # patternProperty validates nonproperty + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "fxo": + [ + 1, + 2, + ], + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_property_validates_property_passes(self): + # property validates property + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + [ + 1, + 2, + ], + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..2c3c8c997dd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/test_post.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_regexes_are_case_sensitive2_fails(self): + # regexes are case sensitive, 2 + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a_X_3": + 3, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_non_recognized_members_are_ignored_passes(self): + # non recognized members are ignored + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "answer 1": + "42", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_recognized_members_are_accounted_for_fails(self): + # recognized members are accounted for + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a31b": + None, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_regexes_are_case_sensitive_passes(self): + # regexes are case sensitive + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a_x_3": + 3, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 31d33d4709f..a87a8da21e0 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -35,12 +35,85 @@ tags: - name: not - name: oneOf - name: pattern +- name: patternProperties - name: properties - name: $ref - name: required - name: type - name: uniqueItems paths: + /requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody: + post: + operationId: postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - additionalProperties + /responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes: + post: + operationId: postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - additionalProperties + /requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody: + post: + operationId: postNonAsciiPatternWithAdditionalpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NonAsciiPatternWithAdditionalproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NonAsciiPatternWithAdditionalproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - additionalProperties + /responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes: + post: + operationId: postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/NonAsciiPatternWithAdditionalproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NonAsciiPatternWithAdditionalproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - additionalProperties /requestBody/postAdditionalpropertiesWithSchemaRequestBody: post: operationId: postAdditionalpropertiesWithSchemaRequestBody @@ -3245,6 +3318,150 @@ paths: - path.post - contentType_json - pattern + /requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody: + post: + operationId: postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PatternpropertiesValidatesPropertiesMatchingARegex' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - patternProperties + /responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes: + post: + operationId: postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PatternpropertiesValidatesPropertiesMatchingARegex' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - patternProperties + /requestBody/postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody: + post: + operationId: postMultipleSimultaneousPatternpropertiesAreValidatedRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MultipleSimultaneousPatternpropertiesAreValidated' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - patternProperties + /responseBody/postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes: + post: + operationId: postMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/MultipleSimultaneousPatternpropertiesAreValidated' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - patternProperties + /requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody: + post: + operationId: postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - patternProperties + /responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes: + post: + operationId: postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - patternProperties + /requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody: + post: + operationId: postPatternpropertiesWithNullValuedInstancePropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatternpropertiesWithNullValuedInstanceProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PatternpropertiesWithNullValuedInstanceProperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - patternProperties + /responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes: + post: + operationId: postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/PatternpropertiesWithNullValuedInstanceProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PatternpropertiesWithNullValuedInstanceProperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - patternProperties /requestBody/postObjectPropertiesValidationRequestBody: post: operationId: postObjectPropertiesValidationRequestBody @@ -3281,6 +3498,42 @@ paths: - path.post - contentType_json - properties + /requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody: + post: + operationId: postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PropertiesPatternpropertiesAdditionalpropertiesInteraction' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - properties + /responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes: + post: + operationId: postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PropertiesPatternpropertiesAdditionalpropertiesInteraction' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - properties /requestBody/postPropertiesWithEscapedCharactersRequestBody: post: operationId: postPropertiesWithEscapedCharactersRequestBody @@ -4147,6 +4400,19 @@ paths: - uniqueItems components: schemas: + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: {} + bar: {} + patternProperties: + ^v: {} + additionalProperties: false + NonAsciiPatternWithAdditionalproperties: + $schema: https://json-schema.org/draft/2020-12/schema + patternProperties: + "^\xE1": {} + additionalProperties: false AdditionalpropertiesWithSchema: $schema: https://json-schema.org/draft/2020-12/schema properties: @@ -4585,6 +4851,30 @@ components: PatternIsNotAnchored: $schema: https://json-schema.org/draft/2020-12/schema pattern: a+ + PatternpropertiesValidatesPropertiesMatchingARegex: + $schema: https://json-schema.org/draft/2020-12/schema + patternProperties: + f.*o: + type: integer + MultipleSimultaneousPatternpropertiesAreValidated: + $schema: https://json-schema.org/draft/2020-12/schema + patternProperties: + a*: + type: integer + aaa*: + maximum: 20 + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive: + $schema: https://json-schema.org/draft/2020-12/schema + patternProperties: + '[0-9]{2,}': + type: boolean + X_: + type: string + PatternpropertiesWithNullValuedInstanceProperties: + $schema: https://json-schema.org/draft/2020-12/schema + patternProperties: + ^.*bar$: + type: 'null' ObjectPropertiesValidation: $schema: https://json-schema.org/draft/2020-12/schema properties: @@ -4592,6 +4882,19 @@ components: type: integer bar: type: string + PropertiesPatternpropertiesAdditionalpropertiesInteraction: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: + type: array + maxItems: 3 + bar: + type: array + patternProperties: + f.o: + minItems: 2 + additionalProperties: + type: integer PropertiesWithEscapedCharacters: $schema: https://json-schema.org/draft/2020-12/schema properties: @@ -4723,6 +5026,51 @@ components: - type: boolean uniqueItems: false x-schema-test-examples: + AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties: + NoAdditionalPropertiesIsValid: + description: no additional properties is valid + data: + foo: 1 + valid: true + AnAdditionalPropertyIsInvalid: + description: an additional property is invalid + data: + foo: 1 + bar: 2 + quux: boom + valid: false + IgnoresArrays: + description: ignores arrays + data: + - 1 + - 2 + - 3 + valid: true + IgnoresStrings: + description: ignores strings + data: foobarbaz + valid: true + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true + PatternpropertiesAreNotAdditionalProperties: + description: patternProperties are not additional properties + data: + foo: 1 + vroom: 2 + valid: true + NonAsciiPatternWithAdditionalproperties: + MatchingThePatternIsValid: + description: matching the pattern is valid + data: + "\xE1rm\xE1nyos": 2 + valid: true + NotMatchingThePatternIsInvalid: + description: not matching the pattern is invalid + data: + "\xE9lm\xE9ny": 2 + valid: false AdditionalpropertiesWithSchema: NoAdditionalPropertiesIsValid: description: no additional properties is valid @@ -6443,6 +6791,103 @@ components: description: matches a substring data: xxaayy valid: true + PatternpropertiesValidatesPropertiesMatchingARegex: + ASingleValidMatchIsValid: + description: a single valid match is valid + data: + foo: 1 + valid: true + MultipleValidMatchesIsValid: + description: multiple valid matches is valid + data: + foo: 1 + foooooo: 2 + valid: true + ASingleInvalidMatchIsInvalid: + description: a single invalid match is invalid + data: + foo: bar + fooooo: 2 + valid: false + MultipleInvalidMatchesIsInvalid: + description: multiple invalid matches is invalid + data: + foo: bar + foooooo: baz + valid: false + IgnoresArrays: + description: ignores arrays + data: + - foo + valid: true + IgnoresStrings: + description: ignores strings + data: foo + valid: true + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true + MultipleSimultaneousPatternpropertiesAreValidated: + ASingleValidMatchIsValid: + description: a single valid match is valid + data: + a: 21 + valid: true + ASimultaneousMatchIsValid: + description: a simultaneous match is valid + data: + aaaa: 18 + valid: true + MultipleMatchesIsValid: + description: multiple matches is valid + data: + a: 21 + aaaa: 18 + valid: true + AnInvalidDueToOneIsInvalid: + description: an invalid due to one is invalid + data: + a: bar + valid: false + AnInvalidDueToTheOtherIsInvalid: + description: an invalid due to the other is invalid + data: + aaaa: 31 + valid: false + AnInvalidDueToBothIsInvalid: + description: an invalid due to both is invalid + data: + aaa: foo + aaaa: 31 + valid: false + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive: + NonRecognizedMembersAreIgnored: + description: non recognized members are ignored + data: + answer 1: '42' + valid: true + RecognizedMembersAreAccountedFor: + description: recognized members are accounted for + data: + a31b: null + valid: false + RegexesAreCaseSensitive: + description: regexes are case sensitive + data: + a_x_3: 3 + valid: true + RegexesAreCaseSensitive2: + description: regexes are case sensitive, 2 + data: + a_X_3: 3 + valid: false + PatternpropertiesWithNullValuedInstanceProperties: + AllowsNullValues: + description: allows null values + data: + foobar: null + valid: true ObjectPropertiesValidation: BothPropertiesPresentAndValidIsValid: description: both properties present and valid is valid @@ -6475,6 +6920,55 @@ components: description: ignores other non-objects data: 12 valid: true + PropertiesPatternpropertiesAdditionalpropertiesInteraction: + PropertyValidatesProperty: + description: property validates property + data: + foo: + - 1 + - 2 + valid: true + PropertyInvalidatesProperty: + description: property invalidates property + data: + foo: + - 1 + - 2 + - 3 + - 4 + valid: false + PatternpropertyInvalidatesProperty: + description: patternProperty invalidates property + data: + foo: [] + valid: false + PatternpropertyValidatesNonproperty: + description: patternProperty validates nonproperty + data: + fxo: + - 1 + - 2 + valid: true + PatternpropertyInvalidatesNonproperty: + description: patternProperty invalidates nonproperty + data: + fxo: [] + valid: false + AdditionalpropertyIgnoresProperty: + description: additionalProperty ignores property + data: + bar: [] + valid: true + AdditionalpropertyValidatesOthers: + description: additionalProperty validates others + data: + quux: 3 + valid: true + AdditionalpropertyInvalidatesOthers: + description: additionalProperty invalidates others + data: + quux: foo + valid: false PropertiesWithEscapedCharacters: ObjectWithAllNumbersIsValid: description: object with all numbers is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 390f583bee3..326347bc180 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -82,7 +82,6 @@ class ExclusionReason: v303_does_not_support_array_of_types = 'v3.0.3 does not support type with array of values' v303_requires_array_have_items = 'v3.0.3 requires that items MUST be present if the type is array' v303_does_not_support_additionalItems = 'v3.0.3 does not support the additionalItems keyword' - v303_does_not_support_patternProperties = 'v3.0.3 does not support the patternProperties keyword' bug_does_not_support_boolean_schemas_in_location = 'v3.1.0 does not support boolean schemas in location, https://github.com/swagger-api/swagger-parser/issues/1770' v303_does_not_support_contains = 'v3.0.3 does not support the contains keyword' bug_does_not_support_definitions = 'swagger-parser does not support the $defs keyword, https://github.com/swagger-api/swagger-parser/issues/1970' @@ -91,7 +90,6 @@ class ExclusionReason: swagger_parser_validation_missing_bug = 'swagger-parser has a bug where validations are unset, https://github.com/swagger-api/swagger-parser/issues/1762' swagger_parser_items_type_bug = "swagger-parser has a bug where schema type is incorrectly set with items, https://github.com/swagger-api/swagger-parser/issues/1763" v303_does_not_support_id = 'v3.0.3 does not support the $id keyword' - v303_does_not_support_patternProperties = 'v3.0.3 does not support the patternProperties keyword' v303_does_not_support_propertyNames = 'v3.0.3 does not support the propertyNames keyword' v303_does_not_support_items_schema_array = 'v3.0.3 does not support an array of schemas for items' swagger_parser_exception = 'swagger-parser threw and exception for this test case' @@ -157,10 +155,6 @@ class ExclusionReason: 'heterogeneous enum validation': ExclusionReason.swagger_parser_enum_type_bug, 'heterogeneous enum-with-null validation': ExclusionReason.swagger_parser_enum_type_bug, }, - (json_schema_test_draft, 'additionalProperties.json'): { - 'non-ASCII pattern with additionalProperties': ExclusionReason.v303_does_not_support_patternProperties, - 'additionalProperties being false does not allow other properties': ExclusionReason.v303_does_not_support_patternProperties, - }, (json_schema_test_draft, 'items.json'): { 'an array of schemas for items': ExclusionReason.v303_does_not_support_array_of_types, 'items and subitems': ExclusionReason.bug_does_not_support_definitions, @@ -216,8 +210,10 @@ class ExclusionReason: 'oneOf with boolean schemas, more than one true': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'oneOf with boolean schemas, all false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, + (json_schema_test_draft, 'patternProperties.json'): { + "patternProperties with boolean schemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + }, (json_schema_test_draft, 'properties.json'): { - 'properties, patternProperties, additionalProperties interaction': ExclusionReason.v303_does_not_support_patternProperties, 'properties with boolean schema': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, (json_schema_test_draft, 'ref.json'): { @@ -286,7 +282,6 @@ class ExclusionReason: (json_schema_test_draft, 'exclusiveMaximum.json'): ExclusionReason.swagger_parser_validation_missing_bug, (json_schema_test_draft, 'exclusiveMinimum.json'): ExclusionReason.swagger_parser_validation_missing_bug, (json_schema_test_draft, 'id.json'): ExclusionReason.v303_does_not_support_id, - (json_schema_test_draft, 'patternProperties.json'): ExclusionReason.v303_does_not_support_patternProperties, (json_schema_test_draft, 'propertyNames.json'): ExclusionReason.v303_does_not_support_propertyNames, (json_schema_test_draft, 'refRemote.json'): ExclusionReason.ref_not_resolved, (json_schema_test_draft, 'unknownKeyword.json'): ExclusionReason.bug_does_not_support_definitions, @@ -325,7 +320,7 @@ class ExclusionReason: 'not.json': (json_schema_test_draft,), 'oneOf.json': (json_schema_test_draft,), 'pattern.json': (json_schema_test_draft,), -# 'patternProperties.json': (json_schema_test_draft,), + 'patternProperties.json': (json_schema_test_draft,), 'properties.json': (json_schema_test_draft,), # 'propertyNames.json': (json_schema_test_draft,), 'ref.json': (json_schema_test_draft,), From 2684dfe62d1ebb668a5ad76527c1dd986f522578 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 26 Sep 2023 10:15:14 -0700 Subject: [PATCH 18/34] Moves additionalProperties evaluation to the end so keywords can be validated first --- .../3_1_0_unit_test/python/.openapi-generator/FILES | 7 ------- ...ties_being_false_does_not_allow_other_properties.py | 2 +- ...dditionalproperties_does_not_look_in_applicators.py | 2 +- .../non_ascii_pattern_with_additionalproperties.py | 2 +- ...tternproperties_additionalproperties_interaction.py | 2 +- .../schema_cls/_schema_anytype_or_multitype.hbs | 10 +++++----- .../components/schemas/schema_cls/_schema_dict.hbs | 6 +++--- 7 files changed, 12 insertions(+), 19 deletions(-) diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 0965dda66b6..3c0b6617f54 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -3140,13 +3140,6 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py -test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py -test/components/schema/test_non_ascii_pattern_with_additionalproperties.py -test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py -test/components/schema/test_patternproperties_with_null_valued_instance_properties.py -test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py -test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py index 3721f297e33..6df5468c349 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py @@ -114,7 +114,6 @@ class AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties( """ types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore - additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore pattern_properties: typing.Mapping[ schemas.PatternInfo, typing.Type[schemas.Schema] @@ -125,6 +124,7 @@ class AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties( ): V, } ) + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore type_to_output_cls: typing.Mapping[ typing.Type, typing.Type diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py index 800edafe7cf..f7d3cac90b8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py @@ -145,8 +145,8 @@ class AdditionalpropertiesDoesNotLookInApplicators( Do not edit the class manually. """ # any type - additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore type_to_output_cls: typing.Mapping[ typing.Type, typing.Type diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py index 57936c44cf4..17a3bdf903a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py @@ -49,7 +49,6 @@ class NonAsciiPatternWithAdditionalproperties( Do not edit the class manually. """ types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) - additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore pattern_properties: typing.Mapping[ schemas.PatternInfo, typing.Type[schemas.Schema] @@ -60,6 +59,7 @@ class NonAsciiPatternWithAdditionalproperties( ): CircumflexAccentLatinSmallLetterAWithAcute, } ) + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore type_to_output_cls: typing.Mapping[ typing.Type, typing.Type diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py index 7a0801a9680..6f3a4129f28 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py @@ -155,7 +155,6 @@ class PropertiesPatternpropertiesAdditionalpropertiesInteraction( """ types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore - additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore pattern_properties: typing.Mapping[ schemas.PatternInfo, typing.Type[schemas.Schema] @@ -166,6 +165,7 @@ class PropertiesPatternpropertiesAdditionalpropertiesInteraction( ): FO, } ) + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore type_to_output_cls: typing.Mapping[ typing.Type, typing.Type diff --git a/src/main/resources/python/components/schemas/schema_cls/_schema_anytype_or_multitype.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_anytype_or_multitype.hbs index 142d4a34c5b..8670233e678 100644 --- a/src/main/resources/python/components/schemas/schema_cls/_schema_anytype_or_multitype.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_anytype_or_multitype.hbs @@ -54,9 +54,6 @@ class {{jsonPathPiece.camelCase}}( {{#if properties}} {{> components/schemas/schema_cls/_properties }} {{/if}} -{{#if additionalProperties}} - {{> components/schemas/schema_cls/_additional_properties }} -{{/if}} {{#if uniqueItems}} {{> components/schemas/schema_cls/_unique_items }} {{/if}} @@ -114,12 +111,15 @@ class {{jsonPathPiece.camelCase}}( {{#if patternProperties}} {{> components/schemas/schema_cls/_pattern_properties }} {{/if}} -{{#if unevaluatedItems}} - {{> components/schemas/schema_cls/_unevaluated_items }} +{{#if additionalProperties}} + {{> components/schemas/schema_cls/_additional_properties }} {{/if}} {{#if unevaluatedProperties}} {{> components/schemas/schema_cls/_unevaluated_properties }} {{/if}} +{{#if unevaluatedItems}} + {{> components/schemas/schema_cls/_unevaluated_items }} +{{/if}} {{#or mapOutputJsonPathPiece arrayOutputJsonPathPiece}} type_to_output_cls: typing.Mapping[ typing.Type, diff --git a/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs index f5e2b35dd98..50b11d9e66b 100644 --- a/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs @@ -25,9 +25,6 @@ class {{jsonPathPiece.camelCase}}( {{#if properties}} {{> components/schemas/schema_cls/_properties }} {{/if}} - {{#if additionalProperties}} - {{> components/schemas/schema_cls/_additional_properties }} - {{/if}} {{#neq maxProperties null}} {{> components/schemas/schema_cls/_max_properties }} {{/neq}} @@ -61,6 +58,9 @@ class {{jsonPathPiece.camelCase}}( {{#if unevaluatedProperties}} {{> components/schemas/schema_cls/_unevaluated_properties }} {{/if}} + {{#if additionalProperties}} + {{> components/schemas/schema_cls/_additional_properties }} + {{/if}} {{#if mapOutputJsonPathPiece}} type_to_output_cls: typing.Mapping[ typing.Type, From 5f0da6cfd45d0ebd047ff4fd5781cd1498068f49 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 26 Sep 2023 11:32:31 -0700 Subject: [PATCH 19/34] patternProperties tests added, turns off broken addProps test --- .../python/.openapi-generator/FILES | 151 +++++++++--- .../client/3_1_0_unit_test/python/README.md | 3 - .../apis/tags/additional_properties_api.md | 2 - .../docs/apis/tags/content_type_json_api.md | 2 - .../apis/tags/operation_request_body_api.md | 1 - .../python/docs/apis/tags/path_post_api.md | 2 - ...esponse_content_content_type_schema_api.md | 1 - ...g_false_does_not_allow_other_properties.md | 43 ---- .../post.md | 119 --------- .../content/application_json/schema.md | 10 - .../post.md | 111 --------- .../content/application_json/schema.md | 10 - .../src/unit_test_api/apis/path_to_api.py | 6 - ...not_allow_other_properties_request_body.py | 13 - ...perties_response_body_for_content_types.py | 13 - .../apis/tags/additional_properties_api.py | 12 +- .../apis/tags/content_type_json_api.py | 4 - .../apis/tags/operation_request_body_api.py | 2 - .../unit_test_api/apis/tags/path_post_api.py | 4 - ...esponse_content_content_type_schema_api.py | 2 - ...g_false_does_not_allow_other_properties.py | 150 ------------ .../components/schemas/__init__.py | 1 - .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 132 ---------- .../post/request_body/__init__.py | 20 -- .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 -- .../__init__.py | 5 - .../post/__init__.py | 0 .../post/operation.py | 113 --------- .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 --- .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 - .../src/unit_test_api/schemas/validation.py | 37 ++- ...g_false_does_not_allow_other_properties.py | 87 ------- .../__init__.py | 0 .../test_post.py | 214 ----------------- .../__init__.py | 0 .../test_post.py | 225 ------------------ .../resources/python/schemas/validation.hbs | 43 +++- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 78 ------ .../3_1/unit_test_spec/spec_writer.py | 4 + 48 files changed, 199 insertions(+), 1501 deletions(-) delete mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md delete mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py delete mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 3c0b6617f54..4a1f8427961 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -38,7 +38,6 @@ docs/apis/tags/type_api.md docs/apis/tags/unique_items_api.md docs/components/schema/_not.md docs/components/schema/additionalproperties_are_allowed_by_default.md -docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md docs/components/schema/additionalproperties_can_exist_by_itself.md docs/components/schema/additionalproperties_does_not_look_in_applicators.md docs/components/schema/additionalproperties_with_null_valued_instance_properties.md @@ -159,8 +158,6 @@ docs/components/schema/uri_template_format.md docs/components/schema/uuid_format.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md -docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md -docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md @@ -401,8 +398,6 @@ docs/paths/request_body_post_uuid_format_request_body/post.md docs/paths/request_body_post_uuid_format_request_body/post/request_body/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md -docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md -docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md @@ -654,7 +649,6 @@ src/unit_test_api/apis/__init__.py src/unit_test_api/apis/path_to_api.py src/unit_test_api/apis/paths/__init__.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py -src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.py @@ -775,7 +769,6 @@ src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py -src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -935,7 +928,6 @@ src/unit_test_api/components/__init__.py src/unit_test_api/components/schema/__init__.py src/unit_test_api/components/schema/_not.py src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py -src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py src/unit_test_api/components/schema/additionalproperties_with_null_valued_instance_properties.py @@ -1069,15 +1061,6 @@ src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_de src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py -src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -2157,14 +2140,6 @@ src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_d src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py -src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -3140,8 +3115,126 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/test_paths/__init__.py -test/test_paths/__init__.py +test/components/schema/test__not.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_does_not_look_in_applicators.py +test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py +test/components/schema/test_additionalproperties_with_schema.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py +test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_contains_keyword_validation.py +test/components/schema/test_contains_with_null_instance_elements.py +test/components/schema/test_date_format.py +test/components/schema/test_date_time_format.py +test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py +test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py +test/components/schema/test_dependent_schemas_single_dependency.py +test/components/schema/test_duration_format.py +test/components/schema/test_email_format.py +test/components/schema/test_empty_dependents.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_float_division_inf.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_idn_email_format.py +test/components/schema/test_idn_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_iri_format.py +test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_contains.py +test/components/schema/test_items_does_not_look_in_applicators_valid_case.py +test/components/schema/test_items_with_null_instance_elements.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maxcontains_without_contains_is_ignored.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_mincontains_without_contains_is_ignored.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py +test/components/schema/test_multiple_dependents_required.py +test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py +test/components/schema/test_multiple_types_can_be_specified_in_an_array.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_non_ascii_pattern_with_additionalproperties.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py +test/components/schema/test_patternproperties_with_null_valued_instance_properties.py +test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py +test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_properties_with_null_valued_instance_properties.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py +test/components/schema/test_regex_format.py +test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py +test/components/schema/test_relative_json_pointer_format.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py +test/components/schema/test_single_dependency.py +test/components/schema/test_small_multiple_of_large_integer.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_time_format.py +test/components/schema/test_type_array_object_or_null.py +test/components/schema/test_type_array_or_object.py +test/components/schema/test_type_as_array_with_one_item.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_false_with_an_array_of_items.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uniqueitems_with_an_array_of_items.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py +test/components/schema/test_uuid_format.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3384,8 +3477,6 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/test_post.py -test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py -test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_does_not_look_in_applicators_request_body/__init__.py @@ -3626,8 +3717,6 @@ test/test_paths/test_request_body_post_uuid_format_request_body/__init__.py test/test_paths/test_request_body_post_uuid_format_request_body/test_post.py test/test_paths/test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/test_post.py -test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py -test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index c86836fb1f8..ca5e9f5dc97 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -171,7 +171,6 @@ All URIs are relative to the selected server HTTP request | Method | Description ------------ | ------ | ------------- /requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | -/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_request_body](docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | /requestBody/postAdditionalpropertiesCanExistByItselfRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | /requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | /requestBody/postAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) | @@ -292,7 +291,6 @@ HTTP request | Method | Description /requestBody/postUriTemplateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) | /requestBody/postUuidFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) | /responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | -/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | @@ -418,7 +416,6 @@ HTTP request | Method | Description Class | Description ----- | ------------ [AdditionalpropertiesAreAllowedByDefault](docs/components/schema/additionalproperties_are_allowed_by_default.md) | -[AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties](docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [AdditionalpropertiesCanExistByItself](docs/components/schema/additionalproperties_can_exist_by_itself.md) | [AdditionalpropertiesDoesNotLookInApplicators](docs/components/schema/additionalproperties_does_not_look_in_applicators.md) | [AdditionalpropertiesWithNullValuedInstanceProperties](docs/components/schema/additionalproperties_with_null_valued_instance_properties.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md index 3a160c70514..eb2aae44ff9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/additional_properties_api.md @@ -11,8 +11,6 @@ Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 56afc13dade..b439f3428cb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -11,8 +11,6 @@ Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index f2bbd4f0291..1cfe76330cc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -10,7 +10,6 @@ All URIs are relative to the selected server Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | [**post_additionalproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index e0bc16fa1ce..1d654edacdd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -11,8 +11,6 @@ Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_request_body**](../../paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index cbbdfe9ad49..3d6c9c3f051 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -10,7 +10,6 @@ All URIs are relative to the selected server Method | Description ------ | ------------- [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | -[**post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) | [**post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md deleted file mode 100644 index f593dfb64e9..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/components/schema/additionalproperties_being_false_does_not_allow_other_properties.md +++ /dev/null @@ -1,43 +0,0 @@ -# AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties -unit_test_api.components.schema.additionalproperties_being_false_does_not_allow_other_properties -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | - -## AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput -``` -type: typing.TypedDict -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] -**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | | [optional] - -## AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] - -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**foo** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] -**bar** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset | | [optional] - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**foo** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] -**bar** | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | a constructor - -[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md deleted file mode 100644 index 7f7731d2c89..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post.md +++ /dev/null @@ -1,119 +0,0 @@ -unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | -| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_additionalproperties_being_false_does_not_allow_other_properties_request_body | [AdditionalPropertiesApi](../../apis/tags/additional_properties_api.md) | This api is only for tag=additionalProperties | -| post | ApiForPost | This api is only for this endpoint | -| post | RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody | This api is only for path=/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -[body](#requestbody) | typing.Union[[additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict)] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -### RequestBody - -#### Content Type To Schema -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) - -#### RequestBody content ApplicationJson Schema2 -unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | Unset | body was not defined | -headers | Unset | headers were not defined | - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import operation_request_body_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) - - # example passing only required values which don't have defaults set - body = additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate({ - "foo": None, - "bar": None, - }) - try: - api_response = api_instance.post_additionalproperties_being_false_does_not_allow_other_properties_request_body( - body=body, - ) - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_additionalproperties_being_false_does_not_allow_other_properties_request_body: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to AdditionalPropertiesApi API]](../../apis/tags/additional_properties_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md deleted file mode 100644 index 75a0e70c42c..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.request_body.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md deleted file mode 100644 index e38ce06cc5f..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post.md +++ /dev/null @@ -1,111 +0,0 @@ -unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.operation -# Operation Method Name - -| Method Name | Api Class | Notes | -| ----------- | --------- | ----- | -| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | -| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | -| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [AdditionalPropertiesApi](../../apis/tags/additional_properties_api.md) | This api is only for tag=additionalProperties | -| post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | -| post | ApiForPost | This api is only for this endpoint | -| post | ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes | This api is only for path=/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes | - -## Table of Contents -- [General Info](#general-info) -- [Arguments](#arguments) -- [Return Types](#return-types) -- [Servers](#servers) -- [Code Sample](#code-sample) - -## General Info -| Field | Value | -| ----- | ----- | -| Path | "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes" | -| HTTP Method | post | - -## Arguments - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client -server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned - -## Return Types - -HTTP Status Code | Class | Description -------------- | ------------- | ------------- -n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success - -## ResponseFor200 - -### Description -success - -### ResponseFor200 ApiResponse -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -[body](#responsefor200-body) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | | -headers | Unset | headers were not defined | - -### ResponseFor200 Body -Content-Type | Schema ------------- | ------- -"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) - -### Body Details -#### ResponseFor200 content ApplicationJson Schema2 -unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -##### Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) - -## Servers - -Set the available servers by defining your used servers in ApiConfiguration.server_info -Then select your server by setting a server index in ApiConfiguration.server_index_info or by -passing server_index in to the endpoint method. -- these servers are the general api servers -- defaults to server_index=0, server.url = https://someserver.com/v1 - -server_index | Class | Description ------------- | ----- | ------------ -0 | [Server0](../../servers/server_0.md) | - -## Code Sample - -```python -import unit_test_api -from unit_test_api.configurations import api_configuration -from unit_test_api.apis.tags import path_post_api -from pprint import pprint -used_configuration = api_configuration.ApiConfiguration( -) -# Enter a context with an instance of the API client -with unit_test_api.ApiClient(used_configuration) as api_client: - # Create an instance of the API class - api_instance = path_post_api.PathPostApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - api_response = api_instance.post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types() - pprint(api_response) - except unit_test_api.ApiException as e: - print("Exception when calling PathPostApi->post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types: %s\n" % e) -``` - -[[Back to top]](#top) -[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) -[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) -[[Back to AdditionalPropertiesApi API]](../../apis/tags/additional_properties_api.md) -[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) -[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md deleted file mode 100644 index c696b99c741..00000000000 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema2 -unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties**](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdictinput), [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) | [additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict](../../../../../../../../components/schema/additionalproperties_being_false_does_not_allow_other_properties.md#additionalpropertiesbeingfalsedoesnotallowotherpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 189d9666e67..3193fc92d0f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -2,7 +2,6 @@ import typing_extensions from unit_test_api.apis.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body import RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody -from unit_test_api.apis.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body import RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body import RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body import RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body import RequestBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody @@ -123,7 +122,6 @@ from unit_test_api.apis.paths.request_body_post_uri_template_format_request_body import RequestBodyPostUriTemplateFormatRequestBody from unit_test_api.apis.paths.request_body_post_uuid_format_request_body import RequestBodyPostUuidFormatRequestBody from unit_test_api.apis.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes -from unit_test_api.apis.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes @@ -248,7 +246,6 @@ 'PathToApi', { "/requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody], - "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody], "/requestBody/postAdditionalpropertiesCanExistByItselfRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody], "/requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody], "/requestBody/postAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody], @@ -369,7 +366,6 @@ "/requestBody/postUriTemplateFormatRequestBody": typing.Type[RequestBodyPostUriTemplateFormatRequestBody], "/requestBody/postUuidFormatRequestBody": typing.Type[RequestBodyPostUuidFormatRequestBody], "/responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes], - "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], @@ -495,7 +491,6 @@ path_to_api = PathToApi( { "/requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody": RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody, - "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody": RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, "/requestBody/postAdditionalpropertiesCanExistByItselfRequestBody": RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody, "/requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody": RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, "/requestBody/postAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, @@ -616,7 +611,6 @@ "/requestBody/postUriTemplateFormatRequestBody": RequestBodyPostUriTemplateFormatRequestBody, "/requestBody/postUuidFormatRequestBody": RequestBodyPostUuidFormatRequestBody, "/responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, - "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py deleted file mode 100644 index a54c87585c7..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import ApiForPost - - -class RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py deleted file mode 100644 index 685b80267a1..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import ApiForPost - - -class ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes( - ApiForPost, -): - pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py index 86e20969871..d851911cfe6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py @@ -6,34 +6,30 @@ from unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.operation import PostAdditionalpropertiesCanExistByItselfRequestBody from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody -from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.post.operation import PostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_with_schema_request_body.post.operation import PostAdditionalpropertiesWithSchemaRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body.post.operation import PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody +from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody class AdditionalPropertiesApi( PostAdditionalpropertiesCanExistByItselfRequestBody, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, - PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, - PostAdditionalpropertiesAreAllowedByDefaultRequestBody, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes, PostAdditionalpropertiesWithSchemaRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, PostNonAsciiPatternWithAdditionalpropertiesRequestBody, + PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, + PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostAdditionalpropertiesWithNullValuedInstancePropertiesRequestBody, ): """NOTE: This class is auto generated by OpenAPI JSON Schema Generator diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index c8b30600558..a677bf0c81f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -148,7 +148,6 @@ from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody @@ -184,7 +183,6 @@ from unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.operation import PostNotResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.operation import PostMinlengthValidationResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes @@ -393,7 +391,6 @@ class ContentTypeJsonApi( PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, @@ -429,7 +426,6 @@ class ContentTypeJsonApi( PostNotResponseBodyForContentTypes, PostRequiredWithEscapedCharactersRequestBody, PostMinlengthValidationResponseBodyForContentTypes, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index f4329485c06..4dc78415873 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -66,7 +66,6 @@ from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody -from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody @@ -190,7 +189,6 @@ class OperationRequestBodyApi( PostRequiredWithEscapedCharactersRequestBody, PostMultipleDependentsRequiredRequestBody, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostByNumberRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 864f885d9bb..9c06c4ac17f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -148,7 +148,6 @@ from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody @@ -184,7 +183,6 @@ from unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.operation import PostNotResponseBodyForContentTypes from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.operation import PostMinlengthValidationResponseBodyForContentTypes -from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes @@ -393,7 +391,6 @@ class PathPostApi( PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, @@ -429,7 +426,6 @@ class PathPostApi( PostNotResponseBodyForContentTypes, PostRequiredWithEscapedCharactersRequestBody, PostMinlengthValidationResponseBodyForContentTypes, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index b15f37b5c82..c2da4bd5611 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -33,7 +33,6 @@ from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes -from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_contains_with_null_instance_elements_response_body_for_content_types.post.operation import PostContainsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes @@ -157,7 +156,6 @@ class ResponseContentContentTypeSchemaApi( PostUriReferenceFormatResponseBodyForContentTypes, PostDurationFormatResponseBodyForContentTypes, PostIdnEmailFormatResponseBodyForContentTypes, - PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes, PostContainsWithNullInstanceElementsResponseBodyForContentTypes, PostDateTimeFormatResponseBodyForContentTypes, PostEnumsInPropertiesResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py deleted file mode 100644 index 6df5468c349..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additionalproperties_being_false_does_not_allow_other_properties.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from __future__ import annotations -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -AdditionalProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema -V: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Foo: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Bar: typing_extensions.TypeAlias = schemas.AnyTypeSchema -Properties = typing.TypedDict( - 'Properties', - { - "foo": typing.Type[Foo], - "bar": typing.Type[Bar], - } -) - - -class AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]): - - __required_keys__: typing.FrozenSet[str] = frozenset({ - }) - __optional_keys__: typing.FrozenSet[str] = frozenset({ - "foo", - "bar", - }) - - def __new__( - cls, - *, - foo: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES, - schemas.Unset - ] = schemas.unset, - bar: typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES, - schemas.Unset - ] = schemas.unset, - configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, - ): - arg_: typing.Dict[str, typing.Any] = {} - for key, val in ( - ("foo", foo), - ("bar", bar), - ): - if isinstance(val, schemas.Unset): - continue - arg_[key] = val - used_arg_ = typing.cast(AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, arg_) - return AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate(used_arg_, configuration=configuration_) - - @staticmethod - def from_dict_( - arg: typing.Union[ - AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, - AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict - ], - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict: - return AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate(arg, configuration=configuration) - - @property - def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: - val = self.get("foo", schemas.unset) - if isinstance(val, schemas.Unset): - return val - return typing.cast( - schemas.OUTPUT_BASE_TYPES, - val - ) - - @property - def bar(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: - val = self.get("bar", schemas.unset) - if isinstance(val, schemas.Unset): - return val - return typing.cast( - schemas.OUTPUT_BASE_TYPES, - val - ) -AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput = typing.TypedDict( - 'AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput', - { - "foo": typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - "bar": typing.Union[ - schemas.INPUT_TYPES_ALL, - schemas.OUTPUT_BASE_TYPES - ], - }, - total=False -) - - -@dataclasses.dataclass(frozen=True) -class AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties( - schemas.Schema[AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, tuple] -): - """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. - Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator - - Do not edit the class manually. - """ - types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) - properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore - pattern_properties: typing.Mapping[ - schemas.PatternInfo, - typing.Type[schemas.Schema] - ] = dataclasses.field( - default_factory=lambda: { - schemas.PatternInfo( - pattern=r'^v' # noqa: E501 - ): V, - } - ) - additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore - type_to_output_cls: typing.Mapping[ - typing.Type, - typing.Type - ] = dataclasses.field( - default_factory=lambda: { - schemas.immutabledict: AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict - } - ) - - @classmethod - def validate( - cls, - arg: typing.Union[ - AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, - AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, - ], - configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None - ) -> AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict: - return super().validate_base( - arg, - configuration=configuration, - ) - diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 1276e2a7996..dc1f32ef85d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -12,7 +12,6 @@ # sys.setrecursionlimit(n) from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault -from unit_test_api.components.schema.additionalproperties_being_false_does_not_allow_other_properties import AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from unit_test_api.components.schema.additionalproperties_does_not_look_in_applicators import AdditionalpropertiesDoesNotLookInApplicators from unit_test_api.components.schema.additionalproperties_with_null_valued_instance_properties import AdditionalpropertiesWithNullValuedInstanceProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py deleted file mode 100644 index d711a274ed3..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body import RequestBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody - -path = "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py deleted file mode 100644 index a03fa8b5dc0..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/operation.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import additionalproperties_being_false_does_not_allow_other_properties - -from .. import path -from .responses import response_200 -from . import request_body - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_additionalproperties_being_false_does_not_allow_other_properties_request_body( - self, - body: typing.Union[ - additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, - additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, - ], - *, - skip_deserialization: typing.Literal[False] = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_additionalproperties_being_false_does_not_allow_other_properties_request_body( - self, - body: typing.Union[ - additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, - additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, - ], - *, - skip_deserialization: typing.Literal[True], - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_additionalproperties_being_false_does_not_allow_other_properties_request_body( - self, - body: typing.Union[ - additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDictInput, - additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict, - ], - *, - skip_deserialization: bool = False, - content_type: typing.Literal["application/json"] = "application/json", - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers() - # TODO add cookie handling - - fields, serialized_body = self._get_fields_and_body( - request_body=request_body.RequestBody, - body=body, - content_type=content_type, - headers=headers - ) - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - fields=fields, - body=serialized_body, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_additionalproperties_being_false_does_not_allow_other_properties_request_body = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_request_body - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py deleted file mode 100644 index 499cda37855..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -class RequestBody(api_client.RequestBody): - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } - required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py deleted file mode 100644 index 3bab9591dae..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/request_body/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import additionalproperties_being_false_does_not_allow_other_properties -Schema2: typing_extensions.TypeAlias = additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py deleted file mode 100644 index a7f4db2e0de..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/post/responses/response_200/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: schemas.Unset = schemas.unset - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py deleted file mode 100644 index 3ee371e8662..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from unit_test_api.apis.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes - -path = "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py deleted file mode 100644 index 02bceba497e..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/operation.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api import api_client -from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 - - -__StatusCodeToResponse = typing.TypedDict( - '__StatusCodeToResponse', - { - '200': typing.Type[response_200.ResponseFor200], - } -) -_status_code_to_response: __StatusCodeToResponse = { - '200': response_200.ResponseFor200, -} -_non_error_status_codes = frozenset({ - '200', -}) - -_all_accept_content_types = ( - "application/json", -) - - -class BaseApi(api_client.Api): - @typing.overload - def _post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[False] = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> response_200.ApiResponse: ... - - @typing.overload - def _post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types( - self, - *, - skip_deserialization: typing.Literal[True], - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ) -> api_response.ApiResponseWithoutDeserialization: ... - - def _post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types( - self, - *, - skip_deserialization: bool = False, - accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, - server_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, - ): - """ - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path - headers = self._get_headers(accept_content_types=accept_content_types) - # TODO add cookie handling - host = self.api_client.configuration.get_server_url( - "servers", server_index - ) - - raw_response = self.api_client.call_api( - resource_path=used_path, - method='post', - host=host, - headers=headers, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(skip_deser_response) - return skip_deser_response - - status = str(raw_response.status) - if status in _non_error_status_codes: - status_code = typing.cast( - typing.Literal[ - '200', - ], - status - ) - return _status_code_to_response[status_code].deserialize( - raw_response, self.api_client.schema_configuration) - - response = api_response.ApiResponseWithoutDeserialization(response=raw_response) - self._verify_response_status(response) - return response - - -class PostAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes(BaseApi): - # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names - post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types - - -class ApiForPost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - post = BaseApi._post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py deleted file mode 100644 index 59ff4f2154d..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .content.application_json import schema as application_json_schema - - -@dataclasses.dataclass -class ApiResponse(api_response.ApiResponse): - response: urllib3.HTTPResponse - body: application_json_schema.additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesDict - headers: schemas.Unset = schemas.unset - - -class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): - @classmethod - def get_response(cls, response, headers, body) -> ApiResponse: - return ApiResponse(response=response, body=body, headers=headers) - - - class ApplicationJsonMediaType(api_client.MediaType): - schema: typing_extensions.TypeAlias = application_json_schema.Schema2 - content = { - 'application/json': ApplicationJsonMediaType, - } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py deleted file mode 100644 index 3bab9591dae..00000000000 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - - -from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] -from unit_test_api.components.schema import additionalproperties_being_false_does_not_allow_other_properties -Schema2: typing_extensions.TypeAlias = additionalproperties_being_false_does_not_allow_other_properties.AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/schemas/validation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/schemas/validation.py index 6ae631e8efc..27555a82713 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/schemas/validation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/schemas/validation.py @@ -99,6 +99,14 @@ def _validate( validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -113,6 +121,8 @@ def _validate( elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -737,19 +747,25 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1148,7 +1164,7 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, @@ -1178,6 +1194,21 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...], diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py deleted file mode 100644 index ef193f16186..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/components/schema/test_additionalproperties_being_false_does_not_allow_other_properties.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.1.0 sample spec - sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 - The version of the OpenAPI document: 0.0.1 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest - -import unit_test_api -from unit_test_api.components.schema.additionalproperties_being_false_does_not_allow_other_properties import AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties -from unit_test_api.configurations import schema_configuration - - -class TestAdditionalpropertiesBeingFalseDoesNotAllowOtherProperties(unittest.TestCase): - """AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties unit test stubs""" - configuration = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - - def test_patternproperties_are_not_additional_properties_passes(self): - # patternProperties are not additional properties - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( - { - "foo": - 1, - "vroom": - 2, - }, - configuration=self.configuration - ) - - def test_no_additional_properties_is_valid_passes(self): - # no additional properties is valid - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( - { - "foo": - 1, - }, - configuration=self.configuration - ) - - def test_ignores_arrays_passes(self): - # ignores arrays - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( - [ - 1, - 2, - 3, - ], - configuration=self.configuration - ) - - def test_ignores_other_non_objects_passes(self): - # ignores other non-objects - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( - 12, - configuration=self.configuration - ) - - def test_ignores_strings_passes(self): - # ignores strings - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( - "foobarbaz", - configuration=self.configuration - ) - - def test_an_additional_property_is_invalid_fails(self): - # an additional property is invalid - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties.validate( - { - "foo": - 1, - "bar": - 2, - "quux": - "boom", - }, - configuration=self.configuration - ) - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py deleted file mode 100644 index 0ce6ae18cca..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body/test_post.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.request_body_post_additionalproperties_being_false_does_not_allow_other_properties_request_body.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body = '' - - def test_patternproperties_are_not_additional_properties_passes(self): - content_type = 'application/json' - # patternProperties are not additional properties - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo": - 1, - "vroom": - 2, - } - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_no_additional_properties_is_valid_passes(self): - content_type = 'application/json' - # no additional properties is valid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo": - 1, - } - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_ignores_arrays_passes(self): - content_type = 'application/json' - # ignores arrays - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - [ - 1, - 2, - 3, - ] - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_ignores_other_non_objects_passes(self): - content_type = 'application/json' - # ignores other non-objects - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 12 - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_ignores_strings_passes(self): - content_type = 'application/json' - # ignores strings - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - "foobarbaz" - ) - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - mock_request.return_value = self.response( - self.json_bytes(self.response_body), - status=self.response_status - ) - api_response = self.api.post( - body=body, - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody", - method='post'.upper(), - body=self.json_bytes(payload), - content_type=content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - assert isinstance(api_response.body, schemas.Unset) - - def test_an_additional_property_is_invalid_fails(self): - content_type = 'application/json' - # an additional property is invalid - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo": - 1, - "bar": - 2, - "quux": - "boom", - } - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - body = post.request_body.RequestBody.content["application/json"].schema.validate( - payload, - configuration=self.schema_config - ) - self.api.post(body=body) - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py deleted file mode 100644 index 37bc19e2408..00000000000 --- a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types/test_post.py +++ /dev/null @@ -1,225 +0,0 @@ -# coding: utf-8 - -""" - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -""" - -import unittest -from unittest.mock import patch - -import urllib3 -import typing_extensions - -import unit_test_api -from unit_test_api.paths.response_body_post_additionalproperties_being_false_does_not_allow_other_properties_response_body_for_content_types.post import operation as post # noqa: E501 -from unit_test_api import schemas, api_client -from unit_test_api.configurations import api_configuration, schema_configuration - -from .. import ApiTestMixin - - -class TestPost(ApiTestMixin, unittest.TestCase): - """ - Post unit test stubs - """ - api_config = api_configuration.ApiConfiguration() - schema_config = schema_configuration.SchemaConfiguration( - disabled_json_schema_keywords={'format'} - ) - used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) - api = post.ApiForPost(api_client=used_api_client) # noqa: E501 - - response_status = 200 - response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema - assert response_body_schema is not None - - def test_patternproperties_are_not_additional_properties_passes(self): - # patternProperties are not additional properties - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo": - 1, - "vroom": - 2, - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_no_additional_properties_is_valid_passes(self): - # no additional properties is valid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo": - 1, - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_ignores_arrays_passes(self): - # ignores arrays - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - [ - 1, - 2, - 3, - ] - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_ignores_other_non_objects_passes(self): - # ignores other non-objects - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - 12 - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_ignores_strings_passes(self): - # ignores strings - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - "foobarbaz" - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - api_response = self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", - method='post'.upper(), - accept_content_type=accept_content_type, - ) - - assert isinstance(api_response.response, urllib3.HTTPResponse) - deserialized_response_body = self.response_body_schema.validate( - payload, - configuration=self.schema_config - ) - assert api_response.body == deserialized_response_body - - def test_an_additional_property_is_invalid_fails(self): - # an additional property is invalid - accept_content_type = 'application/json' - - with patch.object(urllib3.PoolManager, 'request') as mock_request: - payload = ( - { - "foo": - 1, - "bar": - 2, - "quux": - "boom", - } - ) - mock_request.return_value = self.response( - self.json_bytes(payload), - status=self.response_status - ) - with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): - self.api.post( - accept_content_types=(accept_content_type,) - ) - self.assert_pool_manager_request_called_with( - mock_request, - self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes", - method='post'.upper(), - content_type=None, - accept_content_type=accept_content_type, - ) - -if __name__ == '__main__': - unittest.main() diff --git a/src/main/resources/python/schemas/validation.hbs b/src/main/resources/python/schemas/validation.hbs index 50e9356601d..6dc48a8a1af 100644 --- a/src/main/resources/python/schemas/validation.hbs +++ b/src/main/resources/python/schemas/validation.hbs @@ -107,6 +107,14 @@ class SchemaValidator: validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -121,6 +129,8 @@ class SchemaValidator: elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -805,7 +815,10 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, {{#if nonCompliantUseDiscriminatorIfCompositionFails}} @@ -814,13 +827,16 @@ def validate_additional_properties( ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1310,14 +1326,11 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, validation_metadata: ValidationMetadata, -{{#if nonCompliantUseDiscriminatorIfCompositionFails}} - **kwargs -{{/if}} ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None @@ -1343,6 +1356,24 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, +{{#if nonCompliantUseDiscriminatorIfCompositionFails}} + **kwargs +{{/if}} +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...], diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index a87a8da21e0..e0d07b2e27e 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -42,42 +42,6 @@ tags: - name: type - name: uniqueItems paths: - /requestBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody: - post: - operationId: postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - additionalProperties - /responseBody/postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes: - post: - operationId: postAdditionalpropertiesBeingFalseDoesNotAllowOtherPropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - additionalProperties /requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody: post: operationId: postNonAsciiPatternWithAdditionalpropertiesRequestBody @@ -4400,14 +4364,6 @@ paths: - uniqueItems components: schemas: - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties: - $schema: https://json-schema.org/draft/2020-12/schema - properties: - foo: {} - bar: {} - patternProperties: - ^v: {} - additionalProperties: false NonAsciiPatternWithAdditionalproperties: $schema: https://json-schema.org/draft/2020-12/schema patternProperties: @@ -5026,40 +4982,6 @@ components: - type: boolean uniqueItems: false x-schema-test-examples: - AdditionalpropertiesBeingFalseDoesNotAllowOtherProperties: - NoAdditionalPropertiesIsValid: - description: no additional properties is valid - data: - foo: 1 - valid: true - AnAdditionalPropertyIsInvalid: - description: an additional property is invalid - data: - foo: 1 - bar: 2 - quux: boom - valid: false - IgnoresArrays: - description: ignores arrays - data: - - 1 - - 2 - - 3 - valid: true - IgnoresStrings: - description: ignores strings - data: foobarbaz - valid: true - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 - valid: true - PatternpropertiesAreNotAdditionalProperties: - description: patternProperties are not additional properties - data: - foo: 1 - vroom: 2 - valid: true NonAsciiPatternWithAdditionalproperties: MatchingThePatternIsValid: description: matching the pattern is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 326347bc180..035eeb88258 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -104,12 +104,16 @@ class ExclusionReason: bug_with_non_string_const_values = 'swagger-parser const bug: https://github.com/swagger-api/swagger-parser/issues/1975' bug_dependent_required_values_incorrect = 'swagger parser bug where dependentRequired values are incorrect https://github.com/swagger-api/swagger-parser/issues/1978' bug_max_contains_lacks_float_value = 'swagger-parser bug where float values for maxContains are omitted https://github.com/swagger-api/swagger-parser/issues/1979' + bug_type_set_for_any_type = 'swagger-parser bug where type is set for any type schema: https://github.com/swagger-api/swagger-parser/issues/1964' json_schema_test_draft = 'draft2020-12' path_to_json_schema_drafts = ('..', '..', 'JSON-Schema-Test-Suite', 'tests') openapi_additions = 'openapi_additions' FILEPATH_TO_EXCLUDED_CASE_AND_REASON = { + (json_schema_test_draft, 'additionalProperties.json'): { + "additionalProperties being false does not allow other properties": ExclusionReason.bug_type_set_for_any_type, + }, (json_schema_test_draft, 'allOf.json'): { 'allOf with boolean schemas, all true': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'allOf with boolean schemas, some false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, From e7a38be029cf86060bc46d7104e2b75319a77483 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 26 Sep 2023 13:22:40 -0700 Subject: [PATCH 20/34] Adds prefixItems tests --- .../python/.openapi-generator/FILES | 98 ++++++++ .../client/3_1_0_unit_test/python/README.md | 15 +- .../docs/apis/tags/content_type_json_api.md | 6 + .../apis/tags/operation_request_body_api.md | 3 + .../python/docs/apis/tags/path_post_api.md | 6 + .../python/docs/apis/tags/prefix_items_api.md | 19 ++ ...esponse_content_content_type_schema_api.md | 3 + .../schema/a_schema_given_for_prefixitems.md | 12 + ...additional_items_are_allowed_by_default.md | 12 + ...prefixitems_with_null_instance_elements.md | 12 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 18 ++ ...hema_given_for_prefixitems_request_body.py | 13 + ...ems_are_allowed_by_default_request_body.py | 13 + ...ith_null_instance_elements_request_body.py | 13 + ...ixitems_response_body_for_content_types.py | 13 + ...default_response_body_for_content_types.py | 13 + ...lements_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 12 + .../apis/tags/operation_request_body_api.py | 6 + .../unit_test_api/apis/tags/path_post_api.py | 12 + .../apis/tags/prefix_items_api.py | 28 +++ ...esponse_content_content_type_schema_api.py | 6 + .../schema/a_schema_given_for_prefixitems.py | 34 +++ ...additional_items_are_allowed_by_default.py | 31 +++ ...prefixitems_with_null_instance_elements.py | 31 +++ .../components/schemas/__init__.py | 3 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../test_a_schema_given_for_prefixitems.py | 88 +++++++ ...additional_items_are_allowed_by_default.py | 36 +++ ...prefixitems_with_null_instance_elements.py | 34 +++ .../__init__.py | 0 .../test_post.py | 215 +++++++++++++++++ .../__init__.py | 0 .../test_post.py | 69 ++++++ .../__init__.py | 0 .../test_post.py | 67 ++++++ .../__init__.py | 0 .../test_post.py | 226 ++++++++++++++++++ .../__init__.py | 0 .../test_post.py | 70 ++++++ .../__init__.py | 0 .../test_post.py | 68 ++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 172 +++++++++++++ .../3_1/unit_test_spec/spec_writer.py | 4 + 107 files changed, 3285 insertions(+), 3 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/prefix_items_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/a_schema_given_for_prefixitems.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/additional_items_are_allowed_by_default.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/prefixitems_with_null_instance_elements.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/a_schema_given_for_prefixitems.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additional_items_are_allowed_by_default.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/prefixitems_with_null_instance_elements.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_a_schema_given_for_prefixitems.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_additional_items_are_allowed_by_default.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_prefixitems_with_null_instance_elements.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 4a1f8427961..384a705ab7f 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -30,6 +30,7 @@ docs/apis/tags/operation_request_body_api.md docs/apis/tags/path_post_api.md docs/apis/tags/pattern_api.md docs/apis/tags/pattern_properties_api.md +docs/apis/tags/prefix_items_api.md docs/apis/tags/properties_api.md docs/apis/tags/ref_api.md docs/apis/tags/required_api.md @@ -37,6 +38,8 @@ docs/apis/tags/response_content_content_type_schema_api.md docs/apis/tags/type_api.md docs/apis/tags/unique_items_api.md docs/components/schema/_not.md +docs/components/schema/a_schema_given_for_prefixitems.md +docs/components/schema/additional_items_are_allowed_by_default.md docs/components/schema/additionalproperties_are_allowed_by_default.md docs/components/schema/additionalproperties_can_exist_by_itself.md docs/components/schema/additionalproperties_does_not_look_in_applicators.md @@ -127,6 +130,7 @@ docs/components/schema/pattern_validation.md docs/components/schema/patternproperties_validates_properties_matching_a_regex.md docs/components/schema/patternproperties_with_null_valued_instance_properties.md docs/components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md +docs/components/schema/prefixitems_with_null_instance_elements.md docs/components/schema/properties_patternproperties_additionalproperties_interaction.md docs/components/schema/properties_whose_names_are_javascript_object_property_names.md docs/components/schema/properties_with_escaped_characters.md @@ -156,6 +160,10 @@ docs/components/schema/uri_format.md docs/components/schema/uri_reference_format.md docs/components/schema/uri_template_format.md docs/components/schema/uuid_format.md +docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md +docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md +docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md @@ -338,6 +346,8 @@ docs/paths/request_body_post_patternproperties_with_null_valued_instance_propert docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md +docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md @@ -396,6 +406,10 @@ docs/paths/request_body_post_uri_template_format_request_body/post.md docs/paths/request_body_post_uri_template_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uuid_format_request_body/post.md docs/paths/request_body_post_uuid_format_request_body/post/request_body/content/application_json/schema.md +docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md +docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md +docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md @@ -578,6 +592,8 @@ docs/paths/response_body_post_patternproperties_with_null_valued_instance_proper docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md +docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md @@ -648,6 +664,8 @@ src/unit_test_api/api_response.py src/unit_test_api/apis/__init__.py src/unit_test_api/apis/path_to_api.py src/unit_test_api/apis/paths/__init__.py +src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py +src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py @@ -739,6 +757,7 @@ src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.p src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.py +src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py @@ -768,6 +787,8 @@ src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py +src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py @@ -859,6 +880,7 @@ src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py @@ -918,6 +940,7 @@ src/unit_test_api/apis/tags/operation_request_body_api.py src/unit_test_api/apis/tags/path_post_api.py src/unit_test_api/apis/tags/pattern_api.py src/unit_test_api/apis/tags/pattern_properties_api.py +src/unit_test_api/apis/tags/prefix_items_api.py src/unit_test_api/apis/tags/properties_api.py src/unit_test_api/apis/tags/ref_api.py src/unit_test_api/apis/tags/required_api.py @@ -927,6 +950,8 @@ src/unit_test_api/apis/tags/unique_items_api.py src/unit_test_api/components/__init__.py src/unit_test_api/components/schema/__init__.py src/unit_test_api/components/schema/_not.py +src/unit_test_api/components/schema/a_schema_given_for_prefixitems.py +src/unit_test_api/components/schema/additional_items_are_allowed_by_default.py src/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py src/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py src/unit_test_api/components/schema/additionalproperties_does_not_look_in_applicators.py @@ -1017,6 +1042,7 @@ src/unit_test_api/components/schema/pattern_validation.py src/unit_test_api/components/schema/patternproperties_validates_properties_matching_a_regex.py src/unit_test_api/components/schema/patternproperties_with_null_valued_instance_properties.py src/unit_test_api/components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.py +src/unit_test_api/components/schema/prefixitems_with_null_instance_elements.py src/unit_test_api/components/schema/properties_patternproperties_additionalproperties_interaction.py src/unit_test_api/components/schema/properties_whose_names_are_javascript_object_property_names.py src/unit_test_api/components/schema/properties_with_escaped_characters.py @@ -1052,6 +1078,24 @@ src/unit_test_api/configurations/api_configuration.py src/unit_test_api/configurations/schema_configuration.py src/unit_test_api/exceptions.py src/unit_test_api/paths/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -1871,6 +1915,15 @@ src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_sta src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py @@ -2132,6 +2185,22 @@ src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/request_ src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -2860,6 +2929,14 @@ src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_st src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py @@ -3116,6 +3193,8 @@ test/__init__.py test/components/__init__.py test/components/schema/__init__.py test/components/schema/test__not.py +test/components/schema/test_a_schema_given_for_prefixitems.py +test/components/schema/test_additional_items_are_allowed_by_default.py test/components/schema/test_additionalproperties_are_allowed_by_default.py test/components/schema/test_additionalproperties_can_exist_by_itself.py test/components/schema/test_additionalproperties_does_not_look_in_applicators.py @@ -3206,6 +3285,7 @@ test/components/schema/test_pattern_validation.py test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py test/components/schema/test_patternproperties_with_null_valued_instance_properties.py test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_prefixitems_with_null_instance_elements.py test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py test/components/schema/test_properties_with_escaped_characters.py @@ -3475,6 +3555,16 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py +test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/test_post.py +test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py +test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/__init__.py test/test_paths/test_request_body_post_additionalproperties_are_allowed_by_default_request_body/test_post.py test/test_paths/test_request_body_post_additionalproperties_can_exist_by_itself_request_body/__init__.py @@ -3657,6 +3747,8 @@ test/test_paths/test_request_body_post_patternproperties_with_null_valued_instan test/test_paths/test_request_body_post_patternproperties_with_null_valued_instance_properties_request_body/test_post.py test/test_paths/test_request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/__init__.py test/test_paths/test_request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/test_post.py +test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py +test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/test_post.py test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/__init__.py test/test_paths/test_request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/test_post.py test/test_paths/test_request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/__init__.py @@ -3715,6 +3807,10 @@ test/test_paths/test_request_body_post_uri_template_format_request_body/__init__ test/test_paths/test_request_body_post_uri_template_format_request_body/test_post.py test/test_paths/test_request_body_post_uuid_format_request_body/__init__.py test/test_paths/test_request_body_post_uuid_format_request_body/test_post.py +test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/__init__.py @@ -3897,6 +3993,8 @@ test/test_paths/test_response_body_post_patternproperties_with_null_valued_insta test/test_paths/test_response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index ca5e9f5dc97..6f5d97c1bf6 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -146,14 +146,14 @@ with unit_test_api.ApiClient(used_configuration) as api_client: api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) # example passing only required values which don't have defaults set - body = additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault.validate(None) + body = a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems.validate(None) try: - api_response = api_instance.post_additionalproperties_are_allowed_by_default_request_body( + api_response = api_instance.post_a_schema_given_for_prefixitems_request_body( body=body, ) pprint(api_response) except unit_test_api.ApiException as e: - print("Exception when calling OperationRequestBodyApi->post_additionalproperties_are_allowed_by_default_request_body: %s\n" % e) + print("Exception when calling OperationRequestBodyApi->post_a_schema_given_for_prefixitems_request_body: %s\n" % e) ``` ## Servers @@ -170,6 +170,8 @@ All URIs are relative to the selected server HTTP request | Method | Description ------------ | ------ | ------------- +/requestBody/postASchemaGivenForPrefixitemsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_a_schema_given_for_prefixitems_request_body](docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_a_schema_given_for_prefixitems_request_body](docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) [PrefixItemsApi](docs/apis/tags/prefix_items_api.md).[post_a_schema_given_for_prefixitems_request_body](docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_a_schema_given_for_prefixitems_request_body](docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) | +/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additional_items_are_allowed_by_default_request_body](docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additional_items_are_allowed_by_default_request_body](docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) [PrefixItemsApi](docs/apis/tags/prefix_items_api.md).[post_additional_items_are_allowed_by_default_request_body](docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additional_items_are_allowed_by_default_request_body](docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) | /requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_are_allowed_by_default_request_body](docs/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | /requestBody/postAdditionalpropertiesCanExistByItselfRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_can_exist_by_itself_request_body](docs/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | /requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_does_not_look_in_applicators_request_body](docs/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | @@ -261,6 +263,7 @@ HTTP request | Method | Description /requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_validates_properties_matching_a_regex_request_body](docs/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | /requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | /requestBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body](docs/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | +/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_prefixitems_with_null_instance_elements_request_body](docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_prefixitems_with_null_instance_elements_request_body](docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) [PrefixItemsApi](docs/apis/tags/prefix_items_api.md).[post_prefixitems_with_null_instance_elements_request_body](docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_prefixitems_with_null_instance_elements_request_body](docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) | /requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_patternproperties_additionalproperties_interaction_request_body](docs/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | /requestBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_whose_names_are_javascript_object_property_names_request_body](docs/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | /requestBody/postPropertiesWithEscapedCharactersRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | @@ -290,6 +293,8 @@ HTTP request | Method | Description /requestBody/postUriReferenceFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uri_reference_format_request_body](docs/paths/request_body_post_uri_reference_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uri_reference_format_request_body](docs/paths/request_body_post_uri_reference_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uri_reference_format_request_body](docs/paths/request_body_post_uri_reference_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uri_reference_format_request_body](docs/paths/request_body_post_uri_reference_format_request_body/post.md) | /requestBody/postUriTemplateFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uri_template_format_request_body](docs/paths/request_body_post_uri_template_format_request_body/post.md) | /requestBody/postUuidFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_uuid_format_request_body](docs/paths/request_body_post_uuid_format_request_body/post.md) | +/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_a_schema_given_for_prefixitems_response_body_for_content_types](docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) [PrefixItemsApi](docs/apis/tags/prefix_items_api.md).[post_a_schema_given_for_prefixitems_response_body_for_content_types](docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_a_schema_given_for_prefixitems_response_body_for_content_types](docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_a_schema_given_for_prefixitems_response_body_for_content_types](docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) | +/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additional_items_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) [PrefixItemsApi](docs/apis/tags/prefix_items_api.md).[post_additional_items_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additional_items_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additional_items_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_are_allowed_by_default_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_can_exist_by_itself_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | /responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types](docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) | @@ -381,6 +386,7 @@ HTTP request | Method | Description /responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types](docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | /responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | /responseBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) [ItemsApi](docs/apis/tags/items_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types](docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_prefixitems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) [PrefixItemsApi](docs/apis/tags/prefix_items_api.md).[post_prefixitems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_prefixitems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_prefixitems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types](docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | /responseBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types](docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | /responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) | @@ -415,6 +421,8 @@ HTTP request | Method | Description Class | Description ----- | ------------ +[ASchemaGivenForPrefixitems](docs/components/schema/a_schema_given_for_prefixitems.md) | +[AdditionalItemsAreAllowedByDefault](docs/components/schema/additional_items_are_allowed_by_default.md) | [AdditionalpropertiesAreAllowedByDefault](docs/components/schema/additionalproperties_are_allowed_by_default.md) | [AdditionalpropertiesCanExistByItself](docs/components/schema/additionalproperties_can_exist_by_itself.md) | [AdditionalpropertiesDoesNotLookInApplicators](docs/components/schema/additionalproperties_does_not_look_in_applicators.md) | @@ -506,6 +514,7 @@ Class | Description [PatternpropertiesValidatesPropertiesMatchingARegex](docs/components/schema/patternproperties_validates_properties_matching_a_regex.md) | [PatternpropertiesWithNullValuedInstanceProperties](docs/components/schema/patternproperties_with_null_valued_instance_properties.md) | [PrefixitemsValidationAdjustsTheStartingIndexForItems](docs/components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md) | +[PrefixitemsWithNullInstanceElements](docs/components/schema/prefixitems_with_null_instance_elements.md) | [PropertiesPatternpropertiesAdditionalpropertiesInteraction](docs/components/schema/properties_patternproperties_additionalproperties_interaction.md) | [PropertiesWhoseNamesAreJavascriptObjectPropertyNames](docs/components/schema/properties_whose_names_are_javascript_object_property_names.md) | [PropertiesWithEscapedCharacters](docs/components/schema/properties_with_escaped_characters.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index b439f3428cb..cd8876f0a1e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -9,6 +9,10 @@ All URIs are relative to the selected server Method | Description ------ | ------------- +[**post_a_schema_given_for_prefixitems_request_body**](../../paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) | +[**post_a_schema_given_for_prefixitems_response_body_for_content_types**](../../paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) | +[**post_additional_items_are_allowed_by_default_request_body**](../../paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) | +[**post_additional_items_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) | [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | @@ -191,6 +195,8 @@ Method | Description [**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body**](../../paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types**](../../paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +[**post_prefixitems_with_null_instance_elements_request_body**](../../paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) | +[**post_prefixitems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | [**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 1cfe76330cc..c9bcc6ab1d5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -9,6 +9,8 @@ All URIs are relative to the selected server Method | Description ------ | ------------- +[**post_a_schema_given_for_prefixitems_request_body**](../../paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) | +[**post_additional_items_are_allowed_by_default_request_body**](../../paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | [**post_additionalproperties_does_not_look_in_applicators_request_body**](../../paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post.md) | @@ -100,6 +102,7 @@ Method | Description [**post_patternproperties_validates_properties_matching_a_regex_request_body**](../../paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post.md) | [**post_patternproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body**](../../paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | +[**post_prefixitems_with_null_instance_elements_request_body**](../../paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) | [**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | [**post_properties_with_escaped_characters_request_body**](../../paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 1d654edacdd..79205a4b79e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -9,6 +9,10 @@ All URIs are relative to the selected server Method | Description ------ | ------------- +[**post_a_schema_given_for_prefixitems_request_body**](../../paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) | +[**post_a_schema_given_for_prefixitems_response_body_for_content_types**](../../paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) | +[**post_additional_items_are_allowed_by_default_request_body**](../../paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) | +[**post_additional_items_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) | [**post_additionalproperties_are_allowed_by_default_request_body**](../../paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_request_body**](../../paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.md) | @@ -191,6 +195,8 @@ Method | Description [**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body**](../../paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types**](../../paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +[**post_prefixitems_with_null_instance_elements_request_body**](../../paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) | +[**post_prefixitems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_properties_patternproperties_additionalproperties_interaction_request_body**](../../paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post.md) | [**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_request_body**](../../paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/prefix_items_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/prefix_items_api.md new file mode 100644 index 00000000000..f630d8bd73c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/prefix_items_api.md @@ -0,0 +1,19 @@ + +unit_test_api.apis.tags.prefix_items_api +# PrefixItemsApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_a_schema_given_for_prefixitems_request_body**](../../paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md) | +[**post_a_schema_given_for_prefixitems_response_body_for_content_types**](../../paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) | +[**post_additional_items_are_allowed_by_default_request_body**](../../paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md) | +[**post_additional_items_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) | +[**post_prefixitems_with_null_instance_elements_request_body**](../../paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md) | +[**post_prefixitems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 3d6c9c3f051..f5d3a6885e4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -9,6 +9,8 @@ All URIs are relative to the selected server Method | Description ------ | ------------- +[**post_a_schema_given_for_prefixitems_response_body_for_content_types**](../../paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md) | +[**post_additional_items_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md) | [**post_additionalproperties_are_allowed_by_default_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.md) | [**post_additionalproperties_can_exist_by_itself_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.md) | [**post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types**](../../paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post.md) | @@ -100,6 +102,7 @@ Method | Description [**post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types**](../../paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post.md) | [**post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types**](../../paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post.md) | +[**post_prefixitems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types**](../../paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post.md) | [**post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types**](../../paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post.md) | [**post_properties_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/a_schema_given_for_prefixitems.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/a_schema_given_for_prefixitems.md new file mode 100644 index 00000000000..66fd80d65b9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/a_schema_given_for_prefixitems.md @@ -0,0 +1,12 @@ +# ASchemaGivenForPrefixitems +unit_test_api.components.schema.a_schema_given_for_prefixitems +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/additional_items_are_allowed_by_default.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/additional_items_are_allowed_by_default.md new file mode 100644 index 00000000000..55e49c5605e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/additional_items_are_allowed_by_default.md @@ -0,0 +1,12 @@ +# AdditionalItemsAreAllowedByDefault +unit_test_api.components.schema.additional_items_are_allowed_by_default +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/prefixitems_with_null_instance_elements.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/prefixitems_with_null_instance_elements.md new file mode 100644 index 00000000000..8b93a2b6ebf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/prefixitems_with_null_instance_elements.md @@ -0,0 +1,12 @@ +# PrefixitemsWithNullInstanceElements +unit_test_api.components.schema.prefixitems_with_null_instance_elements +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md new file mode 100644 index 00000000000..75f0c2b5698 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_a_schema_given_for_prefixitems_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_a_schema_given_for_prefixitems_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_a_schema_given_for_prefixitems_request_body | [PrefixItemsApi](../../apis/tags/prefix_items_api.md) | This api is only for tag=prefixItems | +| post_a_schema_given_for_prefixitems_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostASchemaGivenForPrefixitemsRequestBody | This api is only for path=/requestBody/postASchemaGivenForPrefixitemsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postASchemaGivenForPrefixitemsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems**](../../components/schema/a_schema_given_for_prefixitems.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems.validate(None) + try: + api_response = api_instance.post_a_schema_given_for_prefixitems_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_a_schema_given_for_prefixitems_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PrefixItemsApi API]](../../apis/tags/prefix_items_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..ae77e6e8d19 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems**](../../../../../../components/schema/a_schema_given_for_prefixitems.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md new file mode 100644 index 00000000000..ac9e4b5c471 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_additional_items_are_allowed_by_default_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_additional_items_are_allowed_by_default_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_additional_items_are_allowed_by_default_request_body | [PrefixItemsApi](../../apis/tags/prefix_items_api.md) | This api is only for tag=prefixItems | +| post_additional_items_are_allowed_by_default_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostAdditionalItemsAreAllowedByDefaultRequestBody | This api is only for path=/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault**](../../components/schema/additional_items_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault.validate(None) + try: + api_response = api_instance.post_additional_items_are_allowed_by_default_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_additional_items_are_allowed_by_default_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PrefixItemsApi API]](../../apis/tags/prefix_items_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..409825699f2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault**](../../../../../../components/schema/additional_items_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md new file mode 100644 index 00000000000..6018d09907c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_prefixitems_with_null_instance_elements_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_prefixitems_with_null_instance_elements_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_prefixitems_with_null_instance_elements_request_body | [PrefixItemsApi](../../apis/tags/prefix_items_api.md) | This api is only for tag=prefixItems | +| post_prefixitems_with_null_instance_elements_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostPrefixitemsWithNullInstanceElementsRequestBody | This api is only for path=/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements**](../../components/schema/prefixitems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements.validate(None) + try: + api_response = api_instance.post_prefixitems_with_null_instance_elements_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_prefixitems_with_null_instance_elements_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PrefixItemsApi API]](../../apis/tags/prefix_items_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..9d8f3d8039c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements**](../../../../../../components/schema/prefixitems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md new file mode 100644 index 00000000000..99c29828703 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_a_schema_given_for_prefixitems_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_a_schema_given_for_prefixitems_response_body_for_content_types | [PrefixItemsApi](../../apis/tags/prefix_items_api.md) | This api is only for tag=prefixItems | +| post_a_schema_given_for_prefixitems_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_a_schema_given_for_prefixitems_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostASchemaGivenForPrefixitemsResponseBodyForContentTypes | This api is only for path=/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems**](../../components/schema/a_schema_given_for_prefixitems.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_a_schema_given_for_prefixitems_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_a_schema_given_for_prefixitems_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PrefixItemsApi API]](../../apis/tags/prefix_items_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..3f9733d6fe2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems**](../../../../../../../../components/schema/a_schema_given_for_prefixitems.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md new file mode 100644 index 00000000000..2d40652076f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_additional_items_are_allowed_by_default_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_additional_items_are_allowed_by_default_response_body_for_content_types | [PrefixItemsApi](../../apis/tags/prefix_items_api.md) | This api is only for tag=prefixItems | +| post_additional_items_are_allowed_by_default_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_additional_items_are_allowed_by_default_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes | This api is only for path=/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault**](../../components/schema/additional_items_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_additional_items_are_allowed_by_default_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_additional_items_are_allowed_by_default_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PrefixItemsApi API]](../../apis/tags/prefix_items_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..71e9a0175c0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault**](../../../../../../../../components/schema/additional_items_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md new file mode 100644 index 00000000000..c16a1aa9f99 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_prefixitems_with_null_instance_elements_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_prefixitems_with_null_instance_elements_response_body_for_content_types | [PrefixItemsApi](../../apis/tags/prefix_items_api.md) | This api is only for tag=prefixItems | +| post_prefixitems_with_null_instance_elements_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_prefixitems_with_null_instance_elements_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes | This api is only for path=/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements**](../../components/schema/prefixitems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_prefixitems_with_null_instance_elements_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_prefixitems_with_null_instance_elements_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PrefixItemsApi API]](../../apis/tags/prefix_items_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..95757c8961c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements**](../../../../../../../../components/schema/prefixitems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 3193fc92d0f..8291238bbbd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -1,6 +1,8 @@ import typing import typing_extensions +from unit_test_api.apis.paths.request_body_post_a_schema_given_for_prefixitems_request_body import RequestBodyPostASchemaGivenForPrefixitemsRequestBody +from unit_test_api.apis.paths.request_body_post_additional_items_are_allowed_by_default_request_body import RequestBodyPostAdditionalItemsAreAllowedByDefaultRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body import RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body import RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody from unit_test_api.apis.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body import RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody @@ -92,6 +94,7 @@ from unit_test_api.apis.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body import RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody from unit_test_api.apis.paths.request_body_post_patternproperties_with_null_valued_instance_properties_request_body import RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.apis.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body import RequestBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody +from unit_test_api.apis.paths.request_body_post_prefixitems_with_null_instance_elements_request_body import RequestBodyPostPrefixitemsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body import RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.apis.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body import RequestBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.apis.paths.request_body_post_properties_with_escaped_characters_request_body import RequestBodyPostPropertiesWithEscapedCharactersRequestBody @@ -121,6 +124,8 @@ from unit_test_api.apis.paths.request_body_post_uri_reference_format_request_body import RequestBodyPostUriReferenceFormatRequestBody from unit_test_api.apis.paths.request_body_post_uri_template_format_request_body import RequestBodyPostUriTemplateFormatRequestBody from unit_test_api.apis.paths.request_body_post_uuid_format_request_body import RequestBodyPostUuidFormatRequestBody +from unit_test_api.apis.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types import ResponseBodyPostASchemaGivenForPrefixitemsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types import ResponseBodyPostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types import ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes @@ -212,6 +217,7 @@ from unit_test_api.apis.paths.response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types import ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types import ResponseBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types import ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types import ResponseBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types import ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes @@ -245,6 +251,8 @@ PathToApi = typing.TypedDict( 'PathToApi', { + "/requestBody/postASchemaGivenForPrefixitemsRequestBody": typing.Type[RequestBodyPostASchemaGivenForPrefixitemsRequestBody], + "/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody": typing.Type[RequestBodyPostAdditionalItemsAreAllowedByDefaultRequestBody], "/requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody], "/requestBody/postAdditionalpropertiesCanExistByItselfRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody], "/requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody": typing.Type[RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody], @@ -336,6 +344,7 @@ "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody": typing.Type[RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody], "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody], "/requestBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody": typing.Type[RequestBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody], + "/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostPrefixitemsWithNullInstanceElementsRequestBody], "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody": typing.Type[RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody], "/requestBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody": typing.Type[RequestBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody], "/requestBody/postPropertiesWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostPropertiesWithEscapedCharactersRequestBody], @@ -365,6 +374,8 @@ "/requestBody/postUriReferenceFormatRequestBody": typing.Type[RequestBodyPostUriReferenceFormatRequestBody], "/requestBody/postUriTemplateFormatRequestBody": typing.Type[RequestBodyPostUriTemplateFormatRequestBody], "/requestBody/postUuidFormatRequestBody": typing.Type[RequestBodyPostUuidFormatRequestBody], + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostASchemaGivenForPrefixitemsResponseBodyForContentTypes], + "/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes], "/responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes": typing.Type[ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes], @@ -456,6 +467,7 @@ "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes": typing.Type[ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes], "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], "/responseBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes], + "/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes], "/responseBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes], "/responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes], @@ -490,6 +502,8 @@ path_to_api = PathToApi( { + "/requestBody/postASchemaGivenForPrefixitemsRequestBody": RequestBodyPostASchemaGivenForPrefixitemsRequestBody, + "/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody": RequestBodyPostAdditionalItemsAreAllowedByDefaultRequestBody, "/requestBody/postAdditionalpropertiesAreAllowedByDefaultRequestBody": RequestBodyPostAdditionalpropertiesAreAllowedByDefaultRequestBody, "/requestBody/postAdditionalpropertiesCanExistByItselfRequestBody": RequestBodyPostAdditionalpropertiesCanExistByItselfRequestBody, "/requestBody/postAdditionalpropertiesDoesNotLookInApplicatorsRequestBody": RequestBodyPostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, @@ -581,6 +595,7 @@ "/requestBody/postPatternpropertiesValidatesPropertiesMatchingARegexRequestBody": RequestBodyPostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, "/requestBody/postPatternpropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostPatternpropertiesWithNullValuedInstancePropertiesRequestBody, "/requestBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody": RequestBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, + "/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody": RequestBodyPostPrefixitemsWithNullInstanceElementsRequestBody, "/requestBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody": RequestBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, "/requestBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody": RequestBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, "/requestBody/postPropertiesWithEscapedCharactersRequestBody": RequestBodyPostPropertiesWithEscapedCharactersRequestBody, @@ -610,6 +625,8 @@ "/requestBody/postUriReferenceFormatRequestBody": RequestBodyPostUriReferenceFormatRequestBody, "/requestBody/postUriTemplateFormatRequestBody": RequestBodyPostUriTemplateFormatRequestBody, "/requestBody/postUuidFormatRequestBody": RequestBodyPostUuidFormatRequestBody, + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes": ResponseBodyPostASchemaGivenForPrefixitemsResponseBodyForContentTypes, + "/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes": ResponseBodyPostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, "/responseBody/postAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes": ResponseBodyPostAdditionalpropertiesDoesNotLookInApplicatorsResponseBodyForContentTypes, @@ -701,6 +718,7 @@ "/responseBody/postPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes": ResponseBodyPostPatternpropertiesValidatesPropertiesMatchingARegexResponseBodyForContentTypes, "/responseBody/postPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, "/responseBody/postPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes": ResponseBodyPostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, + "/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes": ResponseBodyPostPropertiesPatternpropertiesAdditionalpropertiesInteractionResponseBodyForContentTypes, "/responseBody/postPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes": ResponseBodyPostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesResponseBodyForContentTypes, "/responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py new file mode 100644 index 00000000000..92ae50c90ab --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.operation import ApiForPost + + +class RequestBodyPostASchemaGivenForPrefixitemsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py new file mode 100644 index 00000000000..1f4bc7ce11c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.operation import ApiForPost + + +class RequestBodyPostAdditionalItemsAreAllowedByDefaultRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py new file mode 100644 index 00000000000..30d326ff2e5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.operation import ApiForPost + + +class RequestBodyPostPrefixitemsWithNullInstanceElementsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py new file mode 100644 index 00000000000..cc867418649 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostASchemaGivenForPrefixitemsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py new file mode 100644 index 00000000000..ea017485aaf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py new file mode 100644 index 00000000000..66c610f1c01 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 3ef80e2b66e..74f6879459f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -1,6 +1,7 @@ import typing import typing_extensions +from unit_test_api.apis.tags.prefix_items_api import PrefixItemsApi from unit_test_api.apis.tags.maximum_api import MaximumApi from unit_test_api.apis.tags.pattern_api import PatternApi from unit_test_api.apis.tags.additional_properties_api import AdditionalPropertiesApi @@ -39,6 +40,7 @@ TagToApi = typing.TypedDict( 'TagToApi', { + "prefixItems": typing.Type[PrefixItemsApi], "maximum": typing.Type[MaximumApi], "pattern": typing.Type[PatternApi], "additionalProperties": typing.Type[AdditionalPropertiesApi], @@ -78,6 +80,7 @@ tag_to_api = TagToApi( { + "prefixItems": PrefixItemsApi, "maximum": MaximumApi, "pattern": PatternApi, "additionalProperties": AdditionalPropertiesApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index a677bf0c81f..52083a440dd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -79,7 +79,9 @@ from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody from unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.operation import PostAdditionalpropertiesCanExistByItselfRequestBody +from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.operation import PostASchemaGivenForPrefixitemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.operation import PostUniqueitemsValidationRequestBody +from unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.operation import PostAdditionalItemsAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_maximum_validation_request_body.post.operation import PostMaximumValidationRequestBody from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes @@ -152,6 +154,7 @@ from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody @@ -159,11 +162,13 @@ from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.operation import PostPrefixitemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody from unit_test_api.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types.post.operation import PostPropertiesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes @@ -188,6 +193,7 @@ from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody +from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.operation import PostASchemaGivenForPrefixitemsRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody @@ -322,7 +328,9 @@ class ContentTypeJsonApi( PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, PostAdditionalpropertiesCanExistByItselfRequestBody, + PostASchemaGivenForPrefixitemsResponseBodyForContentTypes, PostUniqueitemsValidationRequestBody, + PostAdditionalItemsAreAllowedByDefaultRequestBody, PostMaximumValidationRequestBody, PostSimpleEnumValidationRequestBody, PostConstNulCharactersInStringsResponseBodyForContentTypes, @@ -395,6 +403,7 @@ class ContentTypeJsonApi( PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, + PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, PostTimeFormatRequestBody, @@ -402,11 +411,13 @@ class ContentTypeJsonApi( PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, PostOneofWithEmptySchemaRequestBody, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, + PostPrefixitemsWithNullInstanceElementsRequestBody, PostAllofRequestBody, PostPropertiesWithEscapedCharactersResponseBodyForContentTypes, PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, + PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, @@ -431,6 +442,7 @@ class ContentTypeJsonApi( PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, PostDependentSchemasSingleDependencyResponseBodyForContentTypes, PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, + PostASchemaGivenForPrefixitemsRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 4dc78415873..2cda560664d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -43,6 +43,7 @@ from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody +from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.operation import PostPrefixitemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody @@ -72,6 +73,7 @@ from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody +from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.operation import PostASchemaGivenForPrefixitemsRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody @@ -89,6 +91,7 @@ from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody from unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.operation import PostUniqueitemsValidationRequestBody +from unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.operation import PostAdditionalItemsAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_maximum_validation_request_body.post.operation import PostMaximumValidationRequestBody from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody from unit_test_api.paths.request_body_post_pattern_validation_request_body.post.operation import PostPatternValidationRequestBody @@ -166,6 +169,7 @@ class OperationRequestBodyApi( PostOneofWithEmptySchemaRequestBody, PostMaxcontainsWithoutContainsIsIgnoredRequestBody, PostUriFormatRequestBody, + PostPrefixitemsWithNullInstanceElementsRequestBody, PostAllofRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, @@ -195,6 +199,7 @@ class OperationRequestBodyApi( PostAnyofWithBaseSchemaRequestBody, PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, PostObjectTypeMatchesObjectsRequestBody, + PostASchemaGivenForPrefixitemsRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, @@ -212,6 +217,7 @@ class OperationRequestBodyApi( PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, PostUniqueitemsValidationRequestBody, + PostAdditionalItemsAreAllowedByDefaultRequestBody, PostMaximumValidationRequestBody, PostSimpleEnumValidationRequestBody, PostPatternValidationRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 9c06c4ac17f..fa25e9d4a54 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -79,7 +79,9 @@ from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody from unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.operation import PostAdditionalpropertiesCanExistByItselfRequestBody +from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.operation import PostASchemaGivenForPrefixitemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_uniqueitems_validation_request_body.post.operation import PostUniqueitemsValidationRequestBody +from unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.operation import PostAdditionalItemsAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_maximum_validation_request_body.post.operation import PostMaximumValidationRequestBody from unit_test_api.paths.request_body_post_simple_enum_validation_request_body.post.operation import PostSimpleEnumValidationRequestBody from unit_test_api.paths.response_body_post_const_nul_characters_in_strings_response_body_for_content_types.post.operation import PostConstNulCharactersInStringsResponseBodyForContentTypes @@ -152,6 +154,7 @@ from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_time_format_request_body.post.operation import PostTimeFormatRequestBody @@ -159,11 +162,13 @@ from unit_test_api.paths.request_body_post_multiple_types_can_be_specified_in_an_array_request_body.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.post.operation import PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.operation import PostPrefixitemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody from unit_test_api.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types.post.operation import PostPropertiesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxproperties_validation_response_body_for_content_types.post.operation import PostMaxpropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes @@ -188,6 +193,7 @@ from unit_test_api.paths.response_body_post_small_multiple_of_large_integer_response_body_for_content_types.post.operation import PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes from unit_test_api.paths.response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.post.operation import PostDependentSchemasSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody +from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.operation import PostASchemaGivenForPrefixitemsRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.post.operation import PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody @@ -322,7 +328,9 @@ class PathPostApi( PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, PostAdditionalpropertiesCanExistByItselfRequestBody, + PostASchemaGivenForPrefixitemsResponseBodyForContentTypes, PostUniqueitemsValidationRequestBody, + PostAdditionalItemsAreAllowedByDefaultRequestBody, PostMaximumValidationRequestBody, PostSimpleEnumValidationRequestBody, PostConstNulCharactersInStringsResponseBodyForContentTypes, @@ -395,6 +403,7 @@ class PathPostApi( PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, + PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, PostTimeFormatRequestBody, @@ -402,11 +411,13 @@ class PathPostApi( PostMultipleTypesCanBeSpecifiedInAnArrayRequestBody, PostOneofWithEmptySchemaRequestBody, PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes, + PostPrefixitemsWithNullInstanceElementsRequestBody, PostAllofRequestBody, PostPropertiesWithEscapedCharactersResponseBodyForContentTypes, PostMaxpropertiesValidationResponseBodyForContentTypes, PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, + PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, @@ -431,6 +442,7 @@ class PathPostApi( PostSmallMultipleOfLargeIntegerResponseBodyForContentTypes, PostDependentSchemasSingleDependencyResponseBodyForContentTypes, PostMultipleSimultaneousPatternpropertiesAreValidatedRequestBody, + PostASchemaGivenForPrefixitemsRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostDependentSchemasDependenciesWithEscapedCharactersResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py new file mode 100644 index 00000000000..5fdea52289d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py @@ -0,0 +1,28 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.operation import PostASchemaGivenForPrefixitemsRequestBody +from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.operation import PostASchemaGivenForPrefixitemsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.operation import PostPrefixitemsWithNullInstanceElementsRequestBody +from unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post.operation import PostAdditionalItemsAreAllowedByDefaultRequestBody +from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes + + +class PrefixItemsApi( + PostASchemaGivenForPrefixitemsRequestBody, + PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, + PostASchemaGivenForPrefixitemsResponseBodyForContentTypes, + PostPrefixitemsWithNullInstanceElementsRequestBody, + PostAdditionalItemsAreAllowedByDefaultRequestBody, + PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index c2da4bd5611..aa493ca3005 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -38,6 +38,7 @@ from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes @@ -48,6 +49,7 @@ from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_dependents_required_response_body_for_content_types.post.operation import PostMultipleDependentsRequiredResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes @@ -71,6 +73,7 @@ from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.operation import PostASchemaGivenForPrefixitemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_response_body_for_content_types.post.operation import PostAnyofResponseBodyForContentTypes @@ -161,6 +164,7 @@ class ResponseContentContentTypeSchemaApi( PostEnumsInPropertiesResponseBodyForContentTypes, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostNestedItemsResponseBodyForContentTypes, + PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes, @@ -171,6 +175,7 @@ class ResponseContentContentTypeSchemaApi( PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, PostMultipleDependentsRequiredResponseBodyForContentTypes, + PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, @@ -194,6 +199,7 @@ class ResponseContentContentTypeSchemaApi( PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostFloatDivisionInfResponseBodyForContentTypes, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, + PostASchemaGivenForPrefixitemsResponseBodyForContentTypes, PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, PostAnyofResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/a_schema_given_for_prefixitems.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/a_schema_given_for_prefixitems.py new file mode 100644 index 00000000000..77fe200c2d7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/a_schema_given_for_prefixitems.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +_0: typing_extensions.TypeAlias = schemas.IntSchema +_1: typing_extensions.TypeAlias = schemas.StrSchema + + +@dataclasses.dataclass(frozen=True) +class ASchemaGivenForPrefixitems( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + prefix_items: typing.Tuple[ + typing.Type[_0], + typing.Type[_1], + ] = ( + _0, + _1, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additional_items_are_allowed_by_default.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additional_items_are_allowed_by_default.py new file mode 100644 index 00000000000..5b6e67fc234 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/additional_items_are_allowed_by_default.py @@ -0,0 +1,31 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +_0: typing_extensions.TypeAlias = schemas.IntSchema + + +@dataclasses.dataclass(frozen=True) +class AdditionalItemsAreAllowedByDefault( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + prefix_items: typing.Tuple[ + typing.Type[_0], + ] = ( + _0, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/prefixitems_with_null_instance_elements.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/prefixitems_with_null_instance_elements.py new file mode 100644 index 00000000000..1846da2666c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/prefixitems_with_null_instance_elements.py @@ -0,0 +1,31 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +_0: typing_extensions.TypeAlias = schemas.NoneSchema + + +@dataclasses.dataclass(frozen=True) +class PrefixitemsWithNullInstanceElements( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + prefix_items: typing.Tuple[ + typing.Type[_0], + ] = ( + _0, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index dc1f32ef85d..3ddaa16c4b0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -11,6 +11,8 @@ # import sys # sys.setrecursionlimit(n) +from unit_test_api.components.schema.a_schema_given_for_prefixitems import ASchemaGivenForPrefixitems +from unit_test_api.components.schema.additional_items_are_allowed_by_default import AdditionalItemsAreAllowedByDefault from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from unit_test_api.components.schema.additionalproperties_does_not_look_in_applicators import AdditionalpropertiesDoesNotLookInApplicators @@ -102,6 +104,7 @@ from unit_test_api.components.schema.patternproperties_validates_properties_matching_a_regex import PatternpropertiesValidatesPropertiesMatchingARegex from unit_test_api.components.schema.patternproperties_with_null_valued_instance_properties import PatternpropertiesWithNullValuedInstanceProperties from unit_test_api.components.schema.prefixitems_validation_adjusts_the_starting_index_for_items import PrefixitemsValidationAdjustsTheStartingIndexForItems +from unit_test_api.components.schema.prefixitems_with_null_instance_elements import PrefixitemsWithNullInstanceElements from unit_test_api.components.schema.properties_patternproperties_additionalproperties_interaction import PropertiesPatternpropertiesAdditionalpropertiesInteraction from unit_test_api.components.schema.properties_whose_names_are_javascript_object_property_names import PropertiesWhoseNamesAreJavascriptObjectPropertyNames from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py new file mode 100644 index 00000000000..5973cf089b4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_a_schema_given_for_prefixitems_request_body import RequestBodyPostASchemaGivenForPrefixitemsRequestBody + +path = "/requestBody/postASchemaGivenForPrefixitemsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py new file mode 100644 index 00000000000..6d6d380e5d0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import a_schema_given_for_prefixitems + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_a_schema_given_for_prefixitems_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_a_schema_given_for_prefixitems_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_a_schema_given_for_prefixitems_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostASchemaGivenForPrefixitemsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_a_schema_given_for_prefixitems_request_body = BaseApi._post_a_schema_given_for_prefixitems_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_a_schema_given_for_prefixitems_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..7048c6f76b9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import a_schema_given_for_prefixitems +Schema2: typing_extensions.TypeAlias = a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py new file mode 100644 index 00000000000..f206a9c089d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_additional_items_are_allowed_by_default_request_body import RequestBodyPostAdditionalItemsAreAllowedByDefaultRequestBody + +path = "/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py new file mode 100644 index 00000000000..f3b9b87acc2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import additional_items_are_allowed_by_default + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_additional_items_are_allowed_by_default_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_additional_items_are_allowed_by_default_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_additional_items_are_allowed_by_default_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostAdditionalItemsAreAllowedByDefaultRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_additional_items_are_allowed_by_default_request_body = BaseApi._post_additional_items_are_allowed_by_default_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_additional_items_are_allowed_by_default_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..0f9595cba67 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import additional_items_are_allowed_by_default +Schema2: typing_extensions.TypeAlias = additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py new file mode 100644 index 00000000000..c4a9af6b49e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_prefixitems_with_null_instance_elements_request_body import RequestBodyPostPrefixitemsWithNullInstanceElementsRequestBody + +path = "/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py new file mode 100644 index 00000000000..8d2983fa5e5 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import prefixitems_with_null_instance_elements + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_prefixitems_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_prefixitems_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_prefixitems_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPrefixitemsWithNullInstanceElementsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_prefixitems_with_null_instance_elements_request_body = BaseApi._post_prefixitems_with_null_instance_elements_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_prefixitems_with_null_instance_elements_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..9faeac01563 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import prefixitems_with_null_instance_elements +Schema2: typing_extensions.TypeAlias = prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..c79ba227b4b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types import ResponseBodyPostASchemaGivenForPrefixitemsResponseBodyForContentTypes + +path = "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..319d03afcd8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_a_schema_given_for_prefixitems_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_a_schema_given_for_prefixitems_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_a_schema_given_for_prefixitems_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostASchemaGivenForPrefixitemsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_a_schema_given_for_prefixitems_response_body_for_content_types = BaseApi._post_a_schema_given_for_prefixitems_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_a_schema_given_for_prefixitems_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..7048c6f76b9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import a_schema_given_for_prefixitems +Schema2: typing_extensions.TypeAlias = a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..38ec3abc06d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types import ResponseBodyPostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes + +path = "/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..97c0119aa1a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_additional_items_are_allowed_by_default_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_additional_items_are_allowed_by_default_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_additional_items_are_allowed_by_default_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_additional_items_are_allowed_by_default_response_body_for_content_types = BaseApi._post_additional_items_are_allowed_by_default_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_additional_items_are_allowed_by_default_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..0f9595cba67 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import additional_items_are_allowed_by_default +Schema2: typing_extensions.TypeAlias = additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..cf403856ba6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes + +path = "/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..65c5db69ce6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_prefixitems_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_prefixitems_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_prefixitems_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_prefixitems_with_null_instance_elements_response_body_for_content_types = BaseApi._post_prefixitems_with_null_instance_elements_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_prefixitems_with_null_instance_elements_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..9faeac01563 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import prefixitems_with_null_instance_elements +Schema2: typing_extensions.TypeAlias = prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_a_schema_given_for_prefixitems.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_a_schema_given_for_prefixitems.py new file mode 100644 index 00000000000..349c9ddbd77 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_a_schema_given_for_prefixitems.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.a_schema_given_for_prefixitems import ASchemaGivenForPrefixitems +from unit_test_api.configurations import schema_configuration + + +class TestASchemaGivenForPrefixitems(unittest.TestCase): + """ASchemaGivenForPrefixitems unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_incomplete_array_of_items_passes(self): + # incomplete array of items + ASchemaGivenForPrefixitems.validate( + [ + 1, + ], + configuration=self.configuration + ) + + def test_array_with_additional_items_passes(self): + # array with additional items + ASchemaGivenForPrefixitems.validate( + [ + 1, + "foo", + True, + ], + configuration=self.configuration + ) + + def test_empty_array_passes(self): + # empty array + ASchemaGivenForPrefixitems.validate( + [ + ], + configuration=self.configuration + ) + + def test_correct_types_passes(self): + # correct types + ASchemaGivenForPrefixitems.validate( + [ + 1, + "foo", + ], + configuration=self.configuration + ) + + def test_javascript_pseudo_array_is_valid_passes(self): + # JavaScript pseudo-array is valid + ASchemaGivenForPrefixitems.validate( + { + "0": + "invalid", + "1": + "valid", + "length": + 2, + }, + configuration=self.configuration + ) + + def test_wrong_types_fails(self): + # wrong types + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + ASchemaGivenForPrefixitems.validate( + [ + "foo", + 1, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_additional_items_are_allowed_by_default.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_additional_items_are_allowed_by_default.py new file mode 100644 index 00000000000..274d01785c6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_additional_items_are_allowed_by_default.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.additional_items_are_allowed_by_default import AdditionalItemsAreAllowedByDefault +from unit_test_api.configurations import schema_configuration + + +class TestAdditionalItemsAreAllowedByDefault(unittest.TestCase): + """AdditionalItemsAreAllowedByDefault unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_only_the_first_item_is_validated_passes(self): + # only the first item is validated + AdditionalItemsAreAllowedByDefault.validate( + [ + 1, + "foo", + False, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_prefixitems_with_null_instance_elements.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_prefixitems_with_null_instance_elements.py new file mode 100644 index 00000000000..34dacb2e588 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_prefixitems_with_null_instance_elements.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.prefixitems_with_null_instance_elements import PrefixitemsWithNullInstanceElements +from unit_test_api.configurations import schema_configuration + + +class TestPrefixitemsWithNullInstanceElements(unittest.TestCase): + """PrefixitemsWithNullInstanceElements unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_allows_null_elements_passes(self): + # allows null elements + PrefixitemsWithNullInstanceElements.validate( + [ + None, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/test_post.py new file mode 100644 index 00000000000..1bde1113808 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_a_schema_given_for_prefixitems_request_body/test_post.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_incomplete_array_of_items_passes(self): + content_type = 'application/json' + # incomplete array of items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postASchemaGivenForPrefixitemsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_array_with_additional_items_passes(self): + content_type = 'application/json' + # array with additional items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + "foo", + True, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postASchemaGivenForPrefixitemsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_empty_array_passes(self): + content_type = 'application/json' + # empty array + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postASchemaGivenForPrefixitemsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_correct_types_passes(self): + content_type = 'application/json' + # correct types + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + "foo", + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postASchemaGivenForPrefixitemsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_javascript_pseudo_array_is_valid_passes(self): + content_type = 'application/json' + # JavaScript pseudo-array is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "0": + "invalid", + "1": + "valid", + "length": + 2, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postASchemaGivenForPrefixitemsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_wrong_types_fails(self): + content_type = 'application/json' + # wrong types + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + 1, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/test_post.py new file mode 100644 index 00000000000..cf325b8854c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_additional_items_are_allowed_by_default_request_body/test_post.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_additional_items_are_allowed_by_default_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_only_the_first_item_is_validated_passes(self): + content_type = 'application/json' + # only the first item is validated + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + "foo", + False, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/test_post.py new file mode 100644 index 00000000000..da45bf9b696 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_prefixitems_with_null_instance_elements_request_body/test_post.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_allows_null_elements_passes(self): + content_type = 'application/json' + # allows null elements + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + None, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPrefixitemsWithNullInstanceElementsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..d1de4f0cade --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/test_post.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_incomplete_array_of_items_passes(self): + # incomplete array of items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_array_with_additional_items_passes(self): + # array with additional items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + "foo", + True, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_empty_array_passes(self): + # empty array + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_correct_types_passes(self): + # correct types + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + "foo", + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_javascript_pseudo_array_is_valid_passes(self): + # JavaScript pseudo-array is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "0": + "invalid", + "1": + "valid", + "length": + 2, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_wrong_types_fails(self): + # wrong types + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + 1, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..be050dc66f1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/test_post.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_only_the_first_item_is_validated_passes(self): + # only the first item is validated + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + "foo", + False, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..6dc054acf46 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/test_post.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_allows_null_elements_passes(self): + # allows null elements + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + None, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index e0d07b2e27e..5be90310e22 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -36,6 +36,7 @@ tags: - name: oneOf - name: pattern - name: patternProperties +- name: prefixItems - name: properties - name: $ref - name: required @@ -3426,6 +3427,114 @@ paths: - path.post - contentType_json - patternProperties + /requestBody/postASchemaGivenForPrefixitemsRequestBody: + post: + operationId: postASchemaGivenForPrefixitemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ASchemaGivenForPrefixitems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ASchemaGivenForPrefixitems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - prefixItems + /responseBody/postASchemaGivenForPrefixitemsResponseBodyForContentTypes: + post: + operationId: postASchemaGivenForPrefixitemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ASchemaGivenForPrefixitems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ASchemaGivenForPrefixitems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - prefixItems + /requestBody/postAdditionalItemsAreAllowedByDefaultRequestBody: + post: + operationId: postAdditionalItemsAreAllowedByDefaultRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AdditionalItemsAreAllowedByDefault' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/AdditionalItemsAreAllowedByDefault' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - prefixItems + /responseBody/postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes: + post: + operationId: postAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/AdditionalItemsAreAllowedByDefault' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/AdditionalItemsAreAllowedByDefault' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - prefixItems + /requestBody/postPrefixitemsWithNullInstanceElementsRequestBody: + post: + operationId: postPrefixitemsWithNullInstanceElementsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PrefixitemsWithNullInstanceElements' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PrefixitemsWithNullInstanceElements' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - prefixItems + /responseBody/postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes: + post: + operationId: postPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/PrefixitemsWithNullInstanceElements' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PrefixitemsWithNullInstanceElements' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - prefixItems /requestBody/postObjectPropertiesValidationRequestBody: post: operationId: postObjectPropertiesValidationRequestBody @@ -4831,6 +4940,19 @@ components: patternProperties: ^.*bar$: type: 'null' + ASchemaGivenForPrefixitems: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - type: integer + - type: string + AdditionalItemsAreAllowedByDefault: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - type: integer + PrefixitemsWithNullInstanceElements: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - type: 'null' ObjectPropertiesValidation: $schema: https://json-schema.org/draft/2020-12/schema properties: @@ -6810,6 +6932,56 @@ components: data: foobar: null valid: true + ASchemaGivenForPrefixitems: + CorrectTypes: + description: correct types + data: + - 1 + - foo + valid: true + WrongTypes: + description: wrong types + data: + - foo + - 1 + valid: false + IncompleteArrayOfItems: + description: incomplete array of items + data: + - 1 + valid: true + ArrayWithAdditionalItems: + description: array with additional items + data: + - 1 + - foo + - true + valid: true + EmptyArray: + description: empty array + data: [] + valid: true + JavascriptPseudoArrayIsValid: + description: JavaScript pseudo-array is valid + data: + '0': invalid + '1': valid + length: 2 + valid: true + AdditionalItemsAreAllowedByDefault: + OnlyTheFirstItemIsValidated: + description: only the first item is validated + data: + - 1 + - foo + - false + valid: true + PrefixitemsWithNullInstanceElements: + AllowsNullElements: + description: allows null elements + data: + - null + valid: true ObjectPropertiesValidation: BothPropertiesPresentAndValidIsValid: description: both properties present and valid is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 035eeb88258..b0ae3c1ef52 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -201,6 +201,9 @@ class ExclusionReason: (json_schema_test_draft, 'minProperties.json'): { 'minProperties validation with a decimal': ExclusionReason.bug_max_items_missing, }, + (json_schema_test_draft, 'prefixItems.json'): { + "prefixItems with boolean schemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + }, (json_schema_test_draft, 'not.json'): { 'not with boolean schema true': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'not with boolean schema false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, @@ -325,6 +328,7 @@ class ExclusionReason: 'oneOf.json': (json_schema_test_draft,), 'pattern.json': (json_schema_test_draft,), 'patternProperties.json': (json_schema_test_draft,), + 'prefixItems.json': (json_schema_test_draft,), 'properties.json': (json_schema_test_draft,), # 'propertyNames.json': (json_schema_test_draft,), 'ref.json': (json_schema_test_draft,), From 7e05763fdddb1f3d6e0272471245a8cae4447df6 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 26 Sep 2023 13:37:02 -0700 Subject: [PATCH 21/34] Adds propertyNames tests --- .../python/.openapi-generator/FILES | 157 +++--------- .../client/3_1_0_unit_test/python/README.md | 3 + .../docs/apis/tags/content_type_json_api.md | 2 + .../apis/tags/operation_request_body_api.md | 1 + .../python/docs/apis/tags/path_post_api.md | 2 + .../docs/apis/tags/property_names_api.md | 15 ++ ...esponse_content_content_type_schema_api.md | 1 + .../schema/propertynames_validation.md | 12 + .../post.md | 116 +++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 +++++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 6 + ...t_propertynames_validation_request_body.py | 13 + ...idation_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 4 + .../apis/tags/operation_request_body_api.py | 2 + .../unit_test_api/apis/tags/path_post_api.py | 4 + .../apis/tags/property_names_api.py | 20 ++ ...esponse_content_content_type_schema_api.py | 2 + .../schema/propertynames_validation.py | 36 +++ .../components/schemas/__init__.py | 1 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 +++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 +++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../schema/test_propertynames_validation.py | 88 +++++++ .../__init__.py | 0 .../test_post.py | 215 +++++++++++++++++ .../__init__.py | 0 .../test_post.py | 226 ++++++++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 74 ++++++ .../3_1/unit_test_spec/spec_writer.py | 11 +- 47 files changed, 1379 insertions(+), 129 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/property_names_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/propertynames_validation.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/propertynames_validation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_propertynames_validation.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 384a705ab7f..2b31f52a90c 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -32,6 +32,7 @@ docs/apis/tags/pattern_api.md docs/apis/tags/pattern_properties_api.md docs/apis/tags/prefix_items_api.md docs/apis/tags/properties_api.md +docs/apis/tags/property_names_api.md docs/apis/tags/ref_api.md docs/apis/tags/required_api.md docs/apis/tags/response_content_content_type_schema_api.md @@ -136,6 +137,7 @@ docs/components/schema/properties_whose_names_are_javascript_object_property_nam docs/components/schema/properties_with_escaped_characters.md docs/components/schema/properties_with_null_valued_instance_properties.md docs/components/schema/property_named_ref_that_is_not_a_reference.md +docs/components/schema/propertynames_validation.md docs/components/schema/regex_format.md docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md docs/components/schema/relative_json_pointer_format.md @@ -358,6 +360,8 @@ docs/paths/request_body_post_properties_with_null_valued_instance_properties_req docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_propertynames_validation_request_body/post.md +docs/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_regex_format_request_body/post.md docs/paths/request_body_post_regex_format_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md @@ -604,6 +608,8 @@ docs/paths/response_body_post_properties_with_null_valued_instance_properties_re docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md +docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md docs/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md @@ -763,6 +769,7 @@ src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javasc src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py src/unit_test_api/apis/paths/request_body_post_properties_with_null_valued_instance_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py +src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_regex_format_request_body.py src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py src/unit_test_api/apis/paths/request_body_post_relative_json_pointer_format_request_body.py @@ -886,6 +893,7 @@ src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javas src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_regex_format_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types.py @@ -942,6 +950,7 @@ src/unit_test_api/apis/tags/pattern_api.py src/unit_test_api/apis/tags/pattern_properties_api.py src/unit_test_api/apis/tags/prefix_items_api.py src/unit_test_api/apis/tags/properties_api.py +src/unit_test_api/apis/tags/property_names_api.py src/unit_test_api/apis/tags/ref_api.py src/unit_test_api/apis/tags/required_api.py src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -1048,6 +1057,7 @@ src/unit_test_api/components/schema/properties_whose_names_are_javascript_object src/unit_test_api/components/schema/properties_with_escaped_characters.py src/unit_test_api/components/schema/properties_with_null_valued_instance_properties.py src/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py +src/unit_test_api/components/schema/propertynames_validation.py src/unit_test_api/components/schema/regex_format.py src/unit_test_api/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.py src/unit_test_api/components/schema/relative_json_pointer_format.py @@ -1969,6 +1979,15 @@ src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_refer src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_regex_format_request_body/__init__.py src/unit_test_api/paths/request_body_post_regex_format_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py @@ -2977,6 +2996,14 @@ src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_refe src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py @@ -3192,129 +3219,9 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test__not.py -test/components/schema/test_a_schema_given_for_prefixitems.py -test/components/schema/test_additional_items_are_allowed_by_default.py -test/components/schema/test_additionalproperties_are_allowed_by_default.py -test/components/schema/test_additionalproperties_can_exist_by_itself.py -test/components/schema/test_additionalproperties_does_not_look_in_applicators.py -test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py -test/components/schema/test_additionalproperties_with_schema.py -test/components/schema/test_allof.py -test/components/schema/test_allof_combined_with_anyof_oneof.py -test/components/schema/test_allof_simple_types.py -test/components/schema/test_allof_with_base_schema.py -test/components/schema/test_allof_with_one_empty_schema.py -test/components/schema/test_allof_with_the_first_empty_schema.py -test/components/schema/test_allof_with_the_last_empty_schema.py -test/components/schema/test_allof_with_two_empty_schemas.py -test/components/schema/test_anyof.py -test/components/schema/test_anyof_complex_types.py -test/components/schema/test_anyof_with_base_schema.py -test/components/schema/test_anyof_with_one_empty_schema.py -test/components/schema/test_array_type_matches_arrays.py -test/components/schema/test_boolean_type_matches_booleans.py -test/components/schema/test_by_int.py -test/components/schema/test_by_number.py -test/components/schema/test_by_small_number.py -test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_contains_keyword_validation.py -test/components/schema/test_contains_with_null_instance_elements.py -test/components/schema/test_date_format.py -test/components/schema/test_date_time_format.py -test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py -test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py -test/components/schema/test_dependent_schemas_single_dependency.py -test/components/schema/test_duration_format.py -test/components/schema/test_email_format.py -test/components/schema/test_empty_dependents.py -test/components/schema/test_enum_with0_does_not_match_false.py -test/components/schema/test_enum_with1_does_not_match_true.py -test/components/schema/test_enum_with_escaped_characters.py -test/components/schema/test_enum_with_false_does_not_match0.py -test/components/schema/test_enum_with_true_does_not_match1.py -test/components/schema/test_enums_in_properties.py -test/components/schema/test_float_division_inf.py -test/components/schema/test_forbidden_property.py -test/components/schema/test_hostname_format.py -test/components/schema/test_idn_email_format.py -test/components/schema/test_idn_hostname_format.py -test/components/schema/test_integer_type_matches_integers.py -test/components/schema/test_ipv4_format.py -test/components/schema/test_ipv6_format.py -test/components/schema/test_iri_format.py -test/components/schema/test_iri_reference_format.py -test/components/schema/test_items_contains.py -test/components/schema/test_items_does_not_look_in_applicators_valid_case.py -test/components/schema/test_items_with_null_instance_elements.py -test/components/schema/test_json_pointer_format.py -test/components/schema/test_maxcontains_without_contains_is_ignored.py -test/components/schema/test_maximum_validation.py -test/components/schema/test_maximum_validation_with_unsigned_integer.py -test/components/schema/test_maxitems_validation.py -test/components/schema/test_maxlength_validation.py -test/components/schema/test_maxproperties0_means_the_object_is_empty.py -test/components/schema/test_maxproperties_validation.py -test/components/schema/test_mincontains_without_contains_is_ignored.py -test/components/schema/test_minimum_validation.py -test/components/schema/test_minimum_validation_with_signed_integer.py -test/components/schema/test_minitems_validation.py -test/components/schema/test_minlength_validation.py -test/components/schema/test_minproperties_validation.py -test/components/schema/test_multiple_dependents_required.py -test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py -test/components/schema/test_multiple_types_can_be_specified_in_an_array.py -test/components/schema/test_nested_allof_to_check_validation_semantics.py -test/components/schema/test_nested_anyof_to_check_validation_semantics.py -test/components/schema/test_nested_items.py -test/components/schema/test_nested_oneof_to_check_validation_semantics.py -test/components/schema/test_non_ascii_pattern_with_additionalproperties.py -test/components/schema/test_not_more_complex_schema.py -test/components/schema/test_nul_characters_in_strings.py -test/components/schema/test_null_type_matches_only_the_null_object.py -test/components/schema/test_number_type_matches_numbers.py -test/components/schema/test_object_properties_validation.py -test/components/schema/test_object_type_matches_objects.py -test/components/schema/test_oneof.py -test/components/schema/test_oneof_complex_types.py -test/components/schema/test_oneof_with_base_schema.py -test/components/schema/test_oneof_with_empty_schema.py -test/components/schema/test_oneof_with_required.py -test/components/schema/test_pattern_is_not_anchored.py -test/components/schema/test_pattern_validation.py -test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py -test/components/schema/test_patternproperties_with_null_valued_instance_properties.py -test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py -test/components/schema/test_prefixitems_with_null_instance_elements.py -test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py -test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_properties_with_escaped_characters.py -test/components/schema/test_properties_with_null_valued_instance_properties.py -test/components/schema/test_property_named_ref_that_is_not_a_reference.py -test/components/schema/test_regex_format.py -test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py -test/components/schema/test_relative_json_pointer_format.py -test/components/schema/test_required_default_validation.py -test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_required_validation.py -test/components/schema/test_required_with_empty_array.py -test/components/schema/test_required_with_escaped_characters.py -test/components/schema/test_simple_enum_validation.py -test/components/schema/test_single_dependency.py -test/components/schema/test_small_multiple_of_large_integer.py -test/components/schema/test_string_type_matches_strings.py -test/components/schema/test_time_format.py -test/components/schema/test_type_array_object_or_null.py -test/components/schema/test_type_array_or_object.py -test/components/schema/test_type_as_array_with_one_item.py -test/components/schema/test_uniqueitems_false_validation.py -test/components/schema/test_uniqueitems_false_with_an_array_of_items.py -test/components/schema/test_uniqueitems_validation.py -test/components/schema/test_uniqueitems_with_an_array_of_items.py -test/components/schema/test_uri_format.py -test/components/schema/test_uri_reference_format.py -test/components/schema/test_uri_template_format.py -test/components/schema/test_uuid_format.py +test/components/schema/test_propertynames_validation.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3759,6 +3666,8 @@ test/test_paths/test_request_body_post_properties_with_null_valued_instance_prop test/test_paths/test_request_body_post_properties_with_null_valued_instance_properties_request_body/test_post.py test/test_paths/test_request_body_post_property_named_ref_that_is_not_a_reference_request_body/__init__.py test/test_paths/test_request_body_post_property_named_ref_that_is_not_a_reference_request_body/test_post.py +test/test_paths/test_request_body_post_propertynames_validation_request_body/__init__.py +test/test_paths/test_request_body_post_propertynames_validation_request_body/test_post.py test/test_paths/test_request_body_post_regex_format_request_body/__init__.py test/test_paths/test_request_body_post_regex_format_request_body/test_post.py test/test_paths/test_request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/__init__.py @@ -4005,6 +3914,8 @@ test/test_paths/test_response_body_post_properties_with_null_valued_instance_pro test/test_paths/test_response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_regex_format_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_regex_format_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 6f5d97c1bf6..8aedabef067 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -269,6 +269,7 @@ HTTP request | Method | Description /requestBody/postPropertiesWithEscapedCharactersRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_escaped_characters_request_body](docs/paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | /requestBody/postPropertiesWithNullValuedInstancePropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) | /requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) [RefApi](docs/apis/tags/ref_api.md).[post_property_named_ref_that_is_not_a_reference_request_body](docs/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) | +/requestBody/postPropertynamesValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_propertynames_validation_request_body](docs/paths/request_body_post_propertynames_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_propertynames_validation_request_body](docs/paths/request_body_post_propertynames_validation_request_body/post.md) [PropertyNamesApi](docs/apis/tags/property_names_api.md).[post_propertynames_validation_request_body](docs/paths/request_body_post_propertynames_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_propertynames_validation_request_body](docs/paths/request_body_post_propertynames_validation_request_body/post.md) | /requestBody/postRegexFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_regex_format_request_body](docs/paths/request_body_post_regex_format_request_body/post.md) | /requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body](docs/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | /requestBody/postRelativeJsonPointerFormatRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_relative_json_pointer_format_request_body](docs/paths/request_body_post_relative_json_pointer_format_request_body/post.md) | @@ -392,6 +393,7 @@ HTTP request | Method | Description /responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_escaped_characters_response_body_for_content_types](docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) | /responseBody/postPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [PropertiesApi](docs/apis/tags/properties_api.md).[post_properties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | /responseBody/postPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) [RefApi](docs/apis/tags/ref_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_property_named_ref_that_is_not_a_reference_response_body_for_content_types](docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | +/responseBody/postPropertynamesValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_propertynames_validation_response_body_for_content_types](docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) [PropertyNamesApi](docs/apis/tags/property_names_api.md).[post_propertynames_validation_response_body_for_content_types](docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_propertynames_validation_response_body_for_content_types](docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_propertynames_validation_response_body_for_content_types](docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) | /responseBody/postRegexFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_regex_format_response_body_for_content_types](docs/paths/response_body_post_regex_format_response_body_for_content_types/post.md) | /responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes **post** | [PatternPropertiesApi](docs/apis/tags/pattern_properties_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types](docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | /responseBody/postRelativeJsonPointerFormatResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) [FormatApi](docs/apis/tags/format_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_relative_json_pointer_format_response_body_for_content_types](docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) | @@ -520,6 +522,7 @@ Class | Description [PropertiesWithEscapedCharacters](docs/components/schema/properties_with_escaped_characters.md) | [PropertiesWithNullValuedInstanceProperties](docs/components/schema/properties_with_null_valued_instance_properties.md) | [PropertyNamedRefThatIsNotAReference](docs/components/schema/property_named_ref_that_is_not_a_reference.md) | +[PropertynamesValidation](docs/components/schema/propertynames_validation.md) | [RegexFormat](docs/components/schema/regex_format.md) | [RegexesAreNotAnchoredByDefaultAndAreCaseSensitive](docs/components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | [RelativeJsonPointerFormat](docs/components/schema/relative_json_pointer_format.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index cd8876f0a1e..924af032459 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -207,6 +207,8 @@ Method | Description [**post_properties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_property_named_ref_that_is_not_a_reference_request_body**](../../paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) | [**post_property_named_ref_that_is_not_a_reference_response_body_for_content_types**](../../paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | +[**post_propertynames_validation_request_body**](../../paths/request_body_post_propertynames_validation_request_body/post.md) | +[**post_propertynames_validation_response_body_for_content_types**](../../paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) | [**post_regex_format_request_body**](../../paths/request_body_post_regex_format_request_body/post.md) | [**post_regex_format_response_body_for_content_types**](../../paths/response_body_post_regex_format_response_body_for_content_types/post.md) | [**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index c9bcc6ab1d5..36226524d72 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -108,6 +108,7 @@ Method | Description [**post_properties_with_escaped_characters_request_body**](../../paths/request_body_post_properties_with_escaped_characters_request_body/post.md) | [**post_properties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post.md) | [**post_property_named_ref_that_is_not_a_reference_request_body**](../../paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) | +[**post_propertynames_validation_request_body**](../../paths/request_body_post_propertynames_validation_request_body/post.md) | [**post_regex_format_request_body**](../../paths/request_body_post_regex_format_request_body/post.md) | [**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | [**post_relative_json_pointer_format_request_body**](../../paths/request_body_post_relative_json_pointer_format_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index 79205a4b79e..a89c2c2ca47 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -207,6 +207,8 @@ Method | Description [**post_properties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_property_named_ref_that_is_not_a_reference_request_body**](../../paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.md) | [**post_property_named_ref_that_is_not_a_reference_response_body_for_content_types**](../../paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | +[**post_propertynames_validation_request_body**](../../paths/request_body_post_propertynames_validation_request_body/post.md) | +[**post_propertynames_validation_response_body_for_content_types**](../../paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) | [**post_regex_format_request_body**](../../paths/request_body_post_regex_format_request_body/post.md) | [**post_regex_format_response_body_for_content_types**](../../paths/response_body_post_regex_format_response_body_for_content_types/post.md) | [**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body**](../../paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/property_names_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/property_names_api.md new file mode 100644 index 00000000000..eac6996a414 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/property_names_api.md @@ -0,0 +1,15 @@ + +unit_test_api.apis.tags.property_names_api +# PropertyNamesApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_propertynames_validation_request_body**](../../paths/request_body_post_propertynames_validation_request_body/post.md) | +[**post_propertynames_validation_response_body_for_content_types**](../../paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index f5d3a6885e4..e5f6a029004 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -108,6 +108,7 @@ Method | Description [**post_properties_with_escaped_characters_response_body_for_content_types**](../../paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.md) | [**post_properties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_property_named_ref_that_is_not_a_reference_response_body_for_content_types**](../../paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.md) | +[**post_propertynames_validation_response_body_for_content_types**](../../paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md) | [**post_regex_format_response_body_for_content_types**](../../paths/response_body_post_regex_format_response_body_for_content_types/post.md) | [**post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types**](../../paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post.md) | [**post_relative_json_pointer_format_response_body_for_content_types**](../../paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/propertynames_validation.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/propertynames_validation.md new file mode 100644 index 00000000000..cdbd52bb0b3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/propertynames_validation.md @@ -0,0 +1,12 @@ +# PropertynamesValidation +unit_test_api.components.schema.propertynames_validation +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md new file mode 100644 index 00000000000..6b0c9c61427 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_propertynames_validation_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_propertynames_validation_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_propertynames_validation_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_propertynames_validation_request_body | [PropertyNamesApi](../../apis/tags/property_names_api.md) | This api is only for tag=propertyNames | +| post_propertynames_validation_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostPropertynamesValidationRequestBody | This api is only for path=/requestBody/postPropertynamesValidationRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postPropertynamesValidationRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**propertynames_validation.PropertynamesValidation**](../../components/schema/propertynames_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = propertynames_validation.PropertynamesValidation.validate(None) + try: + api_response = api_instance.post_propertynames_validation_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_propertynames_validation_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PropertyNamesApi API]](../../apis/tags/property_names_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..79fb84a55af --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**propertynames_validation.PropertynamesValidation**](../../../../../../components/schema/propertynames_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md new file mode 100644 index 00000000000..d7384b5b3ea --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_propertynames_validation_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_propertynames_validation_response_body_for_content_types | [PropertyNamesApi](../../apis/tags/property_names_api.md) | This api is only for tag=propertyNames | +| post_propertynames_validation_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_propertynames_validation_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostPropertynamesValidationResponseBodyForContentTypes | This api is only for path=/responseBody/postPropertynamesValidationResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postPropertynamesValidationResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**propertynames_validation.PropertynamesValidation**](../../components/schema/propertynames_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_propertynames_validation_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_propertynames_validation_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to PropertyNamesApi API]](../../apis/tags/property_names_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..d9fafc32e3e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**propertynames_validation.PropertynamesValidation**](../../../../../../../../components/schema/propertynames_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 8291238bbbd..9bd9204a367 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -100,6 +100,7 @@ from unit_test_api.apis.paths.request_body_post_properties_with_escaped_characters_request_body import RequestBodyPostPropertiesWithEscapedCharactersRequestBody from unit_test_api.apis.paths.request_body_post_properties_with_null_valued_instance_properties_request_body import RequestBodyPostPropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.apis.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body import RequestBodyPostPropertyNamedRefThatIsNotAReferenceRequestBody +from unit_test_api.apis.paths.request_body_post_propertynames_validation_request_body import RequestBodyPostPropertynamesValidationRequestBody from unit_test_api.apis.paths.request_body_post_regex_format_request_body import RequestBodyPostRegexFormatRequestBody from unit_test_api.apis.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body import RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody from unit_test_api.apis.paths.request_body_post_relative_json_pointer_format_request_body import RequestBodyPostRelativeJsonPointerFormatRequestBody @@ -223,6 +224,7 @@ from unit_test_api.apis.paths.response_body_post_properties_with_escaped_characters_response_body_for_content_types import ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types import ResponseBodyPostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_propertynames_validation_response_body_for_content_types import ResponseBodyPostPropertynamesValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_regex_format_response_body_for_content_types import ResponseBodyPostRegexFormatResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types import ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_relative_json_pointer_format_response_body_for_content_types import ResponseBodyPostRelativeJsonPointerFormatResponseBodyForContentTypes @@ -350,6 +352,7 @@ "/requestBody/postPropertiesWithEscapedCharactersRequestBody": typing.Type[RequestBodyPostPropertiesWithEscapedCharactersRequestBody], "/requestBody/postPropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostPropertiesWithNullValuedInstancePropertiesRequestBody], "/requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody": typing.Type[RequestBodyPostPropertyNamedRefThatIsNotAReferenceRequestBody], + "/requestBody/postPropertynamesValidationRequestBody": typing.Type[RequestBodyPostPropertynamesValidationRequestBody], "/requestBody/postRegexFormatRequestBody": typing.Type[RequestBodyPostRegexFormatRequestBody], "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody": typing.Type[RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody], "/requestBody/postRelativeJsonPointerFormatRequestBody": typing.Type[RequestBodyPostRelativeJsonPointerFormatRequestBody], @@ -473,6 +476,7 @@ "/responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes], "/responseBody/postPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], "/responseBody/postPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes], + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostPropertynamesValidationResponseBodyForContentTypes], "/responseBody/postRegexFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostRegexFormatResponseBodyForContentTypes], "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes": typing.Type[ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes], "/responseBody/postRelativeJsonPointerFormatResponseBodyForContentTypes": typing.Type[ResponseBodyPostRelativeJsonPointerFormatResponseBodyForContentTypes], @@ -601,6 +605,7 @@ "/requestBody/postPropertiesWithEscapedCharactersRequestBody": RequestBodyPostPropertiesWithEscapedCharactersRequestBody, "/requestBody/postPropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostPropertiesWithNullValuedInstancePropertiesRequestBody, "/requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody": RequestBodyPostPropertyNamedRefThatIsNotAReferenceRequestBody, + "/requestBody/postPropertynamesValidationRequestBody": RequestBodyPostPropertynamesValidationRequestBody, "/requestBody/postRegexFormatRequestBody": RequestBodyPostRegexFormatRequestBody, "/requestBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody": RequestBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, "/requestBody/postRelativeJsonPointerFormatRequestBody": RequestBodyPostRelativeJsonPointerFormatRequestBody, @@ -724,6 +729,7 @@ "/responseBody/postPropertiesWithEscapedCharactersResponseBodyForContentTypes": ResponseBodyPostPropertiesWithEscapedCharactersResponseBodyForContentTypes, "/responseBody/postPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostPropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, "/responseBody/postPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes": ResponseBodyPostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes, + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes": ResponseBodyPostPropertynamesValidationResponseBodyForContentTypes, "/responseBody/postRegexFormatResponseBodyForContentTypes": ResponseBodyPostRegexFormatResponseBodyForContentTypes, "/responseBody/postRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes": ResponseBodyPostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, "/responseBody/postRelativeJsonPointerFormatResponseBodyForContentTypes": ResponseBodyPostRelativeJsonPointerFormatResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py new file mode 100644 index 00000000000..b90aa1f3a59 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import ApiForPost + + +class RequestBodyPostPropertynamesValidationRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py new file mode 100644 index 00000000000..4da6c417550 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostPropertynamesValidationResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 74f6879459f..5c6dd32448b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -14,6 +14,7 @@ from unit_test_api.apis.tags._not_api import _NotApi from unit_test_api.apis.tags.path_post_api import PathPostApi from unit_test_api.apis.tags.min_properties_api import MinPropertiesApi +from unit_test_api.apis.tags.property_names_api import PropertyNamesApi from unit_test_api.apis.tags.unique_items_api import UniqueItemsApi from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi from unit_test_api.apis.tags.contains_api import ContainsApi @@ -53,6 +54,7 @@ "not": typing.Type[_NotApi], "path.post": typing.Type[PathPostApi], "minProperties": typing.Type[MinPropertiesApi], + "propertyNames": typing.Type[PropertyNamesApi], "uniqueItems": typing.Type[UniqueItemsApi], "operation.requestBody": typing.Type[OperationRequestBodyApi], "contains": typing.Type[ContainsApi], @@ -93,6 +95,7 @@ "not": _NotApi, "path.post": PathPostApi, "minProperties": MinPropertiesApi, + "propertyNames": PropertyNamesApi, "uniqueItems": UniqueItemsApi, "operation.requestBody": OperationRequestBodyApi, "contains": ContainsApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index 52083a440dd..fee86a4a179 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -105,6 +105,7 @@ from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.operation import PostPropertynamesValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.operation import PostMaxproperties0MeansTheObjectIsEmptyRequestBody from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes @@ -179,6 +180,7 @@ from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import PostPropertynamesValidationRequestBody from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody @@ -354,6 +356,7 @@ class ContentTypeJsonApi( PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostMinimumValidationResponseBodyForContentTypes, + PostPropertynamesValidationResponseBodyForContentTypes, PostMaxproperties0MeansTheObjectIsEmptyRequestBody, PostDateFormatResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, @@ -428,6 +431,7 @@ class ContentTypeJsonApi( PostUriReferenceFormatRequestBody, PostOneofWithBaseSchemaResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, + PostPropertynamesValidationRequestBody, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostDurationFormatRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 2cda560664d..9a858404476 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -61,6 +61,7 @@ from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_required_default_validation_request_body.post.operation import PostRequiredDefaultValidationRequestBody from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody +from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import PostPropertynamesValidationRequestBody from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody @@ -187,6 +188,7 @@ class OperationRequestBodyApi( PostUriReferenceFormatRequestBody, PostRequiredDefaultValidationRequestBody, PostAllofCombinedWithAnyofOneofRequestBody, + PostPropertynamesValidationRequestBody, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostDurationFormatRequestBody, PostRegexFormatRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index fa25e9d4a54..f9f9bfcf271 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -105,6 +105,7 @@ from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.operation import PostPropertynamesValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxproperties0_means_the_object_is_empty_request_body.post.operation import PostMaxproperties0MeansTheObjectIsEmptyRequestBody from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes @@ -179,6 +180,7 @@ from unit_test_api.paths.request_body_post_uri_reference_format_request_body.post.operation import PostUriReferenceFormatRequestBody from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import PostPropertynamesValidationRequestBody from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody @@ -354,6 +356,7 @@ class PathPostApi( PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostMinimumValidationResponseBodyForContentTypes, + PostPropertynamesValidationResponseBodyForContentTypes, PostMaxproperties0MeansTheObjectIsEmptyRequestBody, PostDateFormatResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, @@ -428,6 +431,7 @@ class PathPostApi( PostUriReferenceFormatRequestBody, PostOneofWithBaseSchemaResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, + PostPropertynamesValidationRequestBody, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostDurationFormatRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py new file mode 100644 index 00000000000..3aa993e0b2d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import PostPropertynamesValidationRequestBody +from unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.operation import PostPropertynamesValidationResponseBodyForContentTypes + + +class PropertyNamesApi( + PostPropertynamesValidationRequestBody, + PostPropertynamesValidationResponseBodyForContentTypes, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index aa493ca3005..1bad403fa9a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -106,6 +106,7 @@ from unit_test_api.paths.response_body_post_iri_reference_format_response_body_for_content_types.post.operation import PostIriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.post.operation import PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post.operation import PostPropertynamesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_validation_response_body_for_content_types.post.operation import PostRequiredValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_date_format_response_body_for_content_types.post.operation import PostDateFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types.post.operation import PostUniqueitemsFalseValidationResponseBodyForContentTypes @@ -232,6 +233,7 @@ class ResponseContentContentTypeSchemaApi( PostIriReferenceFormatResponseBodyForContentTypes, PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes, PostMinimumValidationResponseBodyForContentTypes, + PostPropertynamesValidationResponseBodyForContentTypes, PostRequiredValidationResponseBodyForContentTypes, PostDateFormatResponseBodyForContentTypes, PostUniqueitemsFalseValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/propertynames_validation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/propertynames_validation.py new file mode 100644 index 00000000000..1c097ee493a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/propertynames_validation.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class PropertyNames( + schemas.StrSchema +): + types: typing.FrozenSet[typing.Type] = frozenset({ + str, + }) + max_length: int = 3 + + +@dataclasses.dataclass(frozen=True) +class PropertynamesValidation( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + property_names: typing.Type[PropertyNames] = dataclasses.field(default_factory=lambda: PropertyNames) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 3ddaa16c4b0..18733fc10a2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -110,6 +110,7 @@ from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from unit_test_api.components.schema.properties_with_null_valued_instance_properties import PropertiesWithNullValuedInstanceProperties from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.propertynames_validation import PropertynamesValidation from unit_test_api.components.schema.regex_format import RegexFormat from unit_test_api.components.schema.regexes_are_not_anchored_by_default_and_are_case_sensitive import RegexesAreNotAnchoredByDefaultAndAreCaseSensitive from unit_test_api.components.schema.relative_json_pointer_format import RelativeJsonPointerFormat diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/__init__.py new file mode 100644 index 00000000000..4c911ba1529 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_propertynames_validation_request_body import RequestBodyPostPropertynamesValidationRequestBody + +path = "/requestBody/postPropertynamesValidationRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py new file mode 100644 index 00000000000..70a26dcbec1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import propertynames_validation + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_propertynames_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_propertynames_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_propertynames_validation_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPropertynamesValidationRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_propertynames_validation_request_body = BaseApi._post_propertynames_validation_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_propertynames_validation_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..25274f05bdf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import propertynames_validation +Schema2: typing_extensions.TypeAlias = propertynames_validation.PropertynamesValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..05c4a4a157d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_propertynames_validation_response_body_for_content_types import ResponseBodyPostPropertynamesValidationResponseBodyForContentTypes + +path = "/responseBody/postPropertynamesValidationResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..34b7f8a85b8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_propertynames_validation_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_propertynames_validation_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_propertynames_validation_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostPropertynamesValidationResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_propertynames_validation_response_body_for_content_types = BaseApi._post_propertynames_validation_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_propertynames_validation_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..25274f05bdf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import propertynames_validation +Schema2: typing_extensions.TypeAlias = propertynames_validation.PropertynamesValidation diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_propertynames_validation.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_propertynames_validation.py new file mode 100644 index 00000000000..ee16fa36d3e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_propertynames_validation.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.propertynames_validation import PropertynamesValidation +from unit_test_api.configurations import schema_configuration + + +class TestPropertynamesValidation(unittest.TestCase): + """PropertynamesValidation unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_some_property_names_invalid_fails(self): + # some property names invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + PropertynamesValidation.validate( + { + "foo": + { + }, + "foobar": + { + }, + }, + configuration=self.configuration + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + PropertynamesValidation.validate( + [ + 1, + 2, + 3, + 4, + ], + configuration=self.configuration + ) + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + PropertynamesValidation.validate( + 12, + configuration=self.configuration + ) + + def test_ignores_strings_passes(self): + # ignores strings + PropertynamesValidation.validate( + "foobar", + configuration=self.configuration + ) + + def test_object_without_properties_is_valid_passes(self): + # object without properties is valid + PropertynamesValidation.validate( + { + }, + configuration=self.configuration + ) + + def test_all_property_names_valid_passes(self): + # all property names valid + PropertynamesValidation.validate( + { + "f": + { + }, + "foo": + { + }, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/test_post.py new file mode 100644 index 00000000000..34976e6317d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_propertynames_validation_request_body/test_post.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_some_property_names_invalid_fails(self): + content_type = 'application/json' + # some property names invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + { + }, + "foobar": + { + }, + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_ignores_arrays_passes(self): + content_type = 'application/json' + # ignores arrays + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 2, + 3, + 4, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertynamesValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_other_non_objects_passes(self): + content_type = 'application/json' + # ignores other non-objects + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertynamesValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_ignores_strings_passes(self): + content_type = 'application/json' + # ignores strings + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobar" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertynamesValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_object_without_properties_is_valid_passes(self): + content_type = 'application/json' + # object without properties is valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertynamesValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_all_property_names_valid_passes(self): + content_type = 'application/json' + # all property names valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "f": + { + }, + "foo": + { + }, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postPropertynamesValidationRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..c4a09b1dd88 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_propertynames_validation_response_body_for_content_types/test_post.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_propertynames_validation_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_some_property_names_invalid_fails(self): + # some property names invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + { + }, + "foobar": + { + }, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_ignores_arrays_passes(self): + # ignores arrays + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 1, + 2, + 3, + 4, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_other_non_objects_passes(self): + # ignores other non-objects + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 12 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_ignores_strings_passes(self): + # ignores strings + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foobar" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_object_without_properties_is_valid_passes(self): + # object without properties is valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_all_property_names_valid_passes(self): + # all property names valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "f": + { + }, + "foo": + { + }, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postPropertynamesValidationResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 5be90310e22..b76ddb2f044 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -38,6 +38,7 @@ tags: - name: patternProperties - name: prefixItems - name: properties +- name: propertyNames - name: $ref - name: required - name: type @@ -3715,6 +3716,42 @@ paths: - path.post - contentType_json - properties + /requestBody/postPropertynamesValidationRequestBody: + post: + operationId: postPropertynamesValidationRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PropertynamesValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PropertynamesValidation' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - propertyNames + /responseBody/postPropertynamesValidationResponseBodyForContentTypes: + post: + operationId: postPropertynamesValidationResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/PropertynamesValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PropertynamesValidation' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - propertyNames /requestBody/postPropertyNamedRefThatIsNotAReferenceRequestBody: post: operationId: postPropertyNamedRefThatIsNotAReferenceRequestBody @@ -5006,6 +5043,10 @@ components: type: string constructor: type: number + PropertynamesValidation: + $schema: https://json-schema.org/draft/2020-12/schema + propertyNames: + maxLength: 3 PropertyNamedRefThatIsNotAReference: $schema: https://json-schema.org/draft/2020-12/schema properties: @@ -7134,6 +7175,39 @@ components: length: foo constructor: 37 valid: true + PropertynamesValidation: + AllPropertyNamesValid: + description: all property names valid + data: + f: {} + foo: {} + valid: true + SomePropertyNamesInvalid: + description: some property names invalid + data: + foo: {} + foobar: {} + valid: false + ObjectWithoutPropertiesIsValid: + description: object without properties is valid + data: {} + valid: true + IgnoresArrays: + description: ignores arrays + data: + - 1 + - 2 + - 3 + - 4 + valid: true + IgnoresStrings: + description: ignores strings + data: foobar + valid: true + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true PropertyNamedRefThatIsNotAReference: PropertyNamedRefValid: description: property named $ref valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index b0ae3c1ef52..02dd2475d1a 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -223,6 +223,10 @@ class ExclusionReason: (json_schema_test_draft, 'properties.json'): { 'properties with boolean schema': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, + (json_schema_test_draft, 'propertyNames.json'): { + "propertyNames with boolean schema true": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "propertyNames with boolean schema false": ExclusionReason.bug_does_not_support_boolean_schemas_in_location + }, (json_schema_test_draft, 'ref.json'): { 'relative refs with absolute uris and defs': ExclusionReason.v303_does_not_support_id, '$ref prevents a sibling $id from changing the base uri': ExclusionReason.v303_does_not_support_id, @@ -282,20 +286,15 @@ class ExclusionReason: }, } FILEPATH_TO_EXCLUDE_REASON = { - (json_schema_test_draft, 'additionalItems.json'): ExclusionReason.v303_does_not_support_additionalItems, (json_schema_test_draft, 'boolean_schema.json'): ExclusionReason.bug_does_not_support_boolean_schemas_in_location, - (json_schema_test_draft, 'definitions.json'): ExclusionReason.bug_does_not_support_definitions, - (json_schema_test_draft, 'dependencies.json'): ExclusionReason.v303_does_not_support_dependencies, (json_schema_test_draft, 'exclusiveMaximum.json'): ExclusionReason.swagger_parser_validation_missing_bug, (json_schema_test_draft, 'exclusiveMinimum.json'): ExclusionReason.swagger_parser_validation_missing_bug, (json_schema_test_draft, 'id.json'): ExclusionReason.v303_does_not_support_id, - (json_schema_test_draft, 'propertyNames.json'): ExclusionReason.v303_does_not_support_propertyNames, (json_schema_test_draft, 'refRemote.json'): ExclusionReason.ref_not_resolved, (json_schema_test_draft, 'unknownKeyword.json'): ExclusionReason.bug_does_not_support_definitions, } JSON_SCHEMA_TEST_FILE_TO_FOLDERS = { -# 'additionalItems.json': (json_schema_test_draft,), 'additionalProperties.json': (json_schema_test_draft,), 'allOf.json': (json_schema_test_draft,), 'anyOf.json': (json_schema_test_draft,), @@ -330,7 +329,7 @@ class ExclusionReason: 'patternProperties.json': (json_schema_test_draft,), 'prefixItems.json': (json_schema_test_draft,), 'properties.json': (json_schema_test_draft,), -# 'propertyNames.json': (json_schema_test_draft,), + 'propertyNames.json': (json_schema_test_draft,), 'ref.json': (json_schema_test_draft,), 'refRemote.json': (json_schema_test_draft,), 'required.json': (json_schema_test_draft,), From d8d61baf57e960306110cb16eb3e93c100826845 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Tue, 26 Sep 2023 13:44:13 -0700 Subject: [PATCH 22/34] Adds unevaluatedItems test cases to test spec --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 2195 ++++++++++++++++- .../3_1/unit_test_spec/spec_writer.py | 2 + 2 files changed, 2168 insertions(+), 29 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index b76ddb2f044..f2a8f12cdef 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -42,6 +42,7 @@ tags: - name: $ref - name: required - name: type +- name: unevaluatedItems - name: uniqueItems paths: /requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody: @@ -4364,6 +4365,906 @@ paths: - path.post - contentType_json - type + /requestBody/postUnevaluateditemsTrueRequestBody: + post: + operationId: postUnevaluateditemsTrueRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsTrue' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsTrue' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsTrueResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsTrueResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsTrue' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsTrue' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsFalseRequestBody: + post: + operationId: postUnevaluateditemsFalseRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsFalse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsFalse' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsFalseResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsFalseResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsFalse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsFalse' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsAsSchemaRequestBody: + post: + operationId: postUnevaluateditemsAsSchemaRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsAsSchema' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsAsSchema' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsAsSchemaResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsAsSchema' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsAsSchema' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithUniformItemsRequestBody: + post: + operationId: postUnevaluateditemsWithUniformItemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithUniformItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithUniformItems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithUniformItemsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithUniformItemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithUniformItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithUniformItems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithTupleRequestBody: + post: + operationId: postUnevaluateditemsWithTupleRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithTuple' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithTuple' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithTupleResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithTupleResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithTuple' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithTuple' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithItemsAndPrefixitemsRequestBody: + post: + operationId: postUnevaluateditemsWithItemsAndPrefixitemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithItemsAndPrefixitems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItemsAndPrefixitems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithItemsAndPrefixitemsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithItemsAndPrefixitemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithItemsAndPrefixitems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItemsAndPrefixitems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithItemsRequestBody: + post: + operationId: postUnevaluateditemsWithItemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithItemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithNestedTupleRequestBody: + post: + operationId: postUnevaluateditemsWithNestedTupleRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithNestedItemsRequestBody: + post: + operationId: postUnevaluateditemsWithNestedItemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody: + post: + operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithNestedUnevaluateditemsRequestBody: + post: + operationId: postUnevaluateditemsWithNestedUnevaluateditemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedUnevaluateditems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedUnevaluateditems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithNestedUnevaluateditemsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithNestedUnevaluateditemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNestedUnevaluateditems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedUnevaluateditems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithAnyofRequestBody: + post: + operationId: postUnevaluateditemsWithAnyofRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithAnyof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithAnyof' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithAnyofResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithAnyofResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithAnyof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithAnyof' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithOneofRequestBody: + post: + operationId: postUnevaluateditemsWithOneofRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithOneof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithOneof' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithOneofResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithOneofResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithOneof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithOneof' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithNotRequestBody: + post: + operationId: postUnevaluateditemsWithNotRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNot' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNot' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithNotResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithNotResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNot' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNot' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithIfThenElseRequestBody: + post: + operationId: postUnevaluateditemsWithIfThenElseRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithIfThenElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithIfThenElse' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithIfThenElseResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithIfThenElseResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithIfThenElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithIfThenElse' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithBooleanSchemasRequestBody: + post: + operationId: postUnevaluateditemsWithBooleanSchemasRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithBooleanSchemas' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithBooleanSchemas' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithBooleanSchemasResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithBooleanSchemasResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithBooleanSchemas' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithBooleanSchemas' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithRefRequestBody: + post: + operationId: postUnevaluateditemsWithRefRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithRef' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithRef' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithRefResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithRefResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithRef' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithRef' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsCanTSeeInsideCousinsRequestBody: + post: + operationId: postUnevaluateditemsCanTSeeInsideCousinsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsCanTSeeInsideCousins' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanTSeeInsideCousins' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsCanTSeeInsideCousinsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsCanTSeeInsideCousinsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsCanTSeeInsideCousins' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanTSeeInsideCousins' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsRequestBody: + post: + operationId: postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsResponseBodyForContentTypes: + post: + operationId: postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsDependsOnAdjacentContainsRequestBody: + post: + operationId: postUnevaluateditemsDependsOnAdjacentContainsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsDependsOnAdjacentContains' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsDependsOnAdjacentContains' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsDependsOnAdjacentContainsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsDependsOnAdjacentContainsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsDependsOnAdjacentContains' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsDependsOnAdjacentContains' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody: + post: + operationId: postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsDependsOnMultipleNestedContains' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsDependsOnMultipleNestedContains' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipRequestBody: + post: + operationId: postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postNonArrayInstancesAreValidRequestBody: + post: + operationId: postNonArrayInstancesAreValidRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NonArrayInstancesAreValid' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NonArrayInstancesAreValid' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postNonArrayInstancesAreValidResponseBodyForContentTypes: + post: + operationId: postNonArrayInstancesAreValidResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/NonArrayInstancesAreValid' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NonArrayInstancesAreValid' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody: + post: + operationId: postUnevaluateditemsWithNullInstanceElementsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNullInstanceElements' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNullInstanceElements' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsWithNullInstanceElements' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNullInstanceElements' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems + /requestBody/postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody: + post: + operationId: postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedItems + /responseBody/postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes: + post: + operationId: postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedItems /requestBody/postUniqueitemsValidationRequestBody: post: operationId: postUniqueitemsValidationRequestBody @@ -5087,45 +5988,241 @@ components: - constructor IntegerTypeMatchesIntegers: $schema: https://json-schema.org/draft/2020-12/schema - type: integer - NumberTypeMatchesNumbers: + type: integer + NumberTypeMatchesNumbers: + $schema: https://json-schema.org/draft/2020-12/schema + type: number + StringTypeMatchesStrings: + $schema: https://json-schema.org/draft/2020-12/schema + type: string + ObjectTypeMatchesObjects: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + ArrayTypeMatchesArrays: + $schema: https://json-schema.org/draft/2020-12/schema + type: array + BooleanTypeMatchesBooleans: + $schema: https://json-schema.org/draft/2020-12/schema + type: boolean + NullTypeMatchesOnlyTheNullObject: + $schema: https://json-schema.org/draft/2020-12/schema + type: 'null' + MultipleTypesCanBeSpecifiedInAnArray: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - integer + - string + TypeAsArrayWithOneItem: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - string + TypeArrayOrObject: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - array + - object + TypeArrayObjectOrNull: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - array + - object + - 'null' + UnevaluateditemsTrue: + $schema: https://json-schema.org/draft/2020-12/schema + unevaluatedItems: true + UnevaluateditemsFalse: + $schema: https://json-schema.org/draft/2020-12/schema + unevaluatedItems: false + UnevaluateditemsAsSchema: + $schema: https://json-schema.org/draft/2020-12/schema + unevaluatedItems: + type: string + UnevaluateditemsWithUniformItems: + $schema: https://json-schema.org/draft/2020-12/schema + items: + type: string + unevaluatedItems: false + UnevaluateditemsWithTuple: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - type: string + unevaluatedItems: false + UnevaluateditemsWithItemsAndPrefixitems: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - type: string + items: true + unevaluatedItems: false + UnevaluateditemsWithItems: + $schema: https://json-schema.org/draft/2020-12/schema + items: + type: number + unevaluatedItems: + type: string + UnevaluateditemsWithNestedTuple: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - type: string + allOf: + - prefixItems: + - true + - type: number + unevaluatedItems: false + UnevaluateditemsWithNestedItems: + $schema: https://json-schema.org/draft/2020-12/schema + unevaluatedItems: + type: boolean + anyOf: + - items: + type: string + - true + UnevaluateditemsWithNestedPrefixitemsAndItems: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - prefixItems: + - type: string + items: true + unevaluatedItems: false + UnevaluateditemsWithNestedUnevaluateditems: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - prefixItems: + - type: string + - unevaluatedItems: true + unevaluatedItems: false + UnevaluateditemsWithAnyof: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - const: foo + anyOf: + - prefixItems: + - true + - const: bar + - prefixItems: + - true + - true + - const: baz + unevaluatedItems: false + UnevaluateditemsWithOneof: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - const: foo + oneOf: + - prefixItems: + - true + - const: bar + - prefixItems: + - true + - const: baz + unevaluatedItems: false + UnevaluateditemsWithNot: + $schema: https://json-schema.org/draft/2020-12/schema + prefixItems: + - const: foo + not: + not: + prefixItems: + - true + - const: bar + unevaluatedItems: false + UnevaluateditemsWithIfThenElse: $schema: https://json-schema.org/draft/2020-12/schema - type: number - StringTypeMatchesStrings: + prefixItems: + - const: foo + if: + prefixItems: + - true + - const: bar + then: + prefixItems: + - true + - true + - const: then + else: + prefixItems: + - true + - true + - true + - const: else + unevaluatedItems: false + UnevaluateditemsWithBooleanSchemas: $schema: https://json-schema.org/draft/2020-12/schema - type: string - ObjectTypeMatchesObjects: + allOf: + - true + unevaluatedItems: false + UnevaluateditemsWithRef: $schema: https://json-schema.org/draft/2020-12/schema - type: object - ArrayTypeMatchesArrays: + $ref: '#/$defs/bar' + prefixItems: + - type: string + unevaluatedItems: false + $defs: + bar: + prefixItems: + - true + - type: string + UnevaluateditemsCanTSeeInsideCousins: $schema: https://json-schema.org/draft/2020-12/schema - type: array - BooleanTypeMatchesBooleans: + allOf: + - prefixItems: + - true + - unevaluatedItems: false + ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems: $schema: https://json-schema.org/draft/2020-12/schema - type: boolean - NullTypeMatchesOnlyTheNullObject: + properties: + foo: + prefixItems: + - type: string + unevaluatedItems: false + anyOf: + - properties: + foo: + prefixItems: + - true + - type: string + UnevaluateditemsDependsOnAdjacentContains: $schema: https://json-schema.org/draft/2020-12/schema - type: 'null' - MultipleTypesCanBeSpecifiedInAnArray: + prefixItems: + - true + contains: + type: string + unevaluatedItems: false + UnevaluateditemsDependsOnMultipleNestedContains: $schema: https://json-schema.org/draft/2020-12/schema - type: - - integer - - string - TypeAsArrayWithOneItem: + allOf: + - contains: + multipleOf: 2 + - contains: + multipleOf: 3 + unevaluatedItems: + multipleOf: 5 + UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship: $schema: https://json-schema.org/draft/2020-12/schema - type: - - string - TypeArrayOrObject: + if: + contains: + const: a + then: + if: + contains: + const: b + then: + if: + contains: + const: c + unevaluatedItems: false + NonArrayInstancesAreValid: $schema: https://json-schema.org/draft/2020-12/schema - type: - - array - - object - TypeArrayObjectOrNull: + unevaluatedItems: false + UnevaluateditemsWithNullInstanceElements: $schema: https://json-schema.org/draft/2020-12/schema - type: - - array - - object - - 'null' + unevaluatedItems: + type: 'null' + UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse: + $schema: https://json-schema.org/draft/2020-12/schema + if: + prefixItems: + - const: a + unevaluatedItems: false UniqueitemsValidation: $schema: https://json-schema.org/draft/2020-12/schema uniqueItems: true @@ -5151,17 +6248,20 @@ components: data: "\xE1rm\xE1nyos": 2 valid: true + comment: null NotMatchingThePatternIsInvalid: description: not matching the pattern is invalid data: "\xE9lm\xE9ny": 2 valid: false + comment: null AdditionalpropertiesWithSchema: NoAdditionalPropertiesIsValid: description: no additional properties is valid data: foo: 1 valid: true + comment: null AnAdditionalValidPropertyIsValid: description: an additional valid property is valid data: @@ -5169,6 +6269,7 @@ components: bar: 2 quux: true valid: true + comment: null AnAdditionalInvalidPropertyIsInvalid: description: an additional invalid property is invalid data: @@ -5176,17 +6277,20 @@ components: bar: 2 quux: 12 valid: false + comment: null AdditionalpropertiesCanExistByItself: AnAdditionalValidPropertyIsValid: description: an additional valid property is valid data: foo: true valid: true + comment: null AnAdditionalInvalidPropertyIsInvalid: description: an additional invalid property is invalid data: foo: 1 valid: false + comment: null AdditionalpropertiesAreAllowedByDefault: AdditionalPropertiesAreAllowed: description: additional properties are allowed @@ -5195,6 +6299,7 @@ components: bar: 2 quux: true valid: true + comment: null AdditionalpropertiesDoesNotLookInApplicators: PropertiesDefinedInAllofAreNotExamined: description: properties defined in allOf are not examined @@ -5202,12 +6307,14 @@ components: foo: 1 bar: true valid: false + comment: null AdditionalpropertiesWithNullValuedInstanceProperties: AllowsNullValues: description: allows null values data: foo: null valid: true + comment: null Allof: Allof: description: allOf @@ -5215,22 +6322,26 @@ components: foo: baz bar: 2 valid: true + comment: null MismatchSecond: description: mismatch second data: foo: baz valid: false + comment: null MismatchFirst: description: mismatch first data: bar: 2 valid: false + comment: null WrongType: description: wrong type data: foo: baz bar: quux valid: false + comment: null AllofWithBaseSchema: Valid: description: valid @@ -5239,188 +6350,228 @@ components: bar: 2 baz: null valid: true + comment: null MismatchBaseSchema: description: mismatch base schema data: foo: quux baz: null valid: false + comment: null MismatchFirstAllof: description: mismatch first allOf data: bar: 2 baz: null valid: false + comment: null MismatchSecondAllof: description: mismatch second allOf data: foo: quux bar: 2 valid: false + comment: null MismatchBoth: description: mismatch both data: bar: 2 valid: false + comment: null AllofSimpleTypes: Valid: description: valid data: 25 valid: true + comment: null MismatchOne: description: mismatch one data: 35 valid: false + comment: null AllofWithOneEmptySchema: AnyDataIsValid: description: any data is valid data: 1 valid: true + comment: null AllofWithTwoEmptySchemas: AnyDataIsValid: description: any data is valid data: 1 valid: true + comment: null AllofWithTheFirstEmptySchema: NumberIsValid: description: number is valid data: 1 valid: true + comment: null StringIsInvalid: description: string is invalid data: foo valid: false + comment: null AllofWithTheLastEmptySchema: NumberIsValid: description: number is valid data: 1 valid: true + comment: null StringIsInvalid: description: string is invalid data: foo valid: false + comment: null NestedAllofToCheckValidationSemantics: NullIsValid: description: null is valid data: null valid: true + comment: null AnythingNonNullIsInvalid: description: anything non-null is invalid data: 123 valid: false + comment: null AllofCombinedWithAnyofOneof: AllofFalseAnyofFalseOneofFalse: description: 'allOf: false, anyOf: false, oneOf: false' data: 1 valid: false + comment: null AllofFalseAnyofFalseOneofTrue: description: 'allOf: false, anyOf: false, oneOf: true' data: 5 valid: false + comment: null AllofFalseAnyofTrueOneofFalse: description: 'allOf: false, anyOf: true, oneOf: false' data: 3 valid: false + comment: null AllofFalseAnyofTrueOneofTrue: description: 'allOf: false, anyOf: true, oneOf: true' data: 15 valid: false + comment: null AllofTrueAnyofFalseOneofFalse: description: 'allOf: true, anyOf: false, oneOf: false' data: 2 valid: false + comment: null AllofTrueAnyofFalseOneofTrue: description: 'allOf: true, anyOf: false, oneOf: true' data: 10 valid: false + comment: null AllofTrueAnyofTrueOneofFalse: description: 'allOf: true, anyOf: true, oneOf: false' data: 6 valid: false + comment: null AllofTrueAnyofTrueOneofTrue: description: 'allOf: true, anyOf: true, oneOf: true' data: 30 valid: true + comment: null Anyof: FirstAnyofValid: description: first anyOf valid data: 1 valid: true + comment: null SecondAnyofValid: description: second anyOf valid data: 2.5 valid: true + comment: null BothAnyofValid: description: both anyOf valid data: 3 valid: true + comment: null NeitherAnyofValid: description: neither anyOf valid data: 1.5 valid: false + comment: null AnyofWithBaseSchema: MismatchBaseSchema: description: mismatch base schema data: 3 valid: false + comment: null OneAnyofValid: description: one anyOf valid data: foobar valid: true + comment: null BothAnyofInvalid: description: both anyOf invalid data: foo valid: false + comment: null AnyofComplexTypes: FirstAnyofValidComplex: description: first anyOf valid (complex) data: bar: 2 valid: true + comment: null SecondAnyofValidComplex: description: second anyOf valid (complex) data: foo: baz valid: true + comment: null BothAnyofValidComplex: description: both anyOf valid (complex) data: foo: baz bar: 2 valid: true + comment: null NeitherAnyofValidComplex: description: neither anyOf valid (complex) data: foo: 2 bar: quux valid: false + comment: null AnyofWithOneEmptySchema: StringIsValid: description: string is valid data: foo valid: true + comment: null NumberIsValid: description: number is valid data: 123 valid: true + comment: null NestedAnyofToCheckValidationSemantics: NullIsValid: description: null is valid data: null valid: true + comment: null AnythingNonNullIsInvalid: description: anything non-null is invalid data: 123 valid: false + comment: null ConstNulCharactersInStrings: MatchStringWithNul: description: match string with nul data: "hello\0there" valid: true + comment: null DoNotMatchStringLackingNul: description: do not match string lacking nul data: hellothere valid: false + comment: null ContainsKeywordValidation: ArrayWithItemMatchingSchema5IsValid: description: array with item matching schema (5) is valid @@ -5429,6 +6580,7 @@ components: - 4 - 5 valid: true + comment: null ArrayWithItemMatchingSchema6IsValid: description: array with item matching schema (6) is valid data: @@ -5436,6 +6588,7 @@ components: - 4 - 6 valid: true + comment: null ArrayWithTwoItemsMatchingSchema56IsValid: description: array with two items matching schema (5, 6) is valid data: @@ -5444,6 +6597,7 @@ components: - 5 - 6 valid: true + comment: null ArrayWithoutItemsMatchingSchemaIsInvalid: description: array without items matching schema is invalid data: @@ -5451,14 +6605,17 @@ components: - 3 - 4 valid: false + comment: null EmptyArrayIsInvalid: description: empty array is invalid data: [] valid: false + comment: null NotArrayIsValid: description: not array is valid data: {} valid: true + comment: null ItemsContains: MatchesItemsDoesNotMatchContains: description: matches items, does not match contains @@ -5467,6 +6624,7 @@ components: - 4 - 8 valid: false + comment: null DoesNotMatchItemsMatchesContains: description: does not match items, matches contains data: @@ -5474,83 +6632,99 @@ components: - 6 - 9 valid: false + comment: null MatchesBothItemsAndContains: description: matches both items and contains data: - 6 - 12 valid: true + comment: null MatchesNeitherItemsNorContains: description: matches neither items nor contains data: - 1 - 5 valid: false + comment: null ContainsWithNullInstanceElements: AllowsNullItems: description: allows null items data: - null valid: true + comment: null SingleDependency: Neither: description: neither data: {} valid: true + comment: null Nondependant: description: nondependant data: foo: 1 valid: true + comment: null WithDependency: description: with dependency data: foo: 1 bar: 2 valid: true + comment: null MissingDependency: description: missing dependency data: bar: 2 valid: false + comment: null IgnoresArrays: description: ignores arrays data: - bar valid: true + comment: null IgnoresStrings: description: ignores strings data: foobar valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null EmptyDependents: EmptyObject: description: empty object data: {} valid: true + comment: null ObjectWithOneProperty: description: object with one property data: bar: 2 valid: true + comment: null NonObjectIsValid: description: non-object is valid data: 1 valid: true + comment: null MultipleDependentsRequired: Neither: description: neither data: {} valid: true + comment: null Nondependants: description: nondependants data: foo: 1 bar: 2 valid: true + comment: null WithDependencies: description: with dependencies data: @@ -5558,23 +6732,27 @@ components: bar: 2 quux: 3 valid: true + comment: null MissingDependency: description: missing dependency data: foo: 1 quux: 2 valid: false + comment: null MissingOtherDependency: description: missing other dependency data: bar: 1 quux: 2 valid: false + comment: null MissingBothDependencies: description: missing both dependencies data: quux: 1 valid: false + comment: null DependentSchemasSingleDependency: Valid: description: valid @@ -5582,42 +6760,50 @@ components: foo: 1 bar: 2 valid: true + comment: null NoDependency: description: no dependency data: foo: quux valid: true + comment: null WrongType: description: wrong type data: foo: quux bar: 2 valid: false + comment: null WrongTypeOther: description: wrong type other data: foo: 2 bar: quux valid: false + comment: null WrongTypeBoth: description: wrong type both data: foo: quux bar: quux valid: false + comment: null IgnoresArrays: description: ignores arrays data: - bar valid: true + comment: null IgnoresStrings: description: ignores strings data: foobar valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null DependentSchemasDependenciesWithEscapedCharacters: QuotedTab: description: quoted tab @@ -5627,54 +6813,64 @@ components: b: 3 c: 4 valid: true + comment: null QuotedQuote: description: quoted quote data: foo'bar: foo"bar: 1 valid: false + comment: null QuotedTabInvalidUnderDependentSchema: description: quoted tab invalid under dependent schema data: "foo\tbar": 1 a: 2 valid: false + comment: null QuotedQuoteInvalidUnderDependentSchema: description: quoted quote invalid under dependent schema data: foo'bar: 1 valid: false + comment: null DependentSchemasDependentSubschemaIncompatibleWithRoot: MatchesRoot: description: matches root data: foo: 1 valid: false + comment: null MatchesDependency: description: matches dependency data: bar: 1 valid: true + comment: null MatchesBoth: description: matches both data: foo: 1 bar: 2 valid: false + comment: null NoDependency: description: no dependency data: baz: 1 valid: true + comment: null SimpleEnumValidation: OneOfTheEnumIsValid: description: one of the enum is valid data: 1 valid: true + comment: null SomethingElseIsInvalid: description: something else is invalid data: 4 valid: false + comment: null EnumsInProperties: BothPropertiesAreValid: description: both properties are valid @@ -5682,32 +6878,38 @@ components: foo: foo bar: bar valid: true + comment: null WrongFooValue: description: wrong foo value data: foo: foot bar: bar valid: false + comment: null WrongBarValue: description: wrong bar value data: foo: foo bar: bart valid: false + comment: null MissingOptionalPropertyIsValid: description: missing optional property is valid data: bar: bar valid: true + comment: null MissingRequiredPropertyIsInvalid: description: missing required property is invalid data: foo: foo valid: false + comment: null MissingAllPropertiesIsInvalid: description: missing all properties is invalid data: {} valid: false + comment: null EnumWithEscapedCharacters: Member1IsValid: description: member 1 is valid @@ -5715,627 +6917,777 @@ components: bar' valid: true + comment: null Member2IsValid: description: member 2 is valid data: "foo\rbar" valid: true + comment: null AnotherStringIsInvalid: description: another string is invalid data: abc valid: false + comment: null EnumWithFalseDoesNotMatch0: FalseIsValid: description: false is valid data: false valid: true + comment: null IntegerZeroIsInvalid: description: integer zero is invalid data: 0 valid: false + comment: null FloatZeroIsInvalid: description: float zero is invalid data: 0.0 valid: false + comment: null EnumWithTrueDoesNotMatch1: TrueIsValid: description: true is valid data: true valid: true + comment: null IntegerOneIsInvalid: description: integer one is invalid data: 1 valid: false + comment: null FloatOneIsInvalid: description: float one is invalid data: 1.0 valid: false + comment: null EnumWith0DoesNotMatchFalse: FalseIsInvalid: description: false is invalid data: false valid: false + comment: null IntegerZeroIsValid: description: integer zero is valid data: 0 valid: true + comment: null FloatZeroIsValid: description: float zero is valid data: 0.0 valid: true + comment: null EnumWith1DoesNotMatchTrue: TrueIsInvalid: description: true is invalid data: true valid: false + comment: null IntegerOneIsValid: description: integer one is valid data: 1 valid: true + comment: null FloatOneIsValid: description: float one is valid data: 1.0 valid: true + comment: null NulCharactersInStrings: MatchStringWithNul: description: match string with nul data: "hello\0there" valid: true + comment: null DoNotMatchStringLackingNul: description: do not match string lacking nul data: hellothere valid: false + comment: null EmailFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidEmailStringIsOnlyAnAnnotationByDefault: description: invalid email string is only an annotation by default data: '2962' valid: true + comment: null IdnEmailFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidIdnEmailStringIsOnlyAnAnnotationByDefault: description: invalid idn-email string is only an annotation by default data: '2962' valid: true + comment: null RegexFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidRegexStringIsOnlyAnAnnotationByDefault: description: invalid regex string is only an annotation by default data: ^(abc] valid: true + comment: null Ipv4Format: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidIpv4StringIsOnlyAnAnnotationByDefault: description: invalid ipv4 string is only an annotation by default data: 127.0.0.0.1 valid: true + comment: null Ipv6Format: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidIpv6StringIsOnlyAnAnnotationByDefault: description: invalid ipv6 string is only an annotation by default data: '12345::' valid: true + comment: null IdnHostnameFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidIdnHostnameStringIsOnlyAnAnnotationByDefault: description: invalid idn-hostname string is only an annotation by default data: "\u302E\uC2E4\uB840.\uD14C\uC2A4\uD2B8" valid: true + comment: null HostnameFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidHostnameStringIsOnlyAnAnnotationByDefault: description: invalid hostname string is only an annotation by default data: -a-host-name-that-starts-with-- valid: true + comment: null DateFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidDateStringIsOnlyAnAnnotationByDefault: description: invalid date string is only an annotation by default data: 06/19/1963 valid: true + comment: null DateTimeFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidDateTimeStringIsOnlyAnAnnotationByDefault: description: invalid date-time string is only an annotation by default data: '1990-02-31T15:59:60.123-08:00' valid: true + comment: null TimeFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidTimeStringIsOnlyAnAnnotationByDefault: description: invalid time string is only an annotation by default data: 08:30:06 PST valid: true + comment: null JsonPointerFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidJsonPointerStringIsOnlyAnAnnotationByDefault: description: invalid json-pointer string is only an annotation by default data: /foo/bar~ valid: true + comment: null RelativeJsonPointerFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidRelativeJsonPointerStringIsOnlyAnAnnotationByDefault: description: invalid relative-json-pointer string is only an annotation by default data: /foo/bar valid: true + comment: null IriFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidIriStringIsOnlyAnAnnotationByDefault: description: invalid iri string is only an annotation by default data: http://2001:0db8:85a3:0000:0000:8a2e:0370:7334 valid: true + comment: null IriReferenceFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidIriReferenceStringIsOnlyAnAnnotationByDefault: description: invalid iri-reference string is only an annotation by default data: "\\\\WINDOWS\\fil\xEB\xDF\xE5r\xE9" valid: true + comment: null UriFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidUriStringIsOnlyAnAnnotationByDefault: description: invalid uri string is only an annotation by default data: //foo.bar/?baz=qux#quux valid: true + comment: null UriReferenceFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidUriReferenceStringIsOnlyAnAnnotationByDefault: description: invalid uri-reference string is only an annotation by default data: \\WINDOWS\fileshare valid: true + comment: null UriTemplateFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidUriTemplateStringIsOnlyAnAnnotationByDefault: description: invalid uri-template string is only an annotation by default data: http://example.com/dictionary/{term:1}/{term valid: true + comment: null UuidFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidUuidStringIsOnlyAnAnnotationByDefault: description: invalid uuid string is only an annotation by default data: 2eb8aa08-aa98-11ea-b4aa-73b441d1638 valid: true + comment: null DurationFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 valid: true + comment: null AllStringFormatsIgnoreFloats: description: all string formats ignore floats data: 13.7 valid: true + comment: null AllStringFormatsIgnoreObjects: description: all string formats ignore objects data: {} valid: true + comment: null AllStringFormatsIgnoreArrays: description: all string formats ignore arrays data: [] valid: true + comment: null AllStringFormatsIgnoreBooleans: description: all string formats ignore booleans data: false valid: true + comment: null AllStringFormatsIgnoreNulls: description: all string formats ignore nulls data: null valid: true + comment: null InvalidDurationStringIsOnlyAnAnnotationByDefault: description: invalid duration string is only an annotation by default data: PT1D valid: true + comment: null NestedItems: ValidNestedArray: description: valid nested array @@ -6347,6 +7699,7 @@ components: - - 5 - - 6 valid: true + comment: null NestedArrayWithInvalidType: description: nested array with invalid type data: @@ -6357,6 +7710,7 @@ components: - - 5 - - 6 valid: false + comment: null NotDeepEnough: description: not deep enough data: @@ -6367,6 +7721,7 @@ components: - - 5 - - 6 valid: false + comment: null ItemsDoesNotLookInApplicatorsValidCase: PrefixitemsInAllofDoesNotConstrainItemsInvalidCase: description: prefixItems in allOf does not constrain items, invalid case @@ -6374,12 +7729,14 @@ components: - 3 - 5 valid: false + comment: null PrefixitemsInAllofDoesNotConstrainItemsValidCase: description: prefixItems in allOf does not constrain items, valid case data: - 5 - 5 valid: true + comment: null PrefixitemsValidationAdjustsTheStartingIndexForItems: ValidItems: description: valid items @@ -6388,76 +7745,91 @@ components: - 2 - 3 valid: true + comment: null WrongTypeOfSecondItem: description: wrong type of second item data: - x - y valid: false + comment: null ItemsWithNullInstanceElements: AllowsNullElements: description: allows null elements data: - null valid: true + comment: null MaxcontainsWithoutContainsIsIgnored: OneItemValidAgainstLoneMaxcontains: description: one item valid against lone maxContains data: - 1 valid: true + comment: null TwoItemsStillValidAgainstLoneMaxcontains: description: two items still valid against lone maxContains data: - 1 - 2 valid: true + comment: null MaximumValidation: BelowTheMaximumIsValid: description: below the maximum is valid data: 2.6 valid: true + comment: null BoundaryPointIsValid: description: boundary point is valid data: 3.0 valid: true + comment: null AboveTheMaximumIsInvalid: description: above the maximum is invalid data: 3.5 valid: false + comment: null IgnoresNonNumbers: description: ignores non-numbers data: x valid: true + comment: null MaximumValidationWithUnsignedInteger: BelowTheMaximumIsInvalid: description: below the maximum is invalid data: 299.97 valid: true + comment: null BoundaryPointIntegerIsValid: description: boundary point integer is valid data: 300 valid: true + comment: null BoundaryPointFloatIsValid: description: boundary point float is valid data: 300.0 valid: true + comment: null AboveTheMaximumIsInvalid: description: above the maximum is invalid data: 300.5 valid: false + comment: null MaxitemsValidation: ShorterIsValid: description: shorter is valid data: - 1 valid: true + comment: null ExactLengthIsValid: description: exact length is valid data: - 1 - 2 valid: true + comment: null TooLongIsInvalid: description: too long is invalid data: @@ -6465,43 +7837,52 @@ components: - 2 - 3 valid: false + comment: null IgnoresNonArrays: description: ignores non-arrays data: foobar valid: true + comment: null MaxlengthValidation: ShorterIsValid: description: shorter is valid data: f valid: true + comment: null ExactLengthIsValid: description: exact length is valid data: fo valid: true + comment: null TooLongIsInvalid: description: too long is invalid data: foo valid: false + comment: null IgnoresNonStrings: description: ignores non-strings data: 100 valid: true + comment: null TwoSupplementaryUnicodeCodePointsIsLongEnough: description: two supplementary Unicode code points is long enough data: "\U0001F4A9\U0001F4A9" valid: true + comment: null MaxpropertiesValidation: ShorterIsValid: description: shorter is valid data: foo: 1 valid: true + comment: null ExactLengthIsValid: description: exact length is valid data: foo: 1 bar: 2 valid: true + comment: null TooLongIsInvalid: description: too long is invalid data: @@ -6509,6 +7890,7 @@ components: bar: 2 baz: 3 valid: false + comment: null IgnoresArrays: description: ignores arrays data: @@ -6516,80 +7898,98 @@ components: - 2 - 3 valid: true + comment: null IgnoresStrings: description: ignores strings data: foobar valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null Maxproperties0MeansTheObjectIsEmpty: NoPropertiesIsValid: description: no properties is valid data: {} valid: true + comment: null OnePropertyIsInvalid: description: one property is invalid data: foo: 1 valid: false + comment: null MinimumValidation: AboveTheMinimumIsValid: description: above the minimum is valid data: 2.6 valid: true + comment: null BoundaryPointIsValid: description: boundary point is valid data: 1.1 valid: true + comment: null BelowTheMinimumIsInvalid: description: below the minimum is invalid data: 0.6 valid: false + comment: null IgnoresNonNumbers: description: ignores non-numbers data: x valid: true + comment: null MinimumValidationWithSignedInteger: NegativeAboveTheMinimumIsValid: description: negative above the minimum is valid data: -1 valid: true + comment: null PositiveAboveTheMinimumIsValid: description: positive above the minimum is valid data: 0 valid: true + comment: null BoundaryPointIsValid: description: boundary point is valid data: -2 valid: true + comment: null BoundaryPointWithFloatIsValid: description: boundary point with float is valid data: -2.0 valid: true + comment: null FloatBelowTheMinimumIsInvalid: description: float below the minimum is invalid data: -2.0001 valid: false + comment: null IntBelowTheMinimumIsInvalid: description: int below the minimum is invalid data: -3 valid: false + comment: null IgnoresNonNumbers: description: ignores non-numbers data: x valid: true + comment: null MincontainsWithoutContainsIsIgnored: OneItemValidAgainstLoneMincontains: description: one item valid against lone minContains data: - 1 valid: true + comment: null ZeroItemsStillValidAgainstLoneMincontains: description: zero items still valid against lone minContains data: [] valid: true + comment: null MinitemsValidation: LongerIsValid: description: longer is valid @@ -6597,40 +7997,49 @@ components: - 1 - 2 valid: true + comment: null ExactLengthIsValid: description: exact length is valid data: - 1 valid: true + comment: null TooShortIsInvalid: description: too short is invalid data: [] valid: false + comment: null IgnoresNonArrays: description: ignores non-arrays data: '' valid: true + comment: null MinlengthValidation: LongerIsValid: description: longer is valid data: foo valid: true + comment: null ExactLengthIsValid: description: exact length is valid data: fo valid: true + comment: null TooShortIsInvalid: description: too short is invalid data: f valid: false + comment: null IgnoresNonStrings: description: ignores non-strings data: 1 valid: true + comment: null OneSupplementaryUnicodeCodePointIsNotLongEnough: description: one supplementary Unicode code point is not long enough data: "\U0001F4A9" valid: false + comment: null MinpropertiesValidation: LongerIsValid: description: longer is valid @@ -6638,97 +8047,118 @@ components: foo: 1 bar: 2 valid: true + comment: null ExactLengthIsValid: description: exact length is valid data: foo: 1 valid: true + comment: null TooShortIsInvalid: description: too short is invalid data: {} valid: false + comment: null IgnoresArrays: description: ignores arrays data: [] valid: true + comment: null IgnoresStrings: description: ignores strings data: '' valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null ByInt: IntByInt: description: int by int data: 10 valid: true + comment: null IntByIntFail: description: int by int fail data: 7 valid: false + comment: null IgnoresNonNumbers: description: ignores non-numbers data: foo valid: true + comment: null ByNumber: ZeroIsMultipleOfAnything: description: zero is multiple of anything data: 0 valid: true + comment: null 45IsMultipleOf15: description: 4.5 is multiple of 1.5 data: 4.5 valid: true + comment: null 35IsNotMultipleOf15: description: 35 is not multiple of 1.5 data: 35 valid: false + comment: null BySmallNumber: 00075IsMultipleOf00001: description: 0.0075 is multiple of 0.0001 data: 0.0075 valid: true + comment: null 000751IsNotMultipleOf00001: description: 0.00751 is not multiple of 0.0001 data: 0.00751 valid: false + comment: null FloatDivisionInf: AlwaysInvalidButNaiveImplementationsMayRaiseAnOverflowError: description: always invalid, but naive implementations may raise an overflow error data: 1.0e+308 valid: false + comment: null SmallMultipleOfLargeInteger: AnyIntegerIsAMultipleOf1E8: description: any integer is a multiple of 1e-8 data: 12391239123 valid: true + comment: null Not: Allowed: description: allowed data: foo valid: true + comment: null Disallowed: description: disallowed data: 1 valid: false + comment: null NotMoreComplexSchema: Match: description: match data: 1 valid: true + comment: null OtherMatch: description: other match data: foo: 1 valid: true + comment: null Mismatch: description: mismatch data: foo: bar valid: false + comment: null ForbiddenProperty: PropertyPresent: description: property present @@ -6736,92 +8166,110 @@ components: foo: 1 bar: 2 valid: false + comment: null PropertyAbsent: description: property absent data: bar: 1 baz: 2 valid: true + comment: null Oneof: FirstOneofValid: description: first oneOf valid data: 1 valid: true + comment: null SecondOneofValid: description: second oneOf valid data: 2.5 valid: true + comment: null BothOneofValid: description: both oneOf valid data: 3 valid: false + comment: null NeitherOneofValid: description: neither oneOf valid data: 1.5 valid: false + comment: null OneofWithBaseSchema: MismatchBaseSchema: description: mismatch base schema data: 3 valid: false + comment: null OneOneofValid: description: one oneOf valid data: foobar valid: true + comment: null BothOneofValid: description: both oneOf valid data: foo valid: false + comment: null OneofComplexTypes: FirstOneofValidComplex: description: first oneOf valid (complex) data: bar: 2 valid: true + comment: null SecondOneofValidComplex: description: second oneOf valid (complex) data: foo: baz valid: true + comment: null BothOneofValidComplex: description: both oneOf valid (complex) data: foo: baz bar: 2 valid: false + comment: null NeitherOneofValidComplex: description: neither oneOf valid (complex) data: foo: 2 bar: quux valid: false + comment: null OneofWithEmptySchema: OneValidValid: description: one valid - valid data: foo valid: true + comment: null BothValidInvalid: description: both valid - invalid data: 123 valid: false + comment: null OneofWithRequired: BothInvalidInvalid: description: both invalid - invalid data: bar: 2 valid: false + comment: null FirstValidValid: description: first valid - valid data: foo: 1 bar: 2 valid: true + comment: null SecondValidValid: description: second valid - valid data: foo: 1 baz: 3 valid: true + comment: null BothValidInvalid: description: both valid - invalid data: @@ -6829,150 +8277,180 @@ components: bar: 2 baz: 3 valid: false + comment: null NestedOneofToCheckValidationSemantics: NullIsValid: description: null is valid data: null valid: true + comment: null AnythingNonNullIsInvalid: description: anything non-null is invalid data: 123 valid: false + comment: null PatternValidation: AMatchingPatternIsValid: description: a matching pattern is valid data: aaa valid: true + comment: null ANonMatchingPatternIsInvalid: description: a non-matching pattern is invalid data: abc valid: false + comment: null IgnoresBooleans: description: ignores booleans data: true valid: true + comment: null IgnoresIntegers: description: ignores integers data: 123 valid: true + comment: null IgnoresFloats: description: ignores floats data: 1.0 valid: true + comment: null IgnoresObjects: description: ignores objects data: {} valid: true + comment: null IgnoresArrays: description: ignores arrays data: [] valid: true + comment: null IgnoresNull: description: ignores null data: null valid: true + comment: null PatternIsNotAnchored: MatchesASubstring: description: matches a substring data: xxaayy valid: true + comment: null PatternpropertiesValidatesPropertiesMatchingARegex: ASingleValidMatchIsValid: description: a single valid match is valid data: foo: 1 valid: true + comment: null MultipleValidMatchesIsValid: description: multiple valid matches is valid data: foo: 1 foooooo: 2 valid: true + comment: null ASingleInvalidMatchIsInvalid: description: a single invalid match is invalid data: foo: bar fooooo: 2 valid: false + comment: null MultipleInvalidMatchesIsInvalid: description: multiple invalid matches is invalid data: foo: bar foooooo: baz valid: false + comment: null IgnoresArrays: description: ignores arrays data: - foo valid: true + comment: null IgnoresStrings: description: ignores strings data: foo valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null MultipleSimultaneousPatternpropertiesAreValidated: ASingleValidMatchIsValid: description: a single valid match is valid data: a: 21 valid: true + comment: null ASimultaneousMatchIsValid: description: a simultaneous match is valid data: aaaa: 18 valid: true + comment: null MultipleMatchesIsValid: description: multiple matches is valid data: a: 21 aaaa: 18 valid: true + comment: null AnInvalidDueToOneIsInvalid: description: an invalid due to one is invalid data: a: bar valid: false + comment: null AnInvalidDueToTheOtherIsInvalid: description: an invalid due to the other is invalid data: aaaa: 31 valid: false + comment: null AnInvalidDueToBothIsInvalid: description: an invalid due to both is invalid data: aaa: foo aaaa: 31 valid: false + comment: null RegexesAreNotAnchoredByDefaultAndAreCaseSensitive: NonRecognizedMembersAreIgnored: description: non recognized members are ignored data: answer 1: '42' valid: true + comment: null RecognizedMembersAreAccountedFor: description: recognized members are accounted for data: a31b: null valid: false + comment: null RegexesAreCaseSensitive: description: regexes are case sensitive data: a_x_3: 3 valid: true + comment: null RegexesAreCaseSensitive2: description: regexes are case sensitive, 2 data: a_X_3: 3 valid: false + comment: null PatternpropertiesWithNullValuedInstanceProperties: AllowsNullValues: description: allows null values data: foobar: null valid: true + comment: null ASchemaGivenForPrefixitems: CorrectTypes: description: correct types @@ -6980,17 +8458,20 @@ components: - 1 - foo valid: true + comment: null WrongTypes: description: wrong types data: - foo - 1 valid: false + comment: null IncompleteArrayOfItems: description: incomplete array of items data: - 1 valid: true + comment: null ArrayWithAdditionalItems: description: array with additional items data: @@ -6998,10 +8479,12 @@ components: - foo - true valid: true + comment: null EmptyArray: description: empty array data: [] valid: true + comment: null JavascriptPseudoArrayIsValid: description: JavaScript pseudo-array is valid data: @@ -7009,6 +8492,7 @@ components: '1': valid length: 2 valid: true + comment: null AdditionalItemsAreAllowedByDefault: OnlyTheFirstItemIsValidated: description: only the first item is validated @@ -7017,12 +8501,14 @@ components: - foo - false valid: true + comment: null PrefixitemsWithNullInstanceElements: AllowsNullElements: description: allows null elements data: - null valid: true + comment: null ObjectPropertiesValidation: BothPropertiesPresentAndValidIsValid: description: both properties present and valid is valid @@ -7030,31 +8516,37 @@ components: foo: 1 bar: baz valid: true + comment: null OnePropertyInvalidIsInvalid: description: one property invalid is invalid data: foo: 1 bar: {} valid: false + comment: null BothPropertiesInvalidIsInvalid: description: both properties invalid is invalid data: foo: [] bar: {} valid: false + comment: null DoesnTInvalidateOtherProperties: description: doesn't invalidate other properties data: quux: [] valid: true + comment: null IgnoresArrays: description: ignores arrays data: [] valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null PropertiesPatternpropertiesAdditionalpropertiesInteraction: PropertyValidatesProperty: description: property validates property @@ -7063,6 +8555,7 @@ components: - 1 - 2 valid: true + comment: null PropertyInvalidatesProperty: description: property invalidates property data: @@ -7072,11 +8565,13 @@ components: - 3 - 4 valid: false + comment: null PatternpropertyInvalidatesProperty: description: patternProperty invalidates property data: foo: [] valid: false + comment: null PatternpropertyValidatesNonproperty: description: patternProperty validates nonproperty data: @@ -7084,26 +8579,31 @@ components: - 1 - 2 valid: true + comment: null PatternpropertyInvalidatesNonproperty: description: patternProperty invalidates nonproperty data: fxo: [] valid: false + comment: null AdditionalpropertyIgnoresProperty: description: additionalProperty ignores property data: bar: [] valid: true + comment: null AdditionalpropertyValidatesOthers: description: additionalProperty validates others data: quux: 3 valid: true + comment: null AdditionalpropertyInvalidatesOthers: description: additionalProperty invalidates others data: quux: foo valid: false + comment: null PropertiesWithEscapedCharacters: ObjectWithAllNumbersIsValid: description: object with all numbers is valid @@ -7118,6 +8618,7 @@ components: "foo\tbar": 1 "foo\fbar": 1 valid: true + comment: null ObjectWithStringsIsInvalid: description: object with strings is invalid data: @@ -7131,42 +8632,50 @@ components: "foo\tbar": '1' "foo\fbar": '1' valid: false + comment: null PropertiesWithNullValuedInstanceProperties: AllowsNullValues: description: allows null values data: foo: null valid: true + comment: null PropertiesWhoseNamesAreJavascriptObjectPropertyNames: IgnoresArrays: description: ignores arrays data: [] valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null NoneOfThePropertiesMentioned: description: none of the properties mentioned data: {} valid: true + comment: null ProtoNotValid: description: __proto__ not valid data: __proto__: foo valid: false + comment: null TostringNotValid: description: toString not valid data: toString: length: 37 valid: false + comment: null ConstructorNotValid: description: constructor not valid data: constructor: length: 37 valid: false + comment: null AllPresentAndValid: description: all present and valid data: @@ -7175,6 +8684,7 @@ components: length: foo constructor: 37 valid: true + comment: null PropertynamesValidation: AllPropertyNamesValid: description: all property names valid @@ -7182,16 +8692,19 @@ components: f: {} foo: {} valid: true + comment: null SomePropertyNamesInvalid: description: some property names invalid data: foo: {} foobar: {} valid: false + comment: null ObjectWithoutPropertiesIsValid: description: object without properties is valid data: {} valid: true + comment: null IgnoresArrays: description: ignores arrays data: @@ -7200,58 +8713,70 @@ components: - 3 - 4 valid: true + comment: null IgnoresStrings: description: ignores strings data: foobar valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null PropertyNamedRefThatIsNotAReference: PropertyNamedRefValid: description: property named $ref valid data: $ref: a valid: true + comment: null PropertyNamedRefInvalid: description: property named $ref invalid data: $ref: 2 valid: false + comment: null RequiredValidation: PresentRequiredPropertyIsValid: description: present required property is valid data: foo: 1 valid: true + comment: null NonPresentRequiredPropertyIsInvalid: description: non-present required property is invalid data: bar: 1 valid: false + comment: null IgnoresArrays: description: ignores arrays data: [] valid: true + comment: null IgnoresStrings: description: ignores strings data: '' valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null RequiredDefaultValidation: NotRequiredByDefault: description: not required by default data: {} valid: true + comment: null RequiredWithEmptyArray: PropertyNotRequired: description: property not required data: {} valid: true + comment: null RequiredWithEscapedCharacters: ObjectWithAllPropertiesPresentIsValid: description: object with all properties present is valid @@ -7266,6 +8791,7 @@ components: "foo\tbar": 1 "foo\fbar": 1 valid: true + comment: null ObjectWithSomePropertiesMissingIsInvalid: description: object with some properties missing is invalid data: @@ -7275,36 +8801,43 @@ components: : '1' foo"bar: '1' valid: false + comment: null RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames: IgnoresArrays: description: ignores arrays data: [] valid: true + comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true + comment: null NoneOfThePropertiesMentioned: description: none of the properties mentioned data: {} valid: false + comment: null ProtoPresent: description: __proto__ present data: __proto__: foo valid: false + comment: null TostringPresent: description: toString present data: toString: length: 37 valid: false + comment: null ConstructorPresent: description: constructor present data: constructor: length: 37 valid: false + comment: null AllPresent: description: all present data: @@ -7313,295 +8846,366 @@ components: length: foo constructor: 37 valid: true + comment: null IntegerTypeMatchesIntegers: AnIntegerIsAnInteger: description: an integer is an integer data: 1 valid: true + comment: null AFloatWithZeroFractionalPartIsAnInteger: description: a float with zero fractional part is an integer data: 1.0 valid: true + comment: null AFloatIsNotAnInteger: description: a float is not an integer data: 1.1 valid: false + comment: null AStringIsNotAnInteger: description: a string is not an integer data: foo valid: false + comment: null AStringIsStillNotAnIntegerEvenIfItLooksLikeOne: description: a string is still not an integer, even if it looks like one data: '1' valid: false + comment: null AnObjectIsNotAnInteger: description: an object is not an integer data: {} valid: false + comment: null AnArrayIsNotAnInteger: description: an array is not an integer data: [] valid: false + comment: null ABooleanIsNotAnInteger: description: a boolean is not an integer data: true valid: false + comment: null NullIsNotAnInteger: description: null is not an integer data: null valid: false + comment: null NumberTypeMatchesNumbers: AnIntegerIsANumber: description: an integer is a number data: 1 valid: true + comment: null AFloatWithZeroFractionalPartIsANumberAndAnInteger: description: a float with zero fractional part is a number (and an integer) data: 1.0 valid: true + comment: null AFloatIsANumber: description: a float is a number data: 1.1 valid: true + comment: null AStringIsNotANumber: description: a string is not a number data: foo valid: false + comment: null AStringIsStillNotANumberEvenIfItLooksLikeOne: description: a string is still not a number, even if it looks like one data: '1' valid: false + comment: null AnObjectIsNotANumber: description: an object is not a number data: {} valid: false + comment: null AnArrayIsNotANumber: description: an array is not a number data: [] valid: false + comment: null ABooleanIsNotANumber: description: a boolean is not a number data: true valid: false + comment: null NullIsNotANumber: description: null is not a number data: null valid: false + comment: null StringTypeMatchesStrings: 1IsNotAString: description: 1 is not a string data: 1 valid: false + comment: null AFloatIsNotAString: description: a float is not a string data: 1.1 valid: false + comment: null AStringIsAString: description: a string is a string data: foo valid: true + comment: null AStringIsStillAStringEvenIfItLooksLikeANumber: description: a string is still a string, even if it looks like a number data: '1' valid: true + comment: null AnEmptyStringIsStillAString: description: an empty string is still a string data: '' valid: true + comment: null AnObjectIsNotAString: description: an object is not a string data: {} valid: false + comment: null AnArrayIsNotAString: description: an array is not a string data: [] valid: false + comment: null ABooleanIsNotAString: description: a boolean is not a string data: true valid: false + comment: null NullIsNotAString: description: null is not a string data: null valid: false + comment: null ObjectTypeMatchesObjects: AnIntegerIsNotAnObject: description: an integer is not an object data: 1 valid: false + comment: null AFloatIsNotAnObject: description: a float is not an object data: 1.1 valid: false + comment: null AStringIsNotAnObject: description: a string is not an object data: foo valid: false + comment: null AnObjectIsAnObject: description: an object is an object data: {} valid: true + comment: null AnArrayIsNotAnObject: description: an array is not an object data: [] valid: false + comment: null ABooleanIsNotAnObject: description: a boolean is not an object data: true valid: false + comment: null NullIsNotAnObject: description: null is not an object data: null valid: false + comment: null ArrayTypeMatchesArrays: AnIntegerIsNotAnArray: description: an integer is not an array data: 1 valid: false + comment: null AFloatIsNotAnArray: description: a float is not an array data: 1.1 valid: false + comment: null AStringIsNotAnArray: description: a string is not an array data: foo valid: false + comment: null AnObjectIsNotAnArray: description: an object is not an array data: {} valid: false + comment: null AnArrayIsAnArray: description: an array is an array data: [] valid: true + comment: null ABooleanIsNotAnArray: description: a boolean is not an array data: true valid: false + comment: null NullIsNotAnArray: description: null is not an array data: null valid: false + comment: null BooleanTypeMatchesBooleans: AnIntegerIsNotABoolean: description: an integer is not a boolean data: 1 valid: false + comment: null ZeroIsNotABoolean: description: zero is not a boolean data: 0 valid: false + comment: null AFloatIsNotABoolean: description: a float is not a boolean data: 1.1 valid: false + comment: null AStringIsNotABoolean: description: a string is not a boolean data: foo valid: false + comment: null AnEmptyStringIsNotABoolean: description: an empty string is not a boolean data: '' valid: false + comment: null AnObjectIsNotABoolean: description: an object is not a boolean data: {} valid: false + comment: null AnArrayIsNotABoolean: description: an array is not a boolean data: [] valid: false + comment: null TrueIsABoolean: description: true is a boolean data: true valid: true + comment: null FalseIsABoolean: description: false is a boolean data: false valid: true + comment: null NullIsNotABoolean: description: null is not a boolean data: null valid: false + comment: null NullTypeMatchesOnlyTheNullObject: AnIntegerIsNotNull: description: an integer is not null data: 1 valid: false + comment: null AFloatIsNotNull: description: a float is not null data: 1.1 valid: false + comment: null ZeroIsNotNull: description: zero is not null data: 0 valid: false + comment: null AStringIsNotNull: description: a string is not null data: foo valid: false + comment: null AnEmptyStringIsNotNull: description: an empty string is not null data: '' valid: false + comment: null AnObjectIsNotNull: description: an object is not null data: {} valid: false + comment: null AnArrayIsNotNull: description: an array is not null data: [] valid: false + comment: null TrueIsNotNull: description: true is not null data: true valid: false + comment: null FalseIsNotNull: description: false is not null data: false valid: false + comment: null NullIsNull: description: null is null data: null valid: true + comment: null MultipleTypesCanBeSpecifiedInAnArray: AnIntegerIsValid: description: an integer is valid data: 1 valid: true + comment: null AStringIsValid: description: a string is valid data: foo valid: true + comment: null AFloatIsInvalid: description: a float is invalid data: 1.1 valid: false + comment: null AnObjectIsInvalid: description: an object is invalid data: {} valid: false + comment: null AnArrayIsInvalid: description: an array is invalid data: [] valid: false + comment: null ABooleanIsInvalid: description: a boolean is invalid data: true valid: false + comment: null NullIsInvalid: description: null is invalid data: null valid: false + comment: null TypeAsArrayWithOneItem: StringIsValid: description: string is valid data: foo valid: true + comment: null NumberIsInvalid: description: number is invalid data: 123 valid: false + comment: null TypeArrayOrObject: ArrayIsValid: description: array is valid @@ -7610,23 +9214,28 @@ components: - 2 - 3 valid: true + comment: null ObjectIsValid: description: object is valid data: foo: 123 valid: true + comment: null NumberIsInvalid: description: number is invalid data: 123 valid: false + comment: null StringIsInvalid: description: string is invalid data: foo valid: false + comment: null NullIsInvalid: description: null is invalid data: null valid: false + comment: null TypeArrayObjectOrNull: ArrayIsValid: description: array is valid @@ -7635,23 +9244,494 @@ components: - 2 - 3 valid: true + comment: null ObjectIsValid: description: object is valid data: foo: 123 valid: true + comment: null NullIsValid: description: null is valid data: null valid: true + comment: null NumberIsInvalid: description: number is invalid data: 123 valid: false + comment: null StringIsInvalid: description: string is invalid data: foo valid: false + comment: null + UnevaluateditemsTrue: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: [] + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + valid: true + comment: null + UnevaluateditemsFalse: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: [] + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + valid: false + comment: null + UnevaluateditemsAsSchema: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: [] + valid: true + comment: null + WithValidUnevaluatedItems: + description: with valid unevaluated items + data: + - foo + valid: true + comment: null + WithInvalidUnevaluatedItems: + description: with invalid unevaluated items + data: + - 42 + valid: false + comment: null + UnevaluateditemsWithUniformItems: + UnevaluateditemsDoesnTApply: + description: unevaluatedItems doesn't apply + data: + - foo + - bar + valid: true + comment: null + UnevaluateditemsWithTuple: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: + - foo + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + - bar + valid: false + comment: null + UnevaluateditemsWithItemsAndPrefixitems: + UnevaluateditemsDoesnTApply: + description: unevaluatedItems doesn't apply + data: + - foo + - 42 + valid: true + comment: null + UnevaluateditemsWithItems: + ValidUnderItems: + description: valid under items + data: + - 5 + - 6 + - 7 + - 8 + valid: true + comment: no elements are considered by unevaluatedItems + InvalidUnderItems: + description: invalid under items + data: + - foo + - bar + - baz + valid: false + comment: null + UnevaluateditemsWithNestedTuple: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: + - foo + - 42 + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + - 42 + - true + valid: false + comment: null + UnevaluateditemsWithNestedItems: + WithOnlyValidAdditionalItems: + description: with only (valid) additional items + data: + - true + - false + valid: true + comment: null + WithNoAdditionalItems: + description: with no additional items + data: + - 'yes' + - 'no' + valid: true + comment: null + WithInvalidAdditionalItem: + description: with invalid additional item + data: + - 'yes' + - false + valid: false + comment: null + UnevaluateditemsWithNestedPrefixitemsAndItems: + WithNoAdditionalItems: + description: with no additional items + data: + - foo + valid: true + comment: null + WithAdditionalItems: + description: with additional items + data: + - foo + - 42 + - true + valid: true + comment: null + UnevaluateditemsWithNestedUnevaluateditems: + WithNoAdditionalItems: + description: with no additional items + data: + - foo + valid: true + comment: null + WithAdditionalItems: + description: with additional items + data: + - foo + - 42 + - true + valid: true + comment: null + UnevaluateditemsWithAnyof: + WhenOneSchemaMatchesAndHasNoUnevaluatedItems: + description: when one schema matches and has no unevaluated items + data: + - foo + - bar + valid: true + comment: null + WhenOneSchemaMatchesAndHasUnevaluatedItems: + description: when one schema matches and has unevaluated items + data: + - foo + - bar + - 42 + valid: false + comment: null + WhenTwoSchemasMatchAndHasNoUnevaluatedItems: + description: when two schemas match and has no unevaluated items + data: + - foo + - bar + - baz + valid: true + comment: null + WhenTwoSchemasMatchAndHasUnevaluatedItems: + description: when two schemas match and has unevaluated items + data: + - foo + - bar + - baz + - 42 + valid: false + comment: null + UnevaluateditemsWithOneof: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: + - foo + - bar + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + - bar + - 42 + valid: false + comment: null + UnevaluateditemsWithNot: + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + - bar + valid: false + comment: null + UnevaluateditemsWithIfThenElse: + WhenIfMatchesAndItHasNoUnevaluatedItems: + description: when if matches and it has no unevaluated items + data: + - foo + - bar + - then + valid: true + comment: null + WhenIfMatchesAndItHasUnevaluatedItems: + description: when if matches and it has unevaluated items + data: + - foo + - bar + - then + - else + valid: false + comment: null + WhenIfDoesnTMatchAndItHasNoUnevaluatedItems: + description: when if doesn't match and it has no unevaluated items + data: + - foo + - 42 + - 42 + - else + valid: true + comment: null + WhenIfDoesnTMatchAndItHasUnevaluatedItems: + description: when if doesn't match and it has unevaluated items + data: + - foo + - 42 + - 42 + - else + - 42 + valid: false + comment: null + UnevaluateditemsWithBooleanSchemas: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: [] + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + valid: false + comment: null + UnevaluateditemsWithRef: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: + - foo + - bar + valid: true + comment: null + WithUnevaluatedItems: + description: with unevaluated items + data: + - foo + - bar + - baz + valid: false + comment: null + UnevaluateditemsCanTSeeInsideCousins: + AlwaysFails: + description: always fails + data: + - 1 + valid: false + comment: null + ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems: + NoExtraItems: + description: no extra items + data: + foo: + - test + valid: true + comment: null + UncleKeywordEvaluationIsNotSignificant: + description: uncle keyword evaluation is not significant + data: + foo: + - test + - test + valid: false + comment: null + UnevaluateditemsDependsOnAdjacentContains: + SecondItemIsEvaluatedByContains: + description: second item is evaluated by contains + data: + - 1 + - foo + valid: true + comment: null + ContainsFailsSecondItemIsNotEvaluated: + description: contains fails, second item is not evaluated + data: + - 1 + - 2 + valid: false + comment: null + ContainsPassesSecondItemIsNotEvaluated: + description: contains passes, second item is not evaluated + data: + - 1 + - 2 + - foo + valid: false + comment: null + UnevaluateditemsDependsOnMultipleNestedContains: + 5NotEvaluatedPassesUnevaluateditems: + description: 5 not evaluated, passes unevaluatedItems + data: + - 2 + - 3 + - 4 + - 5 + - 6 + valid: true + comment: null + 7NotEvaluatedFailsUnevaluateditems: + description: 7 not evaluated, fails unevaluatedItems + data: + - 2 + - 3 + - 4 + - 7 + - 8 + valid: false + comment: null + UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship: + EmptyArrayIsValid: + description: empty array is valid + data: [] + valid: true + comment: null + OnlyASAreValid: + description: only a's are valid + data: + - a + - a + valid: true + comment: null + ASAndBSAreValid: + description: a's and b's are valid + data: + - a + - b + - a + - b + - a + valid: true + comment: null + ASBSAndCSAreValid: + description: a's, b's and c's are valid + data: + - c + - a + - c + - c + - b + - a + valid: true + comment: null + OnlyBSAreInvalid: + description: only b's are invalid + data: + - b + - b + valid: false + comment: null + OnlyCSAreInvalid: + description: only c's are invalid + data: + - c + - c + valid: false + comment: null + OnlyBSAndCSAreInvalid: + description: only b's and c's are invalid + data: + - c + - b + - c + - b + - c + valid: false + comment: null + OnlyASAndCSAreInvalid: + description: only a's and c's are invalid + data: + - c + - a + - c + - a + - c + valid: false + comment: null + NonArrayInstancesAreValid: + IgnoresBooleans: + description: ignores booleans + data: true + valid: true + comment: null + IgnoresIntegers: + description: ignores integers + data: 123 + valid: true + comment: null + IgnoresFloats: + description: ignores floats + data: 1.0 + valid: true + comment: null + IgnoresObjects: + description: ignores objects + data: {} + valid: true + comment: null + IgnoresStrings: + description: ignores strings + data: foo + valid: true + comment: null + IgnoresNull: + description: ignores null + data: null + valid: true + comment: null + UnevaluateditemsWithNullInstanceElements: + AllowsNullElements: + description: allows null elements + data: + - null + valid: true + comment: null + UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse: + ValidInCaseIfIsEvaluated: + description: valid in case if is evaluated + data: + - a + valid: true + comment: null + InvalidInCaseIfIsEvaluated: + description: invalid in case if is evaluated + data: + - b + valid: false + comment: null UniqueitemsValidation: UniqueArrayOfIntegersIsValid: description: unique array of integers is valid @@ -7659,12 +9739,14 @@ components: - 1 - 2 valid: true + comment: null NonUniqueArrayOfIntegersIsInvalid: description: non-unique array of integers is invalid data: - 1 - 1 valid: false + comment: null NonUniqueArrayOfMoreThanTwoIntegersIsInvalid: description: non-unique array of more than two integers is invalid data: @@ -7672,6 +9754,7 @@ components: - 2 - 1 valid: false + comment: null NumbersAreUniqueIfMathematicallyUnequal: description: numbers are unique if mathematically unequal data: @@ -7679,18 +9762,21 @@ components: - 1.0 - 1 valid: false + comment: null FalseIsNotEqualToZero: description: false is not equal to zero data: - 0 - false valid: true + comment: null TrueIsNotEqualToOne: description: true is not equal to one data: - 1 - true valid: true + comment: null UniqueArrayOfStringsIsValid: description: unique array of strings is valid data: @@ -7698,6 +9784,7 @@ components: - bar - baz valid: true + comment: null NonUniqueArrayOfStringsIsInvalid: description: non-unique array of strings is invalid data: @@ -7705,18 +9792,21 @@ components: - bar - foo valid: false + comment: null UniqueArrayOfObjectsIsValid: description: unique array of objects is valid data: - foo: bar - foo: baz valid: true + comment: null NonUniqueArrayOfObjectsIsInvalid: description: non-unique array of objects is invalid data: - foo: bar - foo: bar valid: false + comment: null PropertyOrderOfArrayOfObjectsIsIgnored: description: property order of array of objects is ignored data: @@ -7725,6 +9815,7 @@ components: - bar: foo foo: bar valid: false + comment: null UniqueArrayOfNestedObjectsIsValid: description: unique array of nested objects is valid data: @@ -7735,6 +9826,7 @@ components: bar: baz: false valid: true + comment: null NonUniqueArrayOfNestedObjectsIsInvalid: description: non-unique array of nested objects is invalid data: @@ -7745,18 +9837,21 @@ components: bar: baz: true valid: false + comment: null UniqueArrayOfArraysIsValid: description: unique array of arrays is valid data: - - foo - - bar valid: true + comment: null NonUniqueArrayOfArraysIsInvalid: description: non-unique array of arrays is invalid data: - - foo - - foo valid: false + comment: null NonUniqueArrayOfMoreThanTwoArraysIsInvalid: description: non-unique array of more than two arrays is invalid data: @@ -7764,18 +9859,21 @@ components: - - bar - - foo valid: false + comment: null 1AndTrueAreUnique: description: '[1] and [true] are unique' data: - - 1 - - true valid: true + comment: null 0AndFalseAreUnique: description: '[0] and [false] are unique' data: - - 0 - - false valid: true + comment: null Nested1AndTrueAreUnique: description: nested [1] and [true] are unique data: @@ -7784,6 +9882,7 @@ components: - - - true - foo valid: true + comment: null Nested0AndFalseAreUnique: description: nested [0] and [false] are unique data: @@ -7792,6 +9891,7 @@ components: - - - false - foo valid: true + comment: null UniqueHeterogeneousTypesAreValid: description: unique heterogeneous types are valid data: @@ -7802,6 +9902,7 @@ components: - 1 - '{}' valid: true + comment: null NonUniqueHeterogeneousTypesAreInvalid: description: non-unique heterogeneous types are invalid data: @@ -7812,6 +9913,7 @@ components: - {} - 1 valid: false + comment: null DifferentObjectsAreUnique: description: different objects are unique data: @@ -7820,6 +9922,7 @@ components: - a: 2 b: 1 valid: true + comment: null ObjectsAreNonUniqueDespiteKeyOrder: description: objects are non-unique despite key order data: @@ -7828,18 +9931,21 @@ components: - b: 2 a: 1 valid: false + comment: null AFalseAndA0AreUnique: description: '{"a": false} and {"a": 0} are unique' data: - a: false - a: 0 valid: true + comment: null ATrueAndA1AreUnique: description: '{"a": true} and {"a": 1} are unique' data: - a: true - a: 1 valid: true + comment: null UniqueitemsWithAnArrayOfItems: FalseTrueFromItemsArrayIsValid: description: '[false, true] from items array is valid' @@ -7847,24 +9953,28 @@ components: - false - true valid: true + comment: null TrueFalseFromItemsArrayIsValid: description: '[true, false] from items array is valid' data: - true - false valid: true + comment: null FalseFalseFromItemsArrayIsNotValid: description: '[false, false] from items array is not valid' data: - false - false valid: false + comment: null TrueTrueFromItemsArrayIsNotValid: description: '[true, true] from items array is not valid' data: - true - true valid: false + comment: null UniqueArrayExtendedFromFalseTrueIsValid: description: unique array extended from [false, true] is valid data: @@ -7873,6 +9983,7 @@ components: - foo - bar valid: true + comment: null UniqueArrayExtendedFromTrueFalseIsValid: description: unique array extended from [true, false] is valid data: @@ -7881,6 +9992,7 @@ components: - foo - bar valid: true + comment: null NonUniqueArrayExtendedFromFalseTrueIsNotValid: description: non-unique array extended from [false, true] is not valid data: @@ -7889,6 +10001,7 @@ components: - foo - foo valid: false + comment: null NonUniqueArrayExtendedFromTrueFalseIsNotValid: description: non-unique array extended from [true, false] is not valid data: @@ -7897,6 +10010,7 @@ components: - foo - foo valid: false + comment: null UniqueitemsFalseValidation: UniqueArrayOfIntegersIsValid: description: unique array of integers is valid @@ -7904,12 +10018,14 @@ components: - 1 - 2 valid: true + comment: null NonUniqueArrayOfIntegersIsValid: description: non-unique array of integers is valid data: - 1 - 1 valid: true + comment: null NumbersAreUniqueIfMathematicallyUnequal: description: numbers are unique if mathematically unequal data: @@ -7917,30 +10033,35 @@ components: - 1.0 - 1 valid: true + comment: null FalseIsNotEqualToZero: description: false is not equal to zero data: - 0 - false valid: true + comment: null TrueIsNotEqualToOne: description: true is not equal to one data: - 1 - true valid: true + comment: null UniqueArrayOfObjectsIsValid: description: unique array of objects is valid data: - foo: bar - foo: baz valid: true + comment: null NonUniqueArrayOfObjectsIsValid: description: non-unique array of objects is valid data: - foo: bar - foo: bar valid: true + comment: null UniqueArrayOfNestedObjectsIsValid: description: unique array of nested objects is valid data: @@ -7951,6 +10072,7 @@ components: bar: baz: false valid: true + comment: null NonUniqueArrayOfNestedObjectsIsValid: description: non-unique array of nested objects is valid data: @@ -7961,30 +10083,35 @@ components: bar: baz: true valid: true + comment: null UniqueArrayOfArraysIsValid: description: unique array of arrays is valid data: - - foo - - bar valid: true + comment: null NonUniqueArrayOfArraysIsValid: description: non-unique array of arrays is valid data: - - foo - - foo valid: true + comment: null 1AndTrueAreUnique: description: 1 and true are unique data: - 1 - true valid: true + comment: null 0AndFalseAreUnique: description: 0 and false are unique data: - 0 - false valid: true + comment: null UniqueHeterogeneousTypesAreValid: description: unique heterogeneous types are valid data: @@ -7994,6 +10121,7 @@ components: - null - 1 valid: true + comment: null NonUniqueHeterogeneousTypesAreValid: description: non-unique heterogeneous types are valid data: @@ -8004,6 +10132,7 @@ components: - {} - 1 valid: true + comment: null UniqueitemsFalseWithAnArrayOfItems: FalseTrueFromItemsArrayIsValid: description: '[false, true] from items array is valid' @@ -8011,24 +10140,28 @@ components: - false - true valid: true + comment: null TrueFalseFromItemsArrayIsValid: description: '[true, false] from items array is valid' data: - true - false valid: true + comment: null FalseFalseFromItemsArrayIsValid: description: '[false, false] from items array is valid' data: - false - false valid: true + comment: null TrueTrueFromItemsArrayIsValid: description: '[true, true] from items array is valid' data: - true - true valid: true + comment: null UniqueArrayExtendedFromFalseTrueIsValid: description: unique array extended from [false, true] is valid data: @@ -8037,6 +10170,7 @@ components: - foo - bar valid: true + comment: null UniqueArrayExtendedFromTrueFalseIsValid: description: unique array extended from [true, false] is valid data: @@ -8045,6 +10179,7 @@ components: - foo - bar valid: true + comment: null NonUniqueArrayExtendedFromFalseTrueIsValid: description: non-unique array extended from [false, true] is valid data: @@ -8053,6 +10188,7 @@ components: - foo - foo valid: true + comment: null NonUniqueArrayExtendedFromTrueFalseIsValid: description: non-unique array extended from [true, false] is valid data: @@ -8061,3 +10197,4 @@ components: - foo - foo valid: true + comment: null diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 02dd2475d1a..5cc51ed1e8b 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -33,6 +33,7 @@ class JsonSchemaTestCase: description: str data: typing.Union[str, int, float, bool, None, list, dict] valid: bool + comment: typing.Optional[str] = None JsonSchemaDict = typing.TypedDict( 'JsonSchema', @@ -334,6 +335,7 @@ class ExclusionReason: 'refRemote.json': (json_schema_test_draft,), 'required.json': (json_schema_test_draft,), 'type.json': (json_schema_test_draft,), + 'unevaluatedItems.json': (json_schema_test_draft,), 'uniqueItems.json': (json_schema_test_draft,), # 'unknownKeyword.json': (json_schema_test_draft,), } From 48dc3f9098012e4ba33e303cd84158e11a3d5850 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 27 Sep 2023 09:46:38 -0700 Subject: [PATCH 23/34] Excludes some of the unevaluatedItems tests begause of swagger parser bugs --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 793 +----------------- .../3_1/unit_test_spec/spec_writer.py | 14 + 2 files changed, 49 insertions(+), 758 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index f2a8f12cdef..9be3840224f 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4365,78 +4365,6 @@ paths: - path.post - contentType_json - type - /requestBody/postUnevaluateditemsTrueRequestBody: - post: - operationId: postUnevaluateditemsTrueRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsTrue' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsTrueResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsTrueResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsTrue' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsFalseRequestBody: - post: - operationId: postUnevaluateditemsFalseRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsFalse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsFalse' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsFalseResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsFalseResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsFalse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsFalse' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems /requestBody/postUnevaluateditemsAsSchemaRequestBody: post: operationId: postUnevaluateditemsAsSchemaRequestBody @@ -4458,391 +4386,31 @@ paths: - unevaluatedItems /responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes: post: - operationId: postUnevaluateditemsAsSchemaResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsAsSchema' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsAsSchema' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithUniformItemsRequestBody: - post: - operationId: postUnevaluateditemsWithUniformItemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithUniformItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithUniformItems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithUniformItemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithUniformItemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithUniformItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithUniformItems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithTupleRequestBody: - post: - operationId: postUnevaluateditemsWithTupleRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithTuple' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithTuple' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithTupleResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithTupleResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithTuple' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithTuple' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithItemsAndPrefixitemsRequestBody: - post: - operationId: postUnevaluateditemsWithItemsAndPrefixitemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithItemsAndPrefixitems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItemsAndPrefixitems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithItemsAndPrefixitemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithItemsAndPrefixitemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithItemsAndPrefixitems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItemsAndPrefixitems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithItemsRequestBody: - post: - operationId: postUnevaluateditemsWithItemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithItemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedTupleRequestBody: - post: - operationId: postUnevaluateditemsWithNestedTupleRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedItemsRequestBody: - post: - operationId: postUnevaluateditemsWithNestedItemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody: - post: - operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedUnevaluateditemsRequestBody: - post: - operationId: postUnevaluateditemsWithNestedUnevaluateditemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedUnevaluateditems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedUnevaluateditems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedUnevaluateditemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedUnevaluateditemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedUnevaluateditems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedUnevaluateditems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithAnyofRequestBody: - post: - operationId: postUnevaluateditemsWithAnyofRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithAnyof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithAnyof' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithAnyofResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithAnyofResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithAnyof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithAnyof' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithOneofRequestBody: - post: - operationId: postUnevaluateditemsWithOneofRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithOneof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithOneof' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithOneofResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithOneofResponseBodyForContentTypes + operationId: postUnevaluateditemsAsSchemaResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithOneof' + $ref: '#/components/schemas/UnevaluateditemsAsSchema' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithOneof' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsAsSchema' tags: - response.content.contentType.schema - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsWithNotRequestBody: + /requestBody/postUnevaluateditemsWithItemsRequestBody: post: - operationId: postUnevaluateditemsWithNotRequestBody + operationId: postUnevaluateditemsWithItemsRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithNot' + $ref: '#/components/schemas/UnevaluateditemsWithItems' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNot' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItems' required: true responses: '200': @@ -4852,33 +4420,33 @@ paths: - path.post - contentType_json - unevaluatedItems - /responseBody/postUnevaluateditemsWithNotResponseBodyForContentTypes: + /responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes: post: - operationId: postUnevaluateditemsWithNotResponseBodyForContentTypes + operationId: postUnevaluateditemsWithItemsResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithNot' + $ref: '#/components/schemas/UnevaluateditemsWithItems' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNot' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithItems' tags: - response.content.contentType.schema - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsWithIfThenElseRequestBody: + /requestBody/postUnevaluateditemsWithNestedTupleRequestBody: post: - operationId: postUnevaluateditemsWithIfThenElseRequestBody + operationId: postUnevaluateditemsWithNestedTupleRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithIfThenElse' + $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithIfThenElse' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' required: true responses: '200': @@ -4888,33 +4456,33 @@ paths: - path.post - contentType_json - unevaluatedItems - /responseBody/postUnevaluateditemsWithIfThenElseResponseBodyForContentTypes: + /responseBody/postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes: post: - operationId: postUnevaluateditemsWithIfThenElseResponseBodyForContentTypes + operationId: postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithIfThenElse' + $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithIfThenElse' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' tags: - response.content.contentType.schema - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsWithBooleanSchemasRequestBody: + /requestBody/postUnevaluateditemsWithNestedItemsRequestBody: post: - operationId: postUnevaluateditemsWithBooleanSchemasRequestBody + operationId: postUnevaluateditemsWithNestedItemsRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithBooleanSchemas' + $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithBooleanSchemas' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' required: true responses: '200': @@ -4924,33 +4492,33 @@ paths: - path.post - contentType_json - unevaluatedItems - /responseBody/postUnevaluateditemsWithBooleanSchemasResponseBodyForContentTypes: + /responseBody/postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes: post: - operationId: postUnevaluateditemsWithBooleanSchemasResponseBodyForContentTypes + operationId: postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithBooleanSchemas' + $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithBooleanSchemas' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' tags: - response.content.contentType.schema - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsWithRefRequestBody: + /requestBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody: post: - operationId: postUnevaluateditemsWithRefRequestBody + operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithRef' + $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithRef' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' required: true responses: '200': @@ -4960,18 +4528,18 @@ paths: - path.post - contentType_json - unevaluatedItems - /responseBody/postUnevaluateditemsWithRefResponseBodyForContentTypes: + /responseBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes: post: - operationId: postUnevaluateditemsWithRefResponseBodyForContentTypes + operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UnevaluateditemsWithRef' + $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithRef' + $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' tags: - response.content.contentType.schema - path.post @@ -6027,32 +5595,10 @@ components: - array - object - 'null' - UnevaluateditemsTrue: - $schema: https://json-schema.org/draft/2020-12/schema - unevaluatedItems: true - UnevaluateditemsFalse: - $schema: https://json-schema.org/draft/2020-12/schema - unevaluatedItems: false UnevaluateditemsAsSchema: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedItems: type: string - UnevaluateditemsWithUniformItems: - $schema: https://json-schema.org/draft/2020-12/schema - items: - type: string - unevaluatedItems: false - UnevaluateditemsWithTuple: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - type: string - unevaluatedItems: false - UnevaluateditemsWithItemsAndPrefixitems: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - type: string - items: true - unevaluatedItems: false UnevaluateditemsWithItems: $schema: https://json-schema.org/draft/2020-12/schema items: @@ -6083,84 +5629,6 @@ components: - type: string items: true unevaluatedItems: false - UnevaluateditemsWithNestedUnevaluateditems: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - prefixItems: - - type: string - - unevaluatedItems: true - unevaluatedItems: false - UnevaluateditemsWithAnyof: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - const: foo - anyOf: - - prefixItems: - - true - - const: bar - - prefixItems: - - true - - true - - const: baz - unevaluatedItems: false - UnevaluateditemsWithOneof: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - const: foo - oneOf: - - prefixItems: - - true - - const: bar - - prefixItems: - - true - - const: baz - unevaluatedItems: false - UnevaluateditemsWithNot: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - const: foo - not: - not: - prefixItems: - - true - - const: bar - unevaluatedItems: false - UnevaluateditemsWithIfThenElse: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - const: foo - if: - prefixItems: - - true - - const: bar - then: - prefixItems: - - true - - true - - const: then - else: - prefixItems: - - true - - true - - true - - const: else - unevaluatedItems: false - UnevaluateditemsWithBooleanSchemas: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - true - unevaluatedItems: false - UnevaluateditemsWithRef: - $schema: https://json-schema.org/draft/2020-12/schema - $ref: '#/$defs/bar' - prefixItems: - - type: string - unevaluatedItems: false - $defs: - bar: - prefixItems: - - true - - type: string UnevaluateditemsCanTSeeInsideCousins: $schema: https://json-schema.org/draft/2020-12/schema allOf: @@ -9266,30 +8734,6 @@ components: data: foo valid: false comment: null - UnevaluateditemsTrue: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: [] - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - valid: true - comment: null - UnevaluateditemsFalse: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: [] - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - valid: false - comment: null UnevaluateditemsAsSchema: WithNoUnevaluatedItems: description: with no unevaluated items @@ -9308,36 +8752,6 @@ components: - 42 valid: false comment: null - UnevaluateditemsWithUniformItems: - UnevaluateditemsDoesnTApply: - description: unevaluatedItems doesn't apply - data: - - foo - - bar - valid: true - comment: null - UnevaluateditemsWithTuple: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: - - foo - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - - bar - valid: false - comment: null - UnevaluateditemsWithItemsAndPrefixitems: - UnevaluateditemsDoesnTApply: - description: unevaluatedItems doesn't apply - data: - - foo - - 42 - valid: true - comment: null UnevaluateditemsWithItems: ValidUnderItems: description: valid under items @@ -9409,143 +8823,6 @@ components: - true valid: true comment: null - UnevaluateditemsWithNestedUnevaluateditems: - WithNoAdditionalItems: - description: with no additional items - data: - - foo - valid: true - comment: null - WithAdditionalItems: - description: with additional items - data: - - foo - - 42 - - true - valid: true - comment: null - UnevaluateditemsWithAnyof: - WhenOneSchemaMatchesAndHasNoUnevaluatedItems: - description: when one schema matches and has no unevaluated items - data: - - foo - - bar - valid: true - comment: null - WhenOneSchemaMatchesAndHasUnevaluatedItems: - description: when one schema matches and has unevaluated items - data: - - foo - - bar - - 42 - valid: false - comment: null - WhenTwoSchemasMatchAndHasNoUnevaluatedItems: - description: when two schemas match and has no unevaluated items - data: - - foo - - bar - - baz - valid: true - comment: null - WhenTwoSchemasMatchAndHasUnevaluatedItems: - description: when two schemas match and has unevaluated items - data: - - foo - - bar - - baz - - 42 - valid: false - comment: null - UnevaluateditemsWithOneof: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: - - foo - - bar - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - - bar - - 42 - valid: false - comment: null - UnevaluateditemsWithNot: - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - - bar - valid: false - comment: null - UnevaluateditemsWithIfThenElse: - WhenIfMatchesAndItHasNoUnevaluatedItems: - description: when if matches and it has no unevaluated items - data: - - foo - - bar - - then - valid: true - comment: null - WhenIfMatchesAndItHasUnevaluatedItems: - description: when if matches and it has unevaluated items - data: - - foo - - bar - - then - - else - valid: false - comment: null - WhenIfDoesnTMatchAndItHasNoUnevaluatedItems: - description: when if doesn't match and it has no unevaluated items - data: - - foo - - 42 - - 42 - - else - valid: true - comment: null - WhenIfDoesnTMatchAndItHasUnevaluatedItems: - description: when if doesn't match and it has unevaluated items - data: - - foo - - 42 - - 42 - - else - - 42 - valid: false - comment: null - UnevaluateditemsWithBooleanSchemas: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: [] - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - valid: false - comment: null - UnevaluateditemsWithRef: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: - - foo - - bar - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - - bar - - baz - valid: false - comment: null UnevaluateditemsCanTSeeInsideCousins: AlwaysFails: description: always fails diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 5cc51ed1e8b..d0cbbd2232c 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -285,6 +285,20 @@ class ExclusionReason: 'uniqueItems with an array of items and additionalItems=false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'uniqueItems=false with an array of items and additionalItems=false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, + (json_schema_test_draft, 'unevaluatedItems.json'): { + "unevaluatedItems true": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems false": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with nested unevaluatedItems": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with anyOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with oneOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with not": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with boolean schemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with $ref": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with items and prefixItems": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with if/then/else": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with tuple": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with uniform items": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + }, } FILEPATH_TO_EXCLUDE_REASON = { (json_schema_test_draft, 'boolean_schema.json'): ExclusionReason.bug_does_not_support_boolean_schemas_in_location, From dc66914679e661988fc67b2e83df695903e2cce5 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 27 Sep 2023 14:23:55 -0700 Subject: [PATCH 24/34] Adds unevaluatedItems tests --- .../python/.openapi-generator/FILES | 253 ++++++++ .../client/3_1_0_unit_test/python/README.md | 12 + .../docs/apis/tags/content_type_json_api.md | 8 + .../apis/tags/operation_request_body_api.md | 4 + .../python/docs/apis/tags/path_post_api.md | 8 + ...esponse_content_content_type_schema_api.md | 4 + .../docs/apis/tags/unevaluated_items_api.md | 21 + .../schema/unevaluateditems_as_schema.md | 12 + ...ems_depends_on_multiple_nested_contains.md | 39 ++ .../schema/unevaluateditems_with_items.md | 52 ++ ...luateditems_with_null_instance_elements.md | 12 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 118 ++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 24 + ...unevaluateditems_as_schema_request_body.py | 13 + ...n_multiple_nested_contains_request_body.py | 13 + ...nevaluateditems_with_items_request_body.py | 13 + ...ith_null_instance_elements_request_body.py | 13 + ..._schema_response_body_for_content_types.py | 13 + ...ontains_response_body_for_content_types.py | 13 + ...h_items_response_body_for_content_types.py | 13 + ...lements_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 16 + .../apis/tags/operation_request_body_api.py | 8 + .../unit_test_api/apis/tags/path_post_api.py | 16 + ...esponse_content_content_type_schema_api.py | 8 + .../apis/tags/unevaluated_items_api.py | 32 + .../schema/unevaluateditems_as_schema.py | 27 + ...ems_depends_on_multiple_nested_contains.py | 76 +++ .../schema/unevaluateditems_with_items.py | 76 +++ ...luateditems_with_null_instance_elements.py | 27 + .../components/schemas/__init__.py | 4 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++ .../post/request_body/__init__.py | 20 + .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 + .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../schema/test_unevaluateditems_as_schema.py | 52 ++ ...ems_depends_on_multiple_nested_contains.py | 52 ++ .../test_unevaluateditems_with_items.py | 49 ++ ...luateditems_with_null_instance_elements.py | 34 + .../__init__.py | 0 .../test_post.py | 113 ++++ .../__init__.py | 0 .../test_post.py | 91 +++ .../__init__.py | 0 .../test_post.py | 88 +++ .../__init__.py | 0 .../test_post.py | 67 ++ .../__init__.py | 0 .../test_post.py | 124 ++++ .../__init__.py | 0 .../test_post.py | 102 +++ .../__init__.py | 0 .../test_post.py | 99 +++ .../__init__.py | 0 .../test_post.py | 68 ++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 608 ------------------ .../3_1/unit_test_spec/spec_writer.py | 9 + 137 files changed, 4184 insertions(+), 608 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_items_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_as_schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_items.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_null_instance_elements.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_as_schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_depends_on_multiple_nested_contains.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_items.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_null_instance_elements.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_as_schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_items.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_null_instance_elements.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 2b31f52a90c..472cf96d4c0 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -37,6 +37,7 @@ docs/apis/tags/ref_api.md docs/apis/tags/required_api.md docs/apis/tags/response_content_content_type_schema_api.md docs/apis/tags/type_api.md +docs/apis/tags/unevaluated_items_api.md docs/apis/tags/unique_items_api.md docs/components/schema/_not.md docs/components/schema/a_schema_given_for_prefixitems.md @@ -154,6 +155,10 @@ docs/components/schema/time_format.md docs/components/schema/type_array_object_or_null.md docs/components/schema/type_array_or_object.md docs/components/schema/type_as_array_with_one_item.md +docs/components/schema/unevaluateditems_as_schema.md +docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md +docs/components/schema/unevaluateditems_with_items.md +docs/components/schema/unevaluateditems_with_null_instance_elements.md docs/components/schema/uniqueitems_false_validation.md docs/components/schema/uniqueitems_false_with_an_array_of_items.md docs/components/schema/uniqueitems_validation.md @@ -394,6 +399,14 @@ docs/paths/request_body_post_type_array_or_object_request_body/post.md docs/paths/request_body_post_type_array_or_object_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md docs/paths/request_body_post_type_as_array_with_one_item_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md +docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md +docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md +docs/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md +docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md docs/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md @@ -642,6 +655,14 @@ docs/paths/response_body_post_type_array_or_object_response_body_for_content_typ docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md @@ -786,6 +807,10 @@ src/unit_test_api/apis/paths/request_body_post_time_format_request_body.py src/unit_test_api/apis/paths/request_body_post_type_array_object_or_null_request_body.py src/unit_test_api/apis/paths/request_body_post_type_array_or_object_request_body.py src/unit_test_api/apis/paths/request_body_post_type_as_array_with_one_item_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body.py src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py @@ -910,6 +935,10 @@ src/unit_test_api/apis/paths/response_body_post_time_format_response_body_for_co src/unit_test_api/apis/paths/response_body_post_type_array_object_or_null_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_type_array_or_object_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py @@ -955,6 +984,7 @@ src/unit_test_api/apis/tags/ref_api.py src/unit_test_api/apis/tags/required_api.py src/unit_test_api/apis/tags/response_content_content_type_schema_api.py src/unit_test_api/apis/tags/type_api.py +src/unit_test_api/apis/tags/unevaluated_items_api.py src/unit_test_api/apis/tags/unique_items_api.py src/unit_test_api/components/__init__.py src/unit_test_api/components/schema/__init__.py @@ -1074,6 +1104,10 @@ src/unit_test_api/components/schema/time_format.py src/unit_test_api/components/schema/type_array_object_or_null.py src/unit_test_api/components/schema/type_array_or_object.py src/unit_test_api/components/schema/type_as_array_with_one_item.py +src/unit_test_api/components/schema/unevaluateditems_as_schema.py +src/unit_test_api/components/schema/unevaluateditems_depends_on_multiple_nested_contains.py +src/unit_test_api/components/schema/unevaluateditems_with_items.py +src/unit_test_api/components/schema/unevaluateditems_with_null_instance_elements.py src/unit_test_api/components/schema/uniqueitems_false_validation.py src/unit_test_api/components/schema/uniqueitems_false_with_an_array_of_items.py src/unit_test_api/components/schema/uniqueitems_validation.py @@ -2132,6 +2166,42 @@ src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_bo src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/__init__.py src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -3132,6 +3202,38 @@ src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_ src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -3219,7 +3321,142 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py +test/components/schema/test__not.py +test/components/schema/test_a_schema_given_for_prefixitems.py +test/components/schema/test_additional_items_are_allowed_by_default.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_does_not_look_in_applicators.py +test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py +test/components/schema/test_additionalproperties_with_schema.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py +test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_contains_keyword_validation.py +test/components/schema/test_contains_with_null_instance_elements.py +test/components/schema/test_date_format.py +test/components/schema/test_date_time_format.py +test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py +test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py +test/components/schema/test_dependent_schemas_single_dependency.py +test/components/schema/test_duration_format.py +test/components/schema/test_email_format.py +test/components/schema/test_empty_dependents.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_float_division_inf.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_idn_email_format.py +test/components/schema/test_idn_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_iri_format.py +test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_contains.py +test/components/schema/test_items_does_not_look_in_applicators_valid_case.py +test/components/schema/test_items_with_null_instance_elements.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maxcontains_without_contains_is_ignored.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_mincontains_without_contains_is_ignored.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py +test/components/schema/test_multiple_dependents_required.py +test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py +test/components/schema/test_multiple_types_can_be_specified_in_an_array.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_non_ascii_pattern_with_additionalproperties.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py +test/components/schema/test_patternproperties_with_null_valued_instance_properties.py +test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_prefixitems_with_null_instance_elements.py +test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py +test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_properties_with_null_valued_instance_properties.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py test/components/schema/test_propertynames_validation.py +test/components/schema/test_regex_format.py +test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py +test/components/schema/test_relative_json_pointer_format.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py +test/components/schema/test_single_dependency.py +test/components/schema/test_small_multiple_of_large_integer.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_time_format.py +test/components/schema/test_type_array_object_or_null.py +test/components/schema/test_type_array_or_object.py +test/components/schema/test_type_as_array_with_one_item.py +test/components/schema/test_unevaluateditems_as_schema.py +test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py +test/components/schema/test_unevaluateditems_with_items.py +test/components/schema/test_unevaluateditems_with_null_instance_elements.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_false_with_an_array_of_items.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uniqueitems_with_an_array_of_items.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py +test/components/schema/test_uuid_format.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3700,6 +3937,14 @@ test/test_paths/test_request_body_post_type_array_or_object_request_body/__init_ test/test_paths/test_request_body_post_type_array_or_object_request_body/test_post.py test/test_paths/test_request_body_post_type_as_array_with_one_item_request_body/__init__.py test/test_paths/test_request_body_post_type_as_array_with_one_item_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/test_post.py test/test_paths/test_request_body_post_uniqueitems_false_validation_request_body/__init__.py test/test_paths/test_request_body_post_uniqueitems_false_validation_request_body/test_post.py test/test_paths/test_request_body_post_uniqueitems_false_with_an_array_of_items_request_body/__init__.py @@ -3948,6 +4193,14 @@ test/test_paths/test_response_body_post_type_array_or_object_response_body_for_c test/test_paths/test_response_body_post_type_array_or_object_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_type_as_array_with_one_item_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_type_as_array_with_one_item_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_uniqueitems_false_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_uniqueitems_false_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 8aedabef067..19595ce3e8e 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -286,6 +286,10 @@ HTTP request | Method | Description /requestBody/postTypeArrayObjectOrNullRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_type_array_object_or_null_request_body](docs/paths/request_body_post_type_array_object_or_null_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_type_array_object_or_null_request_body](docs/paths/request_body_post_type_array_object_or_null_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_type_array_object_or_null_request_body](docs/paths/request_body_post_type_array_object_or_null_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_type_array_object_or_null_request_body](docs/paths/request_body_post_type_array_object_or_null_request_body/post.md) | /requestBody/postTypeArrayOrObjectRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_type_array_or_object_request_body](docs/paths/request_body_post_type_array_or_object_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_type_array_or_object_request_body](docs/paths/request_body_post_type_array_or_object_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_type_array_or_object_request_body](docs/paths/request_body_post_type_array_or_object_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_type_array_or_object_request_body](docs/paths/request_body_post_type_array_or_object_request_body/post.md) | /requestBody/postTypeAsArrayWithOneItemRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_type_as_array_with_one_item_request_body](docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_type_as_array_with_one_item_request_body](docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_type_as_array_with_one_item_request_body](docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_type_as_array_with_one_item_request_body](docs/paths/request_body_post_type_as_array_with_one_item_request_body/post.md) | +/requestBody/postUnevaluateditemsAsSchemaRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_as_schema_request_body](docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_as_schema_request_body](docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_as_schema_request_body](docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_as_schema_request_body](docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) | +/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | +/requestBody/postUnevaluateditemsWithItemsRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | +/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | /requestBody/postUniqueitemsFalseValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | /requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | /requestBody/postUniqueitemsValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) | @@ -410,6 +414,10 @@ HTTP request | Method | Description /responseBody/postTypeArrayObjectOrNullResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_type_array_object_or_null_response_body_for_content_types](docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_type_array_object_or_null_response_body_for_content_types](docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_type_array_object_or_null_response_body_for_content_types](docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_type_array_object_or_null_response_body_for_content_types](docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md) | /responseBody/postTypeArrayOrObjectResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_type_array_or_object_response_body_for_content_types](docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_type_array_or_object_response_body_for_content_types](docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_type_array_or_object_response_body_for_content_types](docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_type_array_or_object_response_body_for_content_types](docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) | /responseBody/postTypeAsArrayWithOneItemResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_type_as_array_with_one_item_response_body_for_content_types](docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_type_as_array_with_one_item_response_body_for_content_types](docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_type_as_array_with_one_item_response_body_for_content_types](docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_type_as_array_with_one_item_response_body_for_content_types](docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) | +/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_as_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_as_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_as_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_as_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) | +/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | +/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | +/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | /responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | /responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) | /responseBody/postUniqueitemsValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) | @@ -539,6 +547,10 @@ Class | Description [TypeArrayObjectOrNull](docs/components/schema/type_array_object_or_null.md) | [TypeArrayOrObject](docs/components/schema/type_array_or_object.md) | [TypeAsArrayWithOneItem](docs/components/schema/type_as_array_with_one_item.md) | +[UnevaluateditemsAsSchema](docs/components/schema/unevaluateditems_as_schema.md) | +[UnevaluateditemsDependsOnMultipleNestedContains](docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | +[UnevaluateditemsWithItems](docs/components/schema/unevaluateditems_with_items.md) | +[UnevaluateditemsWithNullInstanceElements](docs/components/schema/unevaluateditems_with_null_instance_elements.md) | [UniqueitemsFalseValidation](docs/components/schema/uniqueitems_false_validation.md) | [UniqueitemsFalseWithAnArrayOfItems](docs/components/schema/uniqueitems_false_with_an_array_of_items.md) | [UniqueitemsValidation](docs/components/schema/uniqueitems_validation.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 924af032459..2b606770de1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -241,6 +241,14 @@ Method | Description [**post_type_array_or_object_response_body_for_content_types**](../../paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) | [**post_type_as_array_with_one_item_request_body**](../../paths/request_body_post_type_as_array_with_one_item_request_body/post.md) | [**post_type_as_array_with_one_item_response_body_for_content_types**](../../paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) | +[**post_unevaluateditems_as_schema_request_body**](../../paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) | +[**post_unevaluateditems_as_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_request_body**](../../paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_items_request_body**](../../paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | +[**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | +[**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_uniqueitems_false_validation_request_body**](../../paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | [**post_uniqueitems_false_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | [**post_uniqueitems_false_with_an_array_of_items_request_body**](../../paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index 36226524d72..d99530083d1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -125,6 +125,10 @@ Method | Description [**post_type_array_object_or_null_request_body**](../../paths/request_body_post_type_array_object_or_null_request_body/post.md) | [**post_type_array_or_object_request_body**](../../paths/request_body_post_type_array_or_object_request_body/post.md) | [**post_type_as_array_with_one_item_request_body**](../../paths/request_body_post_type_as_array_with_one_item_request_body/post.md) | +[**post_unevaluateditems_as_schema_request_body**](../../paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_request_body**](../../paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | +[**post_unevaluateditems_with_items_request_body**](../../paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | +[**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | [**post_uniqueitems_false_validation_request_body**](../../paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | [**post_uniqueitems_false_with_an_array_of_items_request_body**](../../paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | [**post_uniqueitems_validation_request_body**](../../paths/request_body_post_uniqueitems_validation_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index a89c2c2ca47..f2ec1e96624 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -241,6 +241,14 @@ Method | Description [**post_type_array_or_object_response_body_for_content_types**](../../paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) | [**post_type_as_array_with_one_item_request_body**](../../paths/request_body_post_type_as_array_with_one_item_request_body/post.md) | [**post_type_as_array_with_one_item_response_body_for_content_types**](../../paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) | +[**post_unevaluateditems_as_schema_request_body**](../../paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) | +[**post_unevaluateditems_as_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_request_body**](../../paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_items_request_body**](../../paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | +[**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | +[**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_uniqueitems_false_validation_request_body**](../../paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | [**post_uniqueitems_false_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | [**post_uniqueitems_false_with_an_array_of_items_request_body**](../../paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index e5f6a029004..87e0ebbcd16 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -125,6 +125,10 @@ Method | Description [**post_type_array_object_or_null_response_body_for_content_types**](../../paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post.md) | [**post_type_array_or_object_response_body_for_content_types**](../../paths/response_body_post_type_array_or_object_response_body_for_content_types/post.md) | [**post_type_as_array_with_one_item_response_body_for_content_types**](../../paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post.md) | +[**post_unevaluateditems_as_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | [**post_uniqueitems_false_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | [**post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) | [**post_uniqueitems_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_items_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_items_api.md new file mode 100644 index 00000000000..7442b21b474 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_items_api.md @@ -0,0 +1,21 @@ + +unit_test_api.apis.tags.unevaluated_items_api +# UnevaluatedItemsApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_unevaluateditems_as_schema_request_body**](../../paths/request_body_post_unevaluateditems_as_schema_request_body/post.md) | +[**post_unevaluateditems_as_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_request_body**](../../paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | +[**post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_items_request_body**](../../paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | +[**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | +[**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | +[**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_as_schema.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_as_schema.md new file mode 100644 index 00000000000..e3f730178b7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_as_schema.md @@ -0,0 +1,12 @@ +# UnevaluateditemsAsSchema +unit_test_api.components.schema.unevaluateditems_as_schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md new file mode 100644 index 00000000000..fe0b729e67b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md @@ -0,0 +1,39 @@ +# UnevaluateditemsDependsOnMultipleNestedContains +unit_test_api.components.schema.unevaluateditems_depends_on_multiple_nested_contains +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## allOf +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_0](#_0) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[_1](#_1) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +# _0 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +# _1 +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_items.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_items.md new file mode 100644 index 00000000000..f6f9281bc8d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_items.md @@ -0,0 +1,52 @@ +# UnevaluateditemsWithItems +unit_test_api.components.schema.unevaluateditems_with_items +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[UnevaluateditemsWithItemsTupleInput](#unevaluateditemswithitemstupleinput), [UnevaluateditemsWithItemsTuple](#unevaluateditemswithitemstuple) | [UnevaluateditemsWithItemsTuple](#unevaluateditemswithitemstuple) | + +## UnevaluateditemsWithItemsTupleInput +``` +type: typing.Union[ + typing.List[ + typing.Union[ + int, + float + ], + ], + typing.Tuple[ + typing.Union[ + int, + float + ], + ... + ] +] +``` +List/Tuple Item Type | Description | Notes +-------------------- | ------------- | ------------- +float, int | | + +## UnevaluateditemsWithItemsTuple +``` +base class: typing.Tuple[ + typing.Union[int, float], + ... +] +``` +### __new__ method +Argument | Type +-------- | ------ +arg | [UnevaluateditemsWithItemsTupleInput](#unevaluateditemswithitemstupleinput), [UnevaluateditemsWithItemsTuple](#unevaluateditemswithitemstuple) +configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +__getitem__ | int | float, int | This method is used under the hood when instance[0] is called + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_null_instance_elements.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_null_instance_elements.md new file mode 100644 index 00000000000..3e905088328 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluateditems_with_null_instance_elements.md @@ -0,0 +1,12 @@ +# UnevaluateditemsWithNullInstanceElements +unit_test_api.components.schema.unevaluateditems_with_null_instance_elements +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md new file mode 100644 index 00000000000..4d0c1b88264 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_as_schema_request_body | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_as_schema_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluateditems_as_schema_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_as_schema_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluateditemsAsSchemaRequestBody | This api is only for path=/requestBody/postUnevaluateditemsAsSchemaRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluateditemsAsSchemaRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_as_schema.UnevaluateditemsAsSchema**](../../components/schema/unevaluateditems_as_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluateditems_as_schema.UnevaluateditemsAsSchema.validate(None) + try: + api_response = api_instance.post_unevaluateditems_as_schema_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_as_schema_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a3c96f169ca --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_as_schema.UnevaluateditemsAsSchema**](../../../../../../components/schema/unevaluateditems_as_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md new file mode 100644 index 00000000000..831fa03fa82 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_depends_on_multiple_nested_contains_request_body | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_depends_on_multiple_nested_contains_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluateditems_depends_on_multiple_nested_contains_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_depends_on_multiple_nested_contains_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody | This api is only for path=/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains**](../../components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains.validate(None) + try: + api_response = api_instance.post_unevaluateditems_depends_on_multiple_nested_contains_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_depends_on_multiple_nested_contains_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..d13ad1defdf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains**](../../../../../../components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md new file mode 100644 index 00000000000..14ed71bc8e4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md @@ -0,0 +1,118 @@ +unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_with_items_request_body | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_with_items_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluateditems_with_items_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_with_items_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluateditemsWithItemsRequestBody | This api is only for path=/requestBody/postUnevaluateditemsWithItemsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluateditemsWithItemsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_items.UnevaluateditemsWithItems**](../../components/schema/unevaluateditems_with_items.md) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluateditems_with_items.UnevaluateditemsWithItems.validate([ + None + ]) + try: + api_response = api_instance.post_unevaluateditems_with_items_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_with_items_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..a4a1f77078e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_items.UnevaluateditemsWithItems**](../../../../../../components/schema/unevaluateditems_with_items.md) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md new file mode 100644 index 00000000000..2b9f3aeff68 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_with_null_instance_elements_request_body | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_with_null_instance_elements_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluateditems_with_null_instance_elements_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_with_null_instance_elements_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody | This api is only for path=/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements**](../../components/schema/unevaluateditems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements.validate(None) + try: + api_response = api_instance.post_unevaluateditems_with_null_instance_elements_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_with_null_instance_elements_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..202a0e93ae0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements**](../../../../../../components/schema/unevaluateditems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md new file mode 100644 index 00000000000..08162cd8bba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_as_schema_response_body_for_content_types | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_as_schema_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_as_schema_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluateditems_as_schema_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluateditemsAsSchemaResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_as_schema.UnevaluateditemsAsSchema**](../../components/schema/unevaluateditems_as_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluateditems_as_schema_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_as_schema_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..8699cadc4d4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_as_schema.UnevaluateditemsAsSchema**](../../../../../../../../components/schema/unevaluateditems_as_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md new file mode 100644 index 00000000000..1c5628861b3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains**](../../components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..afab4ee0e28 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains**](../../../../../../../../components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md new file mode 100644 index 00000000000..d35f9ee413b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_with_items_response_body_for_content_types | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_with_items_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_with_items_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluateditems_with_items_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_items.UnevaluateditemsWithItems**](../../components/schema/unevaluateditems_with_items.md) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluateditems_with_items_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_with_items_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..524d0b13f35 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_items.UnevaluateditemsWithItems**](../../../../../../../../components/schema/unevaluateditems_with_items.md) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md new file mode 100644 index 00000000000..d6d1f846114 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluateditems_with_null_instance_elements_response_body_for_content_types | [UnevaluatedItemsApi](../../apis/tags/unevaluated_items_api.md) | This api is only for tag=unevaluatedItems | +| post_unevaluateditems_with_null_instance_elements_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluateditems_with_null_instance_elements_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluateditems_with_null_instance_elements_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements**](../../components/schema/unevaluateditems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import unevaluated_items_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = unevaluated_items_api.UnevaluatedItemsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluateditems_with_null_instance_elements_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling UnevaluatedItemsApi->post_unevaluateditems_with_null_instance_elements_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to UnevaluatedItemsApi API]](../../apis/tags/unevaluated_items_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..96fd6388785 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements**](../../../../../../../../components/schema/unevaluateditems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 9bd9204a367..9cce35e0d97 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -117,6 +117,10 @@ from unit_test_api.apis.paths.request_body_post_type_array_object_or_null_request_body import RequestBodyPostTypeArrayObjectOrNullRequestBody from unit_test_api.apis.paths.request_body_post_type_array_or_object_request_body import RequestBodyPostTypeArrayOrObjectRequestBody from unit_test_api.apis.paths.request_body_post_type_as_array_with_one_item_request_body import RequestBodyPostTypeAsArrayWithOneItemRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluateditems_as_schema_request_body import RequestBodyPostUnevaluateditemsAsSchemaRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body import RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluateditems_with_items_request_body import RequestBodyPostUnevaluateditemsWithItemsRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body import RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody from unit_test_api.apis.paths.request_body_post_uniqueitems_false_validation_request_body import RequestBodyPostUniqueitemsFalseValidationRequestBody from unit_test_api.apis.paths.request_body_post_uniqueitems_false_with_an_array_of_items_request_body import RequestBodyPostUniqueitemsFalseWithAnArrayOfItemsRequestBody from unit_test_api.apis.paths.request_body_post_uniqueitems_validation_request_body import RequestBodyPostUniqueitemsValidationRequestBody @@ -241,6 +245,10 @@ from unit_test_api.apis.paths.response_body_post_type_array_object_or_null_response_body_for_content_types import ResponseBodyPostTypeArrayObjectOrNullResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_type_array_or_object_response_body_for_content_types import ResponseBodyPostTypeArrayOrObjectResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_type_as_array_with_one_item_response_body_for_content_types import ResponseBodyPostTypeAsArrayWithOneItemResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types import ResponseBodyPostUnevaluateditemsAsSchemaResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types import ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types import ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types import ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types import ResponseBodyPostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uniqueitems_validation_response_body_for_content_types import ResponseBodyPostUniqueitemsValidationResponseBodyForContentTypes @@ -369,6 +377,10 @@ "/requestBody/postTypeArrayObjectOrNullRequestBody": typing.Type[RequestBodyPostTypeArrayObjectOrNullRequestBody], "/requestBody/postTypeArrayOrObjectRequestBody": typing.Type[RequestBodyPostTypeArrayOrObjectRequestBody], "/requestBody/postTypeAsArrayWithOneItemRequestBody": typing.Type[RequestBodyPostTypeAsArrayWithOneItemRequestBody], + "/requestBody/postUnevaluateditemsAsSchemaRequestBody": typing.Type[RequestBodyPostUnevaluateditemsAsSchemaRequestBody], + "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody": typing.Type[RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody], + "/requestBody/postUnevaluateditemsWithItemsRequestBody": typing.Type[RequestBodyPostUnevaluateditemsWithItemsRequestBody], + "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody], "/requestBody/postUniqueitemsFalseValidationRequestBody": typing.Type[RequestBodyPostUniqueitemsFalseValidationRequestBody], "/requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody": typing.Type[RequestBodyPostUniqueitemsFalseWithAnArrayOfItemsRequestBody], "/requestBody/postUniqueitemsValidationRequestBody": typing.Type[RequestBodyPostUniqueitemsValidationRequestBody], @@ -493,6 +505,10 @@ "/responseBody/postTypeArrayObjectOrNullResponseBodyForContentTypes": typing.Type[ResponseBodyPostTypeArrayObjectOrNullResponseBodyForContentTypes], "/responseBody/postTypeArrayOrObjectResponseBodyForContentTypes": typing.Type[ResponseBodyPostTypeArrayOrObjectResponseBodyForContentTypes], "/responseBody/postTypeAsArrayWithOneItemResponseBodyForContentTypes": typing.Type[ResponseBodyPostTypeAsArrayWithOneItemResponseBodyForContentTypes], + "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsAsSchemaResponseBodyForContentTypes], + "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes], + "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes], + "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes], "/responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes], "/responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes], "/responseBody/postUniqueitemsValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostUniqueitemsValidationResponseBodyForContentTypes], @@ -622,6 +638,10 @@ "/requestBody/postTypeArrayObjectOrNullRequestBody": RequestBodyPostTypeArrayObjectOrNullRequestBody, "/requestBody/postTypeArrayOrObjectRequestBody": RequestBodyPostTypeArrayOrObjectRequestBody, "/requestBody/postTypeAsArrayWithOneItemRequestBody": RequestBodyPostTypeAsArrayWithOneItemRequestBody, + "/requestBody/postUnevaluateditemsAsSchemaRequestBody": RequestBodyPostUnevaluateditemsAsSchemaRequestBody, + "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody": RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody, + "/requestBody/postUnevaluateditemsWithItemsRequestBody": RequestBodyPostUnevaluateditemsWithItemsRequestBody, + "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody": RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody, "/requestBody/postUniqueitemsFalseValidationRequestBody": RequestBodyPostUniqueitemsFalseValidationRequestBody, "/requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody": RequestBodyPostUniqueitemsFalseWithAnArrayOfItemsRequestBody, "/requestBody/postUniqueitemsValidationRequestBody": RequestBodyPostUniqueitemsValidationRequestBody, @@ -746,6 +766,10 @@ "/responseBody/postTypeArrayObjectOrNullResponseBodyForContentTypes": ResponseBodyPostTypeArrayObjectOrNullResponseBodyForContentTypes, "/responseBody/postTypeArrayOrObjectResponseBodyForContentTypes": ResponseBodyPostTypeArrayOrObjectResponseBodyForContentTypes, "/responseBody/postTypeAsArrayWithOneItemResponseBodyForContentTypes": ResponseBodyPostTypeAsArrayWithOneItemResponseBodyForContentTypes, + "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsAsSchemaResponseBodyForContentTypes, + "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes, + "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes, + "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes, "/responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes": ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes, "/responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes": ResponseBodyPostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, "/responseBody/postUniqueitemsValidationResponseBodyForContentTypes": ResponseBodyPostUniqueitemsValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py new file mode 100644 index 00000000000..2d75f572c34 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluateditemsAsSchemaRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py new file mode 100644 index 00000000000..ce05ae8e043 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py new file mode 100644 index 00000000000..92bd98cb7ba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluateditemsWithItemsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py new file mode 100644 index 00000000000..2aabc18d3ed --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py new file mode 100644 index 00000000000..662a8e798c4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluateditemsAsSchemaResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py new file mode 100644 index 00000000000..cb4c940ee5a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py new file mode 100644 index 00000000000..7db762ae5c0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py new file mode 100644 index 00000000000..23c3730fe3d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 5c6dd32448b..61072ff03d2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -12,6 +12,7 @@ from unit_test_api.apis.tags.required_api import RequiredApi from unit_test_api.apis.tags.max_length_api import MaxLengthApi from unit_test_api.apis.tags._not_api import _NotApi +from unit_test_api.apis.tags.unevaluated_items_api import UnevaluatedItemsApi from unit_test_api.apis.tags.path_post_api import PathPostApi from unit_test_api.apis.tags.min_properties_api import MinPropertiesApi from unit_test_api.apis.tags.property_names_api import PropertyNamesApi @@ -52,6 +53,7 @@ "required": typing.Type[RequiredApi], "maxLength": typing.Type[MaxLengthApi], "not": typing.Type[_NotApi], + "unevaluatedItems": typing.Type[UnevaluatedItemsApi], "path.post": typing.Type[PathPostApi], "minProperties": typing.Type[MinPropertiesApi], "propertyNames": typing.Type[PropertyNamesApi], @@ -93,6 +95,7 @@ "required": RequiredApi, "maxLength": MaxLengthApi, "not": _NotApi, + "unevaluatedItems": UnevaluatedItemsApi, "path.post": PathPostApi, "minProperties": MinPropertiesApi, "propertyNames": PropertyNamesApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index fee86a4a179..eba04af546c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -47,6 +47,7 @@ from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.operation import PostUnevaluateditemsWithItemsRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody @@ -64,8 +65,10 @@ from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.operation import PostUnevaluateditemsWithItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.operation import PostUnevaluateditemsAsSchemaRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -117,6 +120,7 @@ from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.operation import PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes @@ -147,7 +151,9 @@ from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody +from unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.operation import PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes @@ -206,7 +212,9 @@ from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.operation import PostUnevaluateditemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody +from unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.operation import PostUnevaluateditemsAsSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes @@ -298,6 +306,7 @@ class ContentTypeJsonApi( PostIdnHostnameFormatRequestBody, PostEmptyDependentsResponseBodyForContentTypes, PostMaxcontainsWithoutContainsIsIgnoredRequestBody, + PostUnevaluateditemsWithItemsRequestBody, PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, @@ -315,8 +324,10 @@ class ContentTypeJsonApi( PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, + PostUnevaluateditemsWithItemsResponseBodyForContentTypes, PostMultipleDependentsRequiredRequestBody, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, + PostUnevaluateditemsAsSchemaRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -368,6 +379,7 @@ class ContentTypeJsonApi( PostContainsKeywordValidationRequestBody, PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, + PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes, @@ -398,7 +410,9 @@ class ContentTypeJsonApi( PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, PostContainsWithNullInstanceElementsRequestBody, + PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes, PostMinitemsValidationRequestBody, + PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody, PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, @@ -457,7 +471,9 @@ class ContentTypeJsonApi( PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, + PostUnevaluateditemsWithNullInstanceElementsRequestBody, PostItemsWithNullInstanceElementsRequestBody, + PostUnevaluateditemsAsSchemaResponseBodyForContentTypes, PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, PostItemsContainsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index 9a858404476..b886173379a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -24,6 +24,7 @@ from unit_test_api.paths.request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.post.operation import PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody from unit_test_api.paths.request_body_post_array_type_matches_arrays_request_body.post.operation import PostArrayTypeMatchesArraysRequestBody from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody @@ -42,6 +43,7 @@ from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.request_body_post_oneof_with_empty_schema_request_body.post.operation import PostOneofWithEmptySchemaRequestBody from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.operation import PostUnevaluateditemsWithItemsRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_prefixitems_with_null_instance_elements_request_body.post.operation import PostPrefixitemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_request_body.post.operation import PostAllofRequestBody @@ -68,6 +70,7 @@ from unit_test_api.paths.request_body_post_required_with_escaped_characters_request_body.post.operation import PostRequiredWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.operation import PostUnevaluateditemsAsSchemaRequestBody from unit_test_api.paths.request_body_post_date_time_format_request_body.post.operation import PostDateTimeFormatRequestBody from unit_test_api.paths.request_body_post_relative_json_pointer_format_request_body.post.operation import PostRelativeJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody @@ -87,6 +90,7 @@ from unit_test_api.paths.request_body_post_enums_in_properties_request_body.post.operation import PostEnumsInPropertiesRequestBody from unit_test_api.paths.request_body_post_iri_reference_format_request_body.post.operation import PostIriReferenceFormatRequestBody from unit_test_api.paths.request_body_post_by_small_number_request_body.post.operation import PostBySmallNumberRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.operation import PostUnevaluateditemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_additionalproperties_can_exist_by_itself_request_body.post.operation import PostAdditionalpropertiesCanExistByItselfRequestBody from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody @@ -151,6 +155,7 @@ class OperationRequestBodyApi( PostPropertiesPatternpropertiesAdditionalpropertiesInteractionRequestBody, PostArrayTypeMatchesArraysRequestBody, PostMinitemsValidationRequestBody, + PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody, PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostConstNulCharactersInStringsRequestBody, @@ -169,6 +174,7 @@ class OperationRequestBodyApi( PostIdnHostnameFormatRequestBody, PostOneofWithEmptySchemaRequestBody, PostMaxcontainsWithoutContainsIsIgnoredRequestBody, + PostUnevaluateditemsWithItemsRequestBody, PostUriFormatRequestBody, PostPrefixitemsWithNullInstanceElementsRequestBody, PostAllofRequestBody, @@ -195,6 +201,7 @@ class OperationRequestBodyApi( PostRequiredWithEscapedCharactersRequestBody, PostMultipleDependentsRequiredRequestBody, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, + PostUnevaluateditemsAsSchemaRequestBody, PostDateTimeFormatRequestBody, PostRelativeJsonPointerFormatRequestBody, PostByNumberRequestBody, @@ -214,6 +221,7 @@ class OperationRequestBodyApi( PostEnumsInPropertiesRequestBody, PostIriReferenceFormatRequestBody, PostBySmallNumberRequestBody, + PostUnevaluateditemsWithNullInstanceElementsRequestBody, PostAdditionalpropertiesCanExistByItselfRequestBody, PostItemsWithNullInstanceElementsRequestBody, PostAllofWithTheFirstEmptySchemaRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index f9f9bfcf271..50577db3534 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -47,6 +47,7 @@ from unit_test_api.paths.request_body_post_idn_hostname_format_request_body.post.operation import PostIdnHostnameFormatRequestBody from unit_test_api.paths.response_body_post_empty_dependents_response_body_for_content_types.post.operation import PostEmptyDependentsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_maxcontains_without_contains_is_ignored_request_body.post.operation import PostMaxcontainsWithoutContainsIsIgnoredRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.operation import PostUnevaluateditemsWithItemsRequestBody from unit_test_api.paths.request_body_post_uri_format_request_body.post.operation import PostUriFormatRequestBody from unit_test_api.paths.request_body_post_nested_items_request_body.post.operation import PostNestedItemsRequestBody from unit_test_api.paths.request_body_post_number_type_matches_numbers_request_body.post.operation import PostNumberTypeMatchesNumbersRequestBody @@ -64,8 +65,10 @@ from unit_test_api.paths.request_body_post_allof_combined_with_anyof_oneof_request_body.post.operation import PostAllofCombinedWithAnyofOneofRequestBody from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.operation import PostUnevaluateditemsWithItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_multiple_dependents_required_request_body.post.operation import PostMultipleDependentsRequiredRequestBody from unit_test_api.paths.request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.operation import PostUnevaluateditemsAsSchemaRequestBody from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_by_number_request_body.post.operation import PostByNumberRequestBody from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody @@ -117,6 +120,7 @@ from unit_test_api.paths.request_body_post_contains_keyword_validation_request_body.post.operation import PostContainsKeywordValidationRequestBody from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.post.operation import PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.post.operation import PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes @@ -147,7 +151,9 @@ from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_contains_with_null_instance_elements_request_body.post.operation import PostContainsWithNullInstanceElementsRequestBody +from unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.operation import PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.request_body_post_minitems_validation_request_body.post.operation import PostMinitemsValidationRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody from unit_test_api.paths.request_body_post_float_division_inf_request_body.post.operation import PostFloatDivisionInfRequestBody from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes @@ -206,7 +212,9 @@ from unit_test_api.paths.request_body_post_minimum_validation_request_body.post.operation import PostMinimumValidationRequestBody from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.operation import PostUnevaluateditemsWithNullInstanceElementsRequestBody from unit_test_api.paths.request_body_post_items_with_null_instance_elements_request_body.post.operation import PostItemsWithNullInstanceElementsRequestBody +from unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.operation import PostUnevaluateditemsAsSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_allof_with_the_first_empty_schema_request_body.post.operation import PostAllofWithTheFirstEmptySchemaRequestBody from unit_test_api.paths.request_body_post_small_multiple_of_large_integer_request_body.post.operation import PostSmallMultipleOfLargeIntegerRequestBody from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes @@ -298,6 +306,7 @@ class PathPostApi( PostIdnHostnameFormatRequestBody, PostEmptyDependentsResponseBodyForContentTypes, PostMaxcontainsWithoutContainsIsIgnoredRequestBody, + PostUnevaluateditemsWithItemsRequestBody, PostUriFormatRequestBody, PostNestedItemsRequestBody, PostNumberTypeMatchesNumbersRequestBody, @@ -315,8 +324,10 @@ class PathPostApi( PostAllofCombinedWithAnyofOneofRequestBody, PostObjectPropertiesValidationResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, + PostUnevaluateditemsWithItemsResponseBodyForContentTypes, PostMultipleDependentsRequiredRequestBody, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveRequestBody, + PostUnevaluateditemsAsSchemaRequestBody, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, PostByNumberRequestBody, PostAnyofWithBaseSchemaRequestBody, @@ -368,6 +379,7 @@ class PathPostApi( PostContainsKeywordValidationRequestBody, PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, + PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, PostItemsDoesNotLookInApplicatorsValidCaseResponseBodyForContentTypes, PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes, @@ -398,7 +410,9 @@ class PathPostApi( PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, PostContainsWithNullInstanceElementsRequestBody, + PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes, PostMinitemsValidationRequestBody, + PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody, PostFloatDivisionInfRequestBody, PostIntegerTypeMatchesIntegersRequestBody, PostDurationFormatResponseBodyForContentTypes, @@ -457,7 +471,9 @@ class PathPostApi( PostMinimumValidationRequestBody, PostFloatDivisionInfResponseBodyForContentTypes, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, + PostUnevaluateditemsWithNullInstanceElementsRequestBody, PostItemsWithNullInstanceElementsRequestBody, + PostUnevaluateditemsAsSchemaResponseBodyForContentTypes, PostAllofWithTheFirstEmptySchemaRequestBody, PostSmallMultipleOfLargeIntegerRequestBody, PostItemsContainsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 1bad403fa9a..538131190b3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -30,6 +30,7 @@ from unit_test_api.paths.response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.post.operation import PostAllofWithTwoEmptySchemasResponseBodyForContentTypes from unit_test_api.paths.response_body_post_ipv6_format_response_body_for_content_types.post.operation import PostIpv6FormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.post.operation import PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.operation import PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_uri_reference_format_response_body_for_content_types.post.operation import PostUriReferenceFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_duration_format_response_body_for_content_types.post.operation import PostDurationFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes @@ -62,6 +63,7 @@ from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.operation import PostUnevaluateditemsWithItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.operation import PostNotResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minlength_validation_response_body_for_content_types.post.operation import PostMinlengthValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes @@ -73,6 +75,7 @@ from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_float_division_inf_response_body_for_content_types.post.operation import PostFloatDivisionInfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.post.operation import PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.operation import PostUnevaluateditemsAsSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.post.operation import PostASchemaGivenForPrefixitemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_items_contains_response_body_for_content_types.post.operation import PostItemsContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_empty_schema_response_body_for_content_types.post.operation import PostOneofWithEmptySchemaResponseBodyForContentTypes @@ -117,6 +120,7 @@ from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.post.operation import PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_validation_response_body_for_content_types.post.operation import PostPatternValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.post.operation import PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.post.operation import PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes @@ -157,6 +161,7 @@ class ResponseContentContentTypeSchemaApi( PostAllofWithTwoEmptySchemasResponseBodyForContentTypes, PostIpv6FormatResponseBodyForContentTypes, PostUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes, + PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes, PostUriReferenceFormatResponseBodyForContentTypes, PostDurationFormatResponseBodyForContentTypes, PostIdnEmailFormatResponseBodyForContentTypes, @@ -189,6 +194,7 @@ class ResponseContentContentTypeSchemaApi( PostAllofResponseBodyForContentTypes, PostPatternIsNotAnchoredResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostUnevaluateditemsWithItemsResponseBodyForContentTypes, PostNotResponseBodyForContentTypes, PostMinlengthValidationResponseBodyForContentTypes, PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes, @@ -200,6 +206,7 @@ class ResponseContentContentTypeSchemaApi( PostRequiredWithEmptyArrayResponseBodyForContentTypes, PostFloatDivisionInfResponseBodyForContentTypes, PostRegexesAreNotAnchoredByDefaultAndAreCaseSensitiveResponseBodyForContentTypes, + PostUnevaluateditemsAsSchemaResponseBodyForContentTypes, PostASchemaGivenForPrefixitemsResponseBodyForContentTypes, PostItemsContainsResponseBodyForContentTypes, PostOneofWithEmptySchemaResponseBodyForContentTypes, @@ -244,6 +251,7 @@ class ResponseContentContentTypeSchemaApi( PostNotMoreComplexSchemaResponseBodyForContentTypes, PostMultipleSimultaneousPatternpropertiesAreValidatedResponseBodyForContentTypes, PostPatternValidationResponseBodyForContentTypes, + PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes, PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsResponseBodyForContentTypes, PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py new file mode 100644 index 00000000000..5cdb5a7234f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post.operation import PostUnevaluateditemsAsSchemaRequestBody +from unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post.operation import PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post.operation import PostUnevaluateditemsAsSchemaResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post.operation import PostUnevaluateditemsWithItemsRequestBody +from unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post.operation import PostUnevaluateditemsWithItemsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes +from unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post.operation import PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody +from unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post.operation import PostUnevaluateditemsWithNullInstanceElementsRequestBody + + +class UnevaluatedItemsApi( + PostUnevaluateditemsAsSchemaRequestBody, + PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes, + PostUnevaluateditemsAsSchemaResponseBodyForContentTypes, + PostUnevaluateditemsWithItemsRequestBody, + PostUnevaluateditemsWithItemsResponseBodyForContentTypes, + PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes, + PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody, + PostUnevaluateditemsWithNullInstanceElementsRequestBody, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_as_schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_as_schema.py new file mode 100644 index 00000000000..72eacd659e3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_as_schema.py @@ -0,0 +1,27 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +UnevaluatedItems: typing_extensions.TypeAlias = schemas.StrSchema + + +@dataclasses.dataclass(frozen=True) +class UnevaluateditemsAsSchema( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + unevaluated_items: typing.Type[UnevaluatedItems] = dataclasses.field(default_factory=lambda: UnevaluatedItems) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_depends_on_multiple_nested_contains.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_depends_on_multiple_nested_contains.py new file mode 100644 index 00000000000..c0e40c7486c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_depends_on_multiple_nested_contains.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class Contains( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + multiple_of: typing.Union[int, float] = 2 + + + +@dataclasses.dataclass(frozen=True) +class _0( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + contains: typing.Type[Contains] = dataclasses.field(default_factory=lambda: Contains) # type: ignore + + + +@dataclasses.dataclass(frozen=True) +class Contains2( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + multiple_of: typing.Union[int, float] = 3 + + + +@dataclasses.dataclass(frozen=True) +class _1( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + contains: typing.Type[Contains2] = dataclasses.field(default_factory=lambda: Contains2) # type: ignore + +AllOf = typing.Tuple[ + typing.Type[_0], + typing.Type[_1], +] + + +@dataclasses.dataclass(frozen=True) +class UnevaluatedItems( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + # any type + multiple_of: typing.Union[int, float] = 5 + + + +@dataclasses.dataclass(frozen=True) +class UnevaluateditemsDependsOnMultipleNestedContains( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore + unevaluated_items: typing.Type[UnevaluatedItems] = dataclasses.field(default_factory=lambda: UnevaluatedItems) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_items.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_items.py new file mode 100644 index 00000000000..4af5f22572e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_items.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +Items: typing_extensions.TypeAlias = schemas.NumberSchema + + +class UnevaluateditemsWithItemsTuple( + typing.Tuple[ + typing.Union[int, float], + ... + ] +): + + def __new__(cls, arg: typing.Union[UnevaluateditemsWithItemsTupleInput, UnevaluateditemsWithItemsTuple], configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None): + return UnevaluateditemsWithItems.validate(arg, configuration=configuration) +UnevaluateditemsWithItemsTupleInput = typing.Union[ + typing.List[ + typing.Union[ + int, + float + ], + ], + typing.Tuple[ + typing.Union[ + int, + float + ], + ... + ] +] +UnevaluatedItems: typing_extensions.TypeAlias = schemas.StrSchema + + +@dataclasses.dataclass(frozen=True) +class UnevaluateditemsWithItems( + schemas.Schema[schemas.immutabledict, UnevaluateditemsWithItemsTuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({tuple}) + items: typing.Type[Items] = dataclasses.field(default_factory=lambda: Items) # type: ignore + unevaluated_items: typing.Type[UnevaluatedItems] = dataclasses.field(default_factory=lambda: UnevaluatedItems) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + tuple: UnevaluateditemsWithItemsTuple + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + UnevaluateditemsWithItemsTupleInput, + UnevaluateditemsWithItemsTuple, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> UnevaluateditemsWithItemsTuple: + return super().validate_base( + arg, + configuration=configuration, + ) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_null_instance_elements.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_null_instance_elements.py new file mode 100644 index 00000000000..dec94514ade --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluateditems_with_null_instance_elements.py @@ -0,0 +1,27 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +UnevaluatedItems: typing_extensions.TypeAlias = schemas.NoneSchema + + +@dataclasses.dataclass(frozen=True) +class UnevaluateditemsWithNullInstanceElements( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + unevaluated_items: typing.Type[UnevaluatedItems] = dataclasses.field(default_factory=lambda: UnevaluatedItems) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index 18733fc10a2..cc1c4bc291c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -127,6 +127,10 @@ from unit_test_api.components.schema.type_array_object_or_null import TypeArrayObjectOrNull from unit_test_api.components.schema.type_array_or_object import TypeArrayOrObject from unit_test_api.components.schema.type_as_array_with_one_item import TypeAsArrayWithOneItem +from unit_test_api.components.schema.unevaluateditems_as_schema import UnevaluateditemsAsSchema +from unit_test_api.components.schema.unevaluateditems_depends_on_multiple_nested_contains import UnevaluateditemsDependsOnMultipleNestedContains +from unit_test_api.components.schema.unevaluateditems_with_items import UnevaluateditemsWithItems +from unit_test_api.components.schema.unevaluateditems_with_null_instance_elements import UnevaluateditemsWithNullInstanceElements from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from unit_test_api.components.schema.uniqueitems_false_with_an_array_of_items import UniqueitemsFalseWithAnArrayOfItems from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/__init__.py new file mode 100644 index 00000000000..552314cf586 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluateditems_as_schema_request_body import RequestBodyPostUnevaluateditemsAsSchemaRequestBody + +path = "/requestBody/postUnevaluateditemsAsSchemaRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py new file mode 100644 index 00000000000..72a25cff615 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_as_schema + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_as_schema_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_as_schema_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_as_schema_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsAsSchemaRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_as_schema_request_body = BaseApi._post_unevaluateditems_as_schema_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_as_schema_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..38f7a5e66b3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_as_schema +Schema2: typing_extensions.TypeAlias = unevaluateditems_as_schema.UnevaluateditemsAsSchema diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py new file mode 100644 index 00000000000..254cffecbde --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body import RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody + +path = "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py new file mode 100644 index 00000000000..62870819cbd --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_depends_on_multiple_nested_contains + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_depends_on_multiple_nested_contains_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_depends_on_multiple_nested_contains_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_depends_on_multiple_nested_contains_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_depends_on_multiple_nested_contains_request_body = BaseApi._post_unevaluateditems_depends_on_multiple_nested_contains_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_depends_on_multiple_nested_contains_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..7e58409c78f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_depends_on_multiple_nested_contains +Schema2: typing_extensions.TypeAlias = unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/__init__.py new file mode 100644 index 00000000000..763b66b5de8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluateditems_with_items_request_body import RequestBodyPostUnevaluateditemsWithItemsRequestBody + +path = "/requestBody/postUnevaluateditemsWithItemsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py new file mode 100644 index 00000000000..67331407422 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_with_items + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_with_items_request_body( + self, + body: typing.Union[ + unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput, + unevaluateditems_with_items.UnevaluateditemsWithItemsTuple + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_with_items_request_body( + self, + body: typing.Union[ + unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput, + unevaluateditems_with_items.UnevaluateditemsWithItemsTuple + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_with_items_request_body( + self, + body: typing.Union[ + unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput, + unevaluateditems_with_items.UnevaluateditemsWithItemsTuple + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsWithItemsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_with_items_request_body = BaseApi._post_unevaluateditems_with_items_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_with_items_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..3442e8b4f4b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_with_items +Schema2: typing_extensions.TypeAlias = unevaluateditems_with_items.UnevaluateditemsWithItems diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py new file mode 100644 index 00000000000..dee1c8747c3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body import RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody + +path = "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py new file mode 100644 index 00000000000..cce37becda4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_with_null_instance_elements + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_with_null_instance_elements_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsWithNullInstanceElementsRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_with_null_instance_elements_request_body = BaseApi._post_unevaluateditems_with_null_instance_elements_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_with_null_instance_elements_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..6214506d58c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_with_null_instance_elements +Schema2: typing_extensions.TypeAlias = unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..ab293daf270 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types import ResponseBodyPostUnevaluateditemsAsSchemaResponseBodyForContentTypes + +path = "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..871a18a9998 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_as_schema_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_as_schema_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_as_schema_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsAsSchemaResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_as_schema_response_body_for_content_types = BaseApi._post_unevaluateditems_as_schema_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_as_schema_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..38f7a5e66b3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_as_schema +Schema2: typing_extensions.TypeAlias = unevaluateditems_as_schema.UnevaluateditemsAsSchema diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..d997861077a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types import ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes + +path = "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..66e931b6c94 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types = BaseApi._post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..7e58409c78f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_depends_on_multiple_nested_contains +Schema2: typing_extensions.TypeAlias = unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..1018b9ac37e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types import ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes + +path = "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..8b98ff6d03b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_with_items_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_with_items_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_with_items_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsWithItemsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_with_items_response_body_for_content_types = BaseApi._post_unevaluateditems_with_items_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_with_items_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..f915d13e687 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: application_json_schema.unevaluateditems_with_items.UnevaluateditemsWithItemsTuple + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..3442e8b4f4b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_with_items +Schema2: typing_extensions.TypeAlias = unevaluateditems_with_items.UnevaluateditemsWithItems diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..c8e2df9de49 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes + +path = "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..d81235a3899 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluateditems_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluateditems_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluateditems_with_null_instance_elements_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluateditems_with_null_instance_elements_response_body_for_content_types = BaseApi._post_unevaluateditems_with_null_instance_elements_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluateditems_with_null_instance_elements_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..6214506d58c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluateditems_with_null_instance_elements +Schema2: typing_extensions.TypeAlias = unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_as_schema.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_as_schema.py new file mode 100644 index 00000000000..8cc392ed01d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_as_schema.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluateditems_as_schema import UnevaluateditemsAsSchema +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluateditemsAsSchema(unittest.TestCase): + """UnevaluateditemsAsSchema unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_with_invalid_unevaluated_items_fails(self): + # with invalid unevaluated items + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + UnevaluateditemsAsSchema.validate( + [ + 42, + ], + configuration=self.configuration + ) + + def test_with_no_unevaluated_items_passes(self): + # with no unevaluated items + UnevaluateditemsAsSchema.validate( + [ + ], + configuration=self.configuration + ) + + def test_with_valid_unevaluated_items_passes(self): + # with valid unevaluated items + UnevaluateditemsAsSchema.validate( + [ + "foo", + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py new file mode 100644 index 00000000000..cfdfc1d83b7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluateditems_depends_on_multiple_nested_contains import UnevaluateditemsDependsOnMultipleNestedContains +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluateditemsDependsOnMultipleNestedContains(unittest.TestCase): + """UnevaluateditemsDependsOnMultipleNestedContains unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_5_not_evaluated_passes_unevaluateditems_passes(self): + # 5 not evaluated, passes unevaluatedItems + UnevaluateditemsDependsOnMultipleNestedContains.validate( + [ + 2, + 3, + 4, + 5, + 6, + ], + configuration=self.configuration + ) + + def test_7_not_evaluated_fails_unevaluateditems_fails(self): + # 7 not evaluated, fails unevaluatedItems + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + UnevaluateditemsDependsOnMultipleNestedContains.validate( + [ + 2, + 3, + 4, + 7, + 8, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_items.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_items.py new file mode 100644 index 00000000000..13820a1fc60 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_items.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluateditems_with_items import UnevaluateditemsWithItems +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluateditemsWithItems(unittest.TestCase): + """UnevaluateditemsWithItems unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_invalid_under_items_fails(self): + # invalid under items + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + UnevaluateditemsWithItems.validate( + [ + "foo", + "bar", + "baz", + ], + configuration=self.configuration + ) + + def test_valid_under_items_passes(self): + # valid under items + UnevaluateditemsWithItems.validate( + [ + 5, + 6, + 7, + 8, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_null_instance_elements.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_null_instance_elements.py new file mode 100644 index 00000000000..0bf3cab32da --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluateditems_with_null_instance_elements.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluateditems_with_null_instance_elements import UnevaluateditemsWithNullInstanceElements +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluateditemsWithNullInstanceElements(unittest.TestCase): + """UnevaluateditemsWithNullInstanceElements unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_allows_null_elements_passes(self): + # allows null elements + UnevaluateditemsWithNullInstanceElements.validate( + [ + None, + ], + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/test_post.py new file mode 100644 index 00000000000..14bf8855b0b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_as_schema_request_body/test_post.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluateditems_as_schema_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_with_invalid_unevaluated_items_fails(self): + content_type = 'application/json' + # with invalid unevaluated items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 42, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_with_no_unevaluated_items_passes(self): + content_type = 'application/json' + # with no unevaluated items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluateditemsAsSchemaRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_with_valid_unevaluated_items_passes(self): + content_type = 'application/json' + # with valid unevaluated items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluateditemsAsSchemaRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/test_post.py new file mode 100644 index 00000000000..84a69847958 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/test_post.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_5_not_evaluated_passes_unevaluateditems_passes(self): + content_type = 'application/json' + # 5 not evaluated, passes unevaluatedItems + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 3, + 4, + 5, + 6, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_7_not_evaluated_fails_unevaluateditems_fails(self): + content_type = 'application/json' + # 7 not evaluated, fails unevaluatedItems + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 3, + 4, + 7, + 8, + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/test_post.py new file mode 100644 index 00000000000..b30e0f471d6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/test_post.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluateditems_with_items_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_invalid_under_items_fails(self): + content_type = 'application/json' + # invalid under items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + "bar", + "baz", + ] + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_valid_under_items_passes(self): + content_type = 'application/json' + # valid under items + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 5, + 6, + 7, + 8, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluateditemsWithItemsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/test_post.py new file mode 100644 index 00000000000..a7ea478108b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/test_post.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_allows_null_elements_passes(self): + content_type = 'application/json' + # allows null elements + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + None, + ] + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..4962d08f419 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_as_schema_response_body_for_content_types/test_post.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluateditems_as_schema_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_with_invalid_unevaluated_items_fails(self): + # with invalid unevaluated items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 42, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_with_no_unevaluated_items_passes(self): + # with no unevaluated items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_with_valid_unevaluated_items_passes(self): + # with valid unevaluated items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsAsSchemaResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..33a63acb8a0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/test_post.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_5_not_evaluated_passes_unevaluateditems_passes(self): + # 5 not evaluated, passes unevaluatedItems + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 3, + 4, + 5, + 6, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_7_not_evaluated_fails_unevaluateditems_fails(self): + # 7 not evaluated, fails unevaluatedItems + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 2, + 3, + 4, + 7, + 8, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..8dce61d242c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/test_post.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_invalid_under_items_fails(self): + # invalid under items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + "foo", + "bar", + "baz", + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_valid_under_items_passes(self): + # valid under items + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + 5, + 6, + 7, + 8, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..6e0228f177b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/test_post.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_allows_null_elements_passes(self): + # allows null elements + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + [ + None, + ] + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 9be3840224f..68f831c530b 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4437,222 +4437,6 @@ paths: - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedTupleRequestBody: - post: - operationId: postUnevaluateditemsWithNestedTupleRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedTupleResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedTuple' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedTuple' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedItemsRequestBody: - post: - operationId: postUnevaluateditemsWithNestedItemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedItemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedItems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody: - post: - operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsWithNestedPrefixitemsAndItemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsWithNestedPrefixitemsAndItems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsWithNestedPrefixitemsAndItems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsCanTSeeInsideCousinsRequestBody: - post: - operationId: postUnevaluateditemsCanTSeeInsideCousinsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsCanTSeeInsideCousins' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanTSeeInsideCousins' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsCanTSeeInsideCousinsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsCanTSeeInsideCousinsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsCanTSeeInsideCousins' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanTSeeInsideCousins' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsRequestBody: - post: - operationId: postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsResponseBodyForContentTypes: - post: - operationId: postItemIsEvaluatedInAnUncleSchemaToUnevaluateditemsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postUnevaluateditemsDependsOnAdjacentContainsRequestBody: - post: - operationId: postUnevaluateditemsDependsOnAdjacentContainsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsDependsOnAdjacentContains' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsDependsOnAdjacentContains' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsDependsOnAdjacentContainsResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsDependsOnAdjacentContainsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsDependsOnAdjacentContains' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsDependsOnAdjacentContains' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems /requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody: post: operationId: postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody @@ -4689,78 +4473,6 @@ paths: - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipRequestBody: - post: - operationId: postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsAndContainsInteractToControlItemDependencyRelationshipResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems - /requestBody/postNonArrayInstancesAreValidRequestBody: - post: - operationId: postNonArrayInstancesAreValidRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NonArrayInstancesAreValid' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/NonArrayInstancesAreValid' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postNonArrayInstancesAreValidResponseBodyForContentTypes: - post: - operationId: postNonArrayInstancesAreValidResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/NonArrayInstancesAreValid' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/NonArrayInstancesAreValid' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems /requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody: post: operationId: postUnevaluateditemsWithNullInstanceElementsRequestBody @@ -4797,42 +4509,6 @@ paths: - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody: - post: - operationId: postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedItems - /responseBody/postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes: - post: - operationId: postUnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedItems /requestBody/postUniqueitemsValidationRequestBody: post: operationId: postUniqueitemsValidationRequestBody @@ -5605,56 +5281,6 @@ components: type: number unevaluatedItems: type: string - UnevaluateditemsWithNestedTuple: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - type: string - allOf: - - prefixItems: - - true - - type: number - unevaluatedItems: false - UnevaluateditemsWithNestedItems: - $schema: https://json-schema.org/draft/2020-12/schema - unevaluatedItems: - type: boolean - anyOf: - - items: - type: string - - true - UnevaluateditemsWithNestedPrefixitemsAndItems: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - prefixItems: - - type: string - items: true - unevaluatedItems: false - UnevaluateditemsCanTSeeInsideCousins: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - prefixItems: - - true - - unevaluatedItems: false - ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems: - $schema: https://json-schema.org/draft/2020-12/schema - properties: - foo: - prefixItems: - - type: string - unevaluatedItems: false - anyOf: - - properties: - foo: - prefixItems: - - true - - type: string - UnevaluateditemsDependsOnAdjacentContains: - $schema: https://json-schema.org/draft/2020-12/schema - prefixItems: - - true - contains: - type: string - unevaluatedItems: false UnevaluateditemsDependsOnMultipleNestedContains: $schema: https://json-schema.org/draft/2020-12/schema allOf: @@ -5664,33 +5290,10 @@ components: multipleOf: 3 unevaluatedItems: multipleOf: 5 - UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship: - $schema: https://json-schema.org/draft/2020-12/schema - if: - contains: - const: a - then: - if: - contains: - const: b - then: - if: - contains: - const: c - unevaluatedItems: false - NonArrayInstancesAreValid: - $schema: https://json-schema.org/draft/2020-12/schema - unevaluatedItems: false UnevaluateditemsWithNullInstanceElements: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedItems: type: 'null' - UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse: - $schema: https://json-schema.org/draft/2020-12/schema - if: - prefixItems: - - const: a - unevaluatedItems: false UniqueitemsValidation: $schema: https://json-schema.org/draft/2020-12/schema uniqueItems: true @@ -8770,105 +8373,6 @@ components: - baz valid: false comment: null - UnevaluateditemsWithNestedTuple: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: - - foo - - 42 - valid: true - comment: null - WithUnevaluatedItems: - description: with unevaluated items - data: - - foo - - 42 - - true - valid: false - comment: null - UnevaluateditemsWithNestedItems: - WithOnlyValidAdditionalItems: - description: with only (valid) additional items - data: - - true - - false - valid: true - comment: null - WithNoAdditionalItems: - description: with no additional items - data: - - 'yes' - - 'no' - valid: true - comment: null - WithInvalidAdditionalItem: - description: with invalid additional item - data: - - 'yes' - - false - valid: false - comment: null - UnevaluateditemsWithNestedPrefixitemsAndItems: - WithNoAdditionalItems: - description: with no additional items - data: - - foo - valid: true - comment: null - WithAdditionalItems: - description: with additional items - data: - - foo - - 42 - - true - valid: true - comment: null - UnevaluateditemsCanTSeeInsideCousins: - AlwaysFails: - description: always fails - data: - - 1 - valid: false - comment: null - ItemIsEvaluatedInAnUncleSchemaToUnevaluateditems: - NoExtraItems: - description: no extra items - data: - foo: - - test - valid: true - comment: null - UncleKeywordEvaluationIsNotSignificant: - description: uncle keyword evaluation is not significant - data: - foo: - - test - - test - valid: false - comment: null - UnevaluateditemsDependsOnAdjacentContains: - SecondItemIsEvaluatedByContains: - description: second item is evaluated by contains - data: - - 1 - - foo - valid: true - comment: null - ContainsFailsSecondItemIsNotEvaluated: - description: contains fails, second item is not evaluated - data: - - 1 - - 2 - valid: false - comment: null - ContainsPassesSecondItemIsNotEvaluated: - description: contains passes, second item is not evaluated - data: - - 1 - - 2 - - foo - valid: false - comment: null UnevaluateditemsDependsOnMultipleNestedContains: 5NotEvaluatedPassesUnevaluateditems: description: 5 not evaluated, passes unevaluatedItems @@ -8890,105 +8394,6 @@ components: - 8 valid: false comment: null - UnevaluateditemsAndContainsInteractToControlItemDependencyRelationship: - EmptyArrayIsValid: - description: empty array is valid - data: [] - valid: true - comment: null - OnlyASAreValid: - description: only a's are valid - data: - - a - - a - valid: true - comment: null - ASAndBSAreValid: - description: a's and b's are valid - data: - - a - - b - - a - - b - - a - valid: true - comment: null - ASBSAndCSAreValid: - description: a's, b's and c's are valid - data: - - c - - a - - c - - c - - b - - a - valid: true - comment: null - OnlyBSAreInvalid: - description: only b's are invalid - data: - - b - - b - valid: false - comment: null - OnlyCSAreInvalid: - description: only c's are invalid - data: - - c - - c - valid: false - comment: null - OnlyBSAndCSAreInvalid: - description: only b's and c's are invalid - data: - - c - - b - - c - - b - - c - valid: false - comment: null - OnlyASAndCSAreInvalid: - description: only a's and c's are invalid - data: - - c - - a - - c - - a - - c - valid: false - comment: null - NonArrayInstancesAreValid: - IgnoresBooleans: - description: ignores booleans - data: true - valid: true - comment: null - IgnoresIntegers: - description: ignores integers - data: 123 - valid: true - comment: null - IgnoresFloats: - description: ignores floats - data: 1.0 - valid: true - comment: null - IgnoresObjects: - description: ignores objects - data: {} - valid: true - comment: null - IgnoresStrings: - description: ignores strings - data: foo - valid: true - comment: null - IgnoresNull: - description: ignores null - data: null - valid: true - comment: null UnevaluateditemsWithNullInstanceElements: AllowsNullElements: description: allows null elements @@ -8996,19 +8401,6 @@ components: - null valid: true comment: null - UnevaluateditemsCanSeeAnnotationsFromIfWithoutThenAndElse: - ValidInCaseIfIsEvaluated: - description: valid in case if is evaluated - data: - - a - valid: true - comment: null - InvalidInCaseIfIsEvaluated: - description: invalid in case if is evaluated - data: - - b - valid: false - comment: null UniqueitemsValidation: UniqueArrayOfIntegersIsValid: description: unique array of integers is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index d0cbbd2232c..eb03ee6771c 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -298,6 +298,15 @@ class ExclusionReason: "unevaluatedItems with if/then/else": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedItems with tuple": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedItems with uniform items": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems can see annotations from if without then and else": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "non-array instances are valid": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems and contains interact to control item dependency relationship": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems can't see inside cousins": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems depends on adjacent contains": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "item is evaluated in an uncle schema to unevaluatedItems": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with nested tuple": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with nested prefixItems and items": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedItems with nested items": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, } FILEPATH_TO_EXCLUDE_REASON = { From 8388a400139784249496ef06efac49b43eda52c6 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 27 Sep 2023 15:04:10 -0700 Subject: [PATCH 25/34] Skips 6 test cases --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 6685 +++++++++++------ .../3_1/unit_test_spec/spec_writer.py | 11 +- 2 files changed, 4450 insertions(+), 2246 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 68f831c530b..56352f251ba 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -43,6 +43,7 @@ tags: - name: required - name: type - name: unevaluatedItems +- name: unevaluatedProperties - name: uniqueItems paths: /requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody: @@ -4509,16 +4510,16 @@ paths: - path.post - contentType_json - unevaluatedItems - /requestBody/postUniqueitemsValidationRequestBody: + /requestBody/postUnevaluatedpropertiesTrueRequestBody: post: - operationId: postUniqueitemsValidationRequestBody + operationId: postUnevaluatedpropertiesTrueRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsValidation' + $ref: '#/components/schemas/UnevaluatedpropertiesTrue' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsValidation' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesTrue' required: true responses: '200': @@ -4527,34 +4528,34 @@ paths: - operation.requestBody - path.post - contentType_json - - uniqueItems - /responseBody/postUniqueitemsValidationResponseBodyForContentTypes: + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesTrueResponseBodyForContentTypes: post: - operationId: postUniqueitemsValidationResponseBodyForContentTypes + operationId: postUnevaluatedpropertiesTrueResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsValidation' + $ref: '#/components/schemas/UnevaluatedpropertiesTrue' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsValidation' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesTrue' tags: - response.content.contentType.schema - path.post - contentType_json - - uniqueItems - /requestBody/postUniqueitemsWithAnArrayOfItemsRequestBody: + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesSchemaRequestBody: post: - operationId: postUniqueitemsWithAnArrayOfItemsRequestBody + operationId: postUnevaluatedpropertiesSchemaRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsWithAnArrayOfItems' + $ref: '#/components/schemas/UnevaluatedpropertiesSchema' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsWithAnArrayOfItems' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesSchema' required: true responses: '200': @@ -4563,34 +4564,34 @@ paths: - operation.requestBody - path.post - contentType_json - - uniqueItems - /responseBody/postUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes: + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes: post: - operationId: postUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes + operationId: postUnevaluatedpropertiesSchemaResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsWithAnArrayOfItems' + $ref: '#/components/schemas/UnevaluatedpropertiesSchema' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsWithAnArrayOfItems' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesSchema' tags: - response.content.contentType.schema - path.post - contentType_json - - uniqueItems - /requestBody/postUniqueitemsFalseValidationRequestBody: + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesFalseRequestBody: post: - operationId: postUniqueitemsFalseValidationRequestBody + operationId: postUnevaluatedpropertiesFalseRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsFalseValidation' + $ref: '#/components/schemas/UnevaluatedpropertiesFalse' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsFalseValidation' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesFalse' required: true responses: '200': @@ -4599,34 +4600,34 @@ paths: - operation.requestBody - path.post - contentType_json - - uniqueItems - /responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes: + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesFalseResponseBodyForContentTypes: post: - operationId: postUniqueitemsFalseValidationResponseBodyForContentTypes + operationId: postUnevaluatedpropertiesFalseResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsFalseValidation' + $ref: '#/components/schemas/UnevaluatedpropertiesFalse' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsFalseValidation' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesFalse' tags: - response.content.contentType.schema - path.post - contentType_json - - uniqueItems - /requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody: + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithAdjacentPropertiesRequestBody: post: - operationId: postUniqueitemsFalseWithAnArrayOfItemsRequestBody + operationId: postUnevaluatedpropertiesWithAdjacentPropertiesRequestBody requestBody: content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsFalseWithAnArrayOfItems' + $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentProperties' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsFalseWithAnArrayOfItems' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentProperties' required: true responses: '200': @@ -4635,240 +4636,1356 @@ paths: - operation.requestBody - path.post - contentType_json - - uniqueItems - /responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes: + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithAdjacentPropertiesResponseBodyForContentTypes: post: - operationId: postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes + operationId: postUnevaluatedpropertiesWithAdjacentPropertiesResponseBodyForContentTypes responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/UniqueitemsFalseWithAnArrayOfItems' + $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentProperties' x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UniqueitemsFalseWithAnArrayOfItems' + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentProperties' tags: - response.content.contentType.schema - path.post - contentType_json - - uniqueItems -components: - schemas: - NonAsciiPatternWithAdditionalproperties: - $schema: https://json-schema.org/draft/2020-12/schema - patternProperties: - "^\xE1": {} - additionalProperties: false - AdditionalpropertiesWithSchema: - $schema: https://json-schema.org/draft/2020-12/schema - properties: - foo: {} - bar: {} - additionalProperties: - type: boolean - AdditionalpropertiesCanExistByItself: - $schema: https://json-schema.org/draft/2020-12/schema - additionalProperties: - type: boolean - AdditionalpropertiesAreAllowedByDefault: - $schema: https://json-schema.org/draft/2020-12/schema - properties: - foo: {} - bar: {} - AdditionalpropertiesDoesNotLookInApplicators: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - properties: - foo: {} - additionalProperties: - type: boolean - AdditionalpropertiesWithNullValuedInstanceProperties: - $schema: https://json-schema.org/draft/2020-12/schema - additionalProperties: - type: 'null' - Allof: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - properties: - bar: - type: integer - required: - - bar - - properties: - foo: - type: string - required: - - foo - AllofWithBaseSchema: - $schema: https://json-schema.org/draft/2020-12/schema - properties: - bar: - type: integer - required: - - bar - allOf: - - properties: - foo: - type: string - required: - - foo - - properties: - baz: - type: 'null' - required: - - baz - AllofSimpleTypes: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - maximum: 30 - - minimum: 20 - AllofWithOneEmptySchema: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - {} - AllofWithTwoEmptySchemas: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - {} - - {} - AllofWithTheFirstEmptySchema: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - {} - - type: number - AllofWithTheLastEmptySchema: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - type: number - - {} - NestedAllofToCheckValidationSemantics: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - allOf: - - type: 'null' - AllofCombinedWithAnyofOneof: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - multipleOf: 2 - anyOf: - - multipleOf: 3 - oneOf: - - multipleOf: 5 - Anyof: - $schema: https://json-schema.org/draft/2020-12/schema - anyOf: - - type: integer - - minimum: 2 - AnyofWithBaseSchema: - $schema: https://json-schema.org/draft/2020-12/schema - type: string - anyOf: - - maxLength: 2 - - minLength: 4 - AnyofComplexTypes: - $schema: https://json-schema.org/draft/2020-12/schema - anyOf: - - properties: - bar: - type: integer - required: - - bar - - properties: - foo: - type: string - required: - - foo - AnyofWithOneEmptySchema: - $schema: https://json-schema.org/draft/2020-12/schema - anyOf: - - type: number - - {} - NestedAnyofToCheckValidationSemantics: - $schema: https://json-schema.org/draft/2020-12/schema - anyOf: - - anyOf: - - type: 'null' - ConstNulCharactersInStrings: - $schema: https://json-schema.org/draft/2020-12/schema - const: "hello\0there" - ContainsKeywordValidation: - $schema: https://json-schema.org/draft/2020-12/schema - contains: - minimum: 5 - ItemsContains: - $schema: https://json-schema.org/draft/2020-12/schema - items: - multipleOf: 2 - contains: - multipleOf: 3 - ContainsWithNullInstanceElements: - $schema: https://json-schema.org/draft/2020-12/schema - contains: - type: 'null' - SingleDependency: - $schema: https://json-schema.org/draft/2020-12/schema - dependentRequired: - bar: - - foo - EmptyDependents: - $schema: https://json-schema.org/draft/2020-12/schema - dependentRequired: - bar: [] - MultipleDependentsRequired: - $schema: https://json-schema.org/draft/2020-12/schema - dependentRequired: - quux: - - foo - - bar - DependentSchemasSingleDependency: - $schema: https://json-schema.org/draft/2020-12/schema - dependentSchemas: - bar: - properties: - foo: - type: integer - bar: - type: integer - DependentSchemasDependenciesWithEscapedCharacters: - $schema: https://json-schema.org/draft/2020-12/schema - dependentSchemas: - "foo\tbar": - minProperties: 4 - foo'bar: - required: - - foo"bar - DependentSchemasDependentSubschemaIncompatibleWithRoot: - properties: - foo: {} - dependentSchemas: - foo: - properties: - bar: {} - additionalProperties: false - SimpleEnumValidation: - $schema: https://json-schema.org/draft/2020-12/schema - enum: - - 1 - - 2 - - 3 - EnumsInProperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - enum: - - foo - bar: - enum: - - bar - required: - - bar - EnumWithEscapedCharacters: - $schema: https://json-schema.org/draft/2020-12/schema - enum: - - 'foo - + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithAdjacentPatternpropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithAdjacentPatternpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentPatternproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentPatternproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithAdjacentPatternpropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithAdjacentPatternpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentPatternproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentPatternproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentAdditionalproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentAdditionalproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithNestedPropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithNestedPropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedProperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithNestedPropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithNestedPropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedProperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithNestedPatternpropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithNestedPatternpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedPatternproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedPatternproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithNestedPatternpropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithNestedPatternpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedPatternproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedPatternproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithNestedAdditionalpropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithNestedAdditionalpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedAdditionalproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedAdditionalproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithNestedAdditionalpropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithNestedAdditionalpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedAdditionalproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedAdditionalproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedUnevaluatedproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedUnevaluatedproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedUnevaluatedproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedUnevaluatedproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithAnyofRequestBody: + post: + operationId: postUnevaluatedpropertiesWithAnyofRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithAnyof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAnyof' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithAnyofResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithAnyofResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithAnyof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAnyof' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithOneofRequestBody: + post: + operationId: postUnevaluatedpropertiesWithOneofRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithOneof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithOneof' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithOneofResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithOneofResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithOneof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithOneof' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithNotRequestBody: + post: + operationId: postUnevaluatedpropertiesWithNotRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNot' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNot' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithNotResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithNotResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNot' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNot' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithIfThenElseRequestBody: + post: + operationId: postUnevaluatedpropertiesWithIfThenElseRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElse' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithIfThenElseResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithIfThenElseResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElse' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithIfThenElseThenNotDefinedRequestBody: + post: + operationId: postUnevaluatedpropertiesWithIfThenElseThenNotDefinedRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseThenNotDefined' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseThenNotDefined' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithIfThenElseThenNotDefinedResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithIfThenElseThenNotDefinedResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseThenNotDefined' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseThenNotDefined' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithIfThenElseElseNotDefinedRequestBody: + post: + operationId: postUnevaluatedpropertiesWithIfThenElseElseNotDefinedRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseElseNotDefined' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseElseNotDefined' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithIfThenElseElseNotDefinedResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithIfThenElseElseNotDefinedResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseElseNotDefined' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseElseNotDefined' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithDependentschemasRequestBody: + post: + operationId: postUnevaluatedpropertiesWithDependentschemasRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithDependentschemas' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithDependentschemas' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithDependentschemasResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithDependentschemasResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithDependentschemas' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithDependentschemas' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithBooleanSchemasRequestBody: + post: + operationId: postUnevaluatedpropertiesWithBooleanSchemasRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithBooleanSchemas' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithBooleanSchemas' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithBooleanSchemasResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithBooleanSchemasResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithBooleanSchemas' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithBooleanSchemas' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithRefRequestBody: + post: + operationId: postUnevaluatedpropertiesWithRefRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithRef' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithRef' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithRefResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithRefResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithRef' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithRef' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody: + post: + operationId: postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideResponseBodyForContentTypes: + post: + operationId: postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideRequestBody: + post: + operationId: postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideResponseBodyForContentTypes: + post: + operationId: postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody: + post: + operationId: postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesResponseBodyForContentTypes: + post: + operationId: postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesRequestBody: + post: + operationId: postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesResponseBodyForContentTypes: + post: + operationId: postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postInPlaceApplicatorSiblingsAllofHasUnevaluatedRequestBody: + post: + operationId: postInPlaceApplicatorSiblingsAllofHasUnevaluatedRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InPlaceApplicatorSiblingsAllofHasUnevaluated' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAllofHasUnevaluated' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postInPlaceApplicatorSiblingsAllofHasUnevaluatedResponseBodyForContentTypes: + post: + operationId: postInPlaceApplicatorSiblingsAllofHasUnevaluatedResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/InPlaceApplicatorSiblingsAllofHasUnevaluated' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAllofHasUnevaluated' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postInPlaceApplicatorSiblingsAnyofHasUnevaluatedRequestBody: + post: + operationId: postInPlaceApplicatorSiblingsAnyofHasUnevaluatedRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InPlaceApplicatorSiblingsAnyofHasUnevaluated' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAnyofHasUnevaluated' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postInPlaceApplicatorSiblingsAnyofHasUnevaluatedResponseBodyForContentTypes: + post: + operationId: postInPlaceApplicatorSiblingsAnyofHasUnevaluatedResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/InPlaceApplicatorSiblingsAnyofHasUnevaluated' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAnyofHasUnevaluated' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesSingleCyclicRefRequestBody: + post: + operationId: postUnevaluatedpropertiesSingleCyclicRefRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesSingleCyclicRef' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesSingleCyclicRef' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesSingleCyclicRefResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesSingleCyclicRefResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesSingleCyclicRef' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesSingleCyclicRef' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesRefInsideAllofOneofRequestBody: + post: + operationId: postUnevaluatedpropertiesRefInsideAllofOneofRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesRefInsideAllofOneof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesRefInsideAllofOneof' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesRefInsideAllofOneofResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesRefInsideAllofOneofResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesRefInsideAllofOneof' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesRefInsideAllofOneof' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postDynamicEvalationInsideNestedRefsRequestBody: + post: + operationId: postDynamicEvalationInsideNestedRefsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DynamicEvalationInsideNestedRefs' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DynamicEvalationInsideNestedRefs' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postDynamicEvalationInsideNestedRefsResponseBodyForContentTypes: + post: + operationId: postDynamicEvalationInsideNestedRefsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/DynamicEvalationInsideNestedRefs' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/DynamicEvalationInsideNestedRefs' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody: + post: + operationId: postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNullValuedInstanceProperties' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNullValuedInstanceProperties' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody: + post: + operationId: postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesNotAffectedByPropertynames' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesNotAffectedByPropertynames' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody: + post: + operationId: postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - unevaluatedProperties + /responseBody/postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes: + post: + operationId: postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - unevaluatedProperties + /requestBody/postUniqueitemsValidationRequestBody: + post: + operationId: postUniqueitemsValidationRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsValidation' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - uniqueItems + /responseBody/postUniqueitemsValidationResponseBodyForContentTypes: + post: + operationId: postUniqueitemsValidationResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsValidation' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - uniqueItems + /requestBody/postUniqueitemsWithAnArrayOfItemsRequestBody: + post: + operationId: postUniqueitemsWithAnArrayOfItemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsWithAnArrayOfItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsWithAnArrayOfItems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - uniqueItems + /responseBody/postUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes: + post: + operationId: postUniqueitemsWithAnArrayOfItemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsWithAnArrayOfItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsWithAnArrayOfItems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - uniqueItems + /requestBody/postUniqueitemsFalseValidationRequestBody: + post: + operationId: postUniqueitemsFalseValidationRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsFalseValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsFalseValidation' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - uniqueItems + /responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes: + post: + operationId: postUniqueitemsFalseValidationResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsFalseValidation' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsFalseValidation' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - uniqueItems + /requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody: + post: + operationId: postUniqueitemsFalseWithAnArrayOfItemsRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsFalseWithAnArrayOfItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsFalseWithAnArrayOfItems' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - uniqueItems + /responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes: + post: + operationId: postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/UniqueitemsFalseWithAnArrayOfItems' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/UniqueitemsFalseWithAnArrayOfItems' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - uniqueItems +components: + schemas: + NonAsciiPatternWithAdditionalproperties: + $schema: https://json-schema.org/draft/2020-12/schema + patternProperties: + "^\xE1": {} + additionalProperties: false + AdditionalpropertiesWithSchema: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: {} + bar: {} + additionalProperties: + type: boolean + AdditionalpropertiesCanExistByItself: + $schema: https://json-schema.org/draft/2020-12/schema + additionalProperties: + type: boolean + AdditionalpropertiesAreAllowedByDefault: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: {} + bar: {} + AdditionalpropertiesDoesNotLookInApplicators: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - properties: + foo: {} + additionalProperties: + type: boolean + AdditionalpropertiesWithNullValuedInstanceProperties: + $schema: https://json-schema.org/draft/2020-12/schema + additionalProperties: + type: 'null' + Allof: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - properties: + bar: + type: integer + required: + - bar + - properties: + foo: + type: string + required: + - foo + AllofWithBaseSchema: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + bar: + type: integer + required: + - bar + allOf: + - properties: + foo: + type: string + required: + - foo + - properties: + baz: + type: 'null' + required: + - baz + AllofSimpleTypes: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - maximum: 30 + - minimum: 20 + AllofWithOneEmptySchema: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - {} + AllofWithTwoEmptySchemas: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - {} + - {} + AllofWithTheFirstEmptySchema: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - {} + - type: number + AllofWithTheLastEmptySchema: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - type: number + - {} + NestedAllofToCheckValidationSemantics: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - allOf: + - type: 'null' + AllofCombinedWithAnyofOneof: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - multipleOf: 2 + anyOf: + - multipleOf: 3 + oneOf: + - multipleOf: 5 + Anyof: + $schema: https://json-schema.org/draft/2020-12/schema + anyOf: + - type: integer + - minimum: 2 + AnyofWithBaseSchema: + $schema: https://json-schema.org/draft/2020-12/schema + type: string + anyOf: + - maxLength: 2 + - minLength: 4 + AnyofComplexTypes: + $schema: https://json-schema.org/draft/2020-12/schema + anyOf: + - properties: + bar: + type: integer + required: + - bar + - properties: + foo: + type: string + required: + - foo + AnyofWithOneEmptySchema: + $schema: https://json-schema.org/draft/2020-12/schema + anyOf: + - type: number + - {} + NestedAnyofToCheckValidationSemantics: + $schema: https://json-schema.org/draft/2020-12/schema + anyOf: + - anyOf: + - type: 'null' + ConstNulCharactersInStrings: + $schema: https://json-schema.org/draft/2020-12/schema + const: "hello\0there" + ContainsKeywordValidation: + $schema: https://json-schema.org/draft/2020-12/schema + contains: + minimum: 5 + ItemsContains: + $schema: https://json-schema.org/draft/2020-12/schema + items: + multipleOf: 2 + contains: + multipleOf: 3 + ContainsWithNullInstanceElements: + $schema: https://json-schema.org/draft/2020-12/schema + contains: + type: 'null' + SingleDependency: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + bar: + - foo + EmptyDependents: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + bar: [] + MultipleDependentsRequired: + $schema: https://json-schema.org/draft/2020-12/schema + dependentRequired: + quux: + - foo + - bar + DependentSchemasSingleDependency: + $schema: https://json-schema.org/draft/2020-12/schema + dependentSchemas: + bar: + properties: + foo: + type: integer + bar: + type: integer + DependentSchemasDependenciesWithEscapedCharacters: + $schema: https://json-schema.org/draft/2020-12/schema + dependentSchemas: + "foo\tbar": + minProperties: 4 + foo'bar: + required: + - foo"bar + DependentSchemasDependentSubschemaIncompatibleWithRoot: + properties: + foo: {} + dependentSchemas: + foo: + properties: + bar: {} + additionalProperties: false + SimpleEnumValidation: + $schema: https://json-schema.org/draft/2020-12/schema + enum: + - 1 + - 2 + - 3 + EnumsInProperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + enum: + - foo + bar: + enum: + - bar + required: + - bar + EnumWithEscapedCharacters: + $schema: https://json-schema.org/draft/2020-12/schema + enum: + - 'foo + bar' - "foo\rbar" EnumWithFalseDoesNotMatch0: @@ -5176,124 +6293,490 @@ components: $schema: https://json-schema.org/draft/2020-12/schema properties: foo: - type: 'null' - PropertiesWhoseNamesAreJavascriptObjectPropertyNames: + type: 'null' + PropertiesWhoseNamesAreJavascriptObjectPropertyNames: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + __proto__: + type: number + toString: + properties: + length: + type: string + constructor: + type: number + PropertynamesValidation: + $schema: https://json-schema.org/draft/2020-12/schema + propertyNames: + maxLength: 3 + PropertyNamedRefThatIsNotAReference: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + $ref: + type: string + RequiredValidation: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: {} + bar: {} + required: + - foo + RequiredDefaultValidation: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: {} + RequiredWithEmptyArray: + $schema: https://json-schema.org/draft/2020-12/schema + properties: + foo: {} + required: [] + RequiredWithEscapedCharacters: + $schema: https://json-schema.org/draft/2020-12/schema + required: + - 'foo + + bar' + - foo"bar + - foo\bar + - "foo\rbar" + - "foo\tbar" + - "foo\fbar" + RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames: + $schema: https://json-schema.org/draft/2020-12/schema + required: + - __proto__ + - toString + - constructor + IntegerTypeMatchesIntegers: + $schema: https://json-schema.org/draft/2020-12/schema + type: integer + NumberTypeMatchesNumbers: + $schema: https://json-schema.org/draft/2020-12/schema + type: number + StringTypeMatchesStrings: + $schema: https://json-schema.org/draft/2020-12/schema + type: string + ObjectTypeMatchesObjects: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + ArrayTypeMatchesArrays: + $schema: https://json-schema.org/draft/2020-12/schema + type: array + BooleanTypeMatchesBooleans: + $schema: https://json-schema.org/draft/2020-12/schema + type: boolean + NullTypeMatchesOnlyTheNullObject: + $schema: https://json-schema.org/draft/2020-12/schema + type: 'null' + MultipleTypesCanBeSpecifiedInAnArray: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - integer + - string + TypeAsArrayWithOneItem: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - string + TypeArrayOrObject: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - array + - object + TypeArrayObjectOrNull: + $schema: https://json-schema.org/draft/2020-12/schema + type: + - array + - object + - 'null' + UnevaluateditemsAsSchema: + $schema: https://json-schema.org/draft/2020-12/schema + unevaluatedItems: + type: string + UnevaluateditemsWithItems: + $schema: https://json-schema.org/draft/2020-12/schema + items: + type: number + unevaluatedItems: + type: string + UnevaluateditemsDependsOnMultipleNestedContains: + $schema: https://json-schema.org/draft/2020-12/schema + allOf: + - contains: + multipleOf: 2 + - contains: + multipleOf: 3 + unevaluatedItems: + multipleOf: 5 + UnevaluateditemsWithNullInstanceElements: + $schema: https://json-schema.org/draft/2020-12/schema + unevaluatedItems: + type: 'null' + UnevaluatedpropertiesTrue: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + unevaluatedProperties: true + UnevaluatedpropertiesSchema: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + unevaluatedProperties: + type: string + minLength: 3 + UnevaluatedpropertiesFalse: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + unevaluatedProperties: false + UnevaluatedpropertiesWithAdjacentProperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + unevaluatedProperties: false + UnevaluatedpropertiesWithAdjacentPatternproperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + patternProperties: + ^foo: + type: string + unevaluatedProperties: false + UnevaluatedpropertiesWithAdjacentAdditionalproperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + additionalProperties: true + unevaluatedProperties: false + UnevaluatedpropertiesWithNestedProperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + allOf: + - properties: + bar: + type: string + unevaluatedProperties: false + UnevaluatedpropertiesWithNestedPatternproperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + allOf: + - patternProperties: + ^bar: + type: string + unevaluatedProperties: false + UnevaluatedpropertiesWithNestedAdditionalproperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + allOf: + - additionalProperties: true + unevaluatedProperties: false + UnevaluatedpropertiesWithNestedUnevaluatedproperties: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + allOf: + - unevaluatedProperties: true + unevaluatedProperties: + type: string + maxLength: 2 + UnevaluatedpropertiesWithAnyof: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + anyOf: + - properties: + bar: + const: bar + required: + - bar + - properties: + baz: + const: baz + required: + - baz + - properties: + quux: + const: quux + required: + - quux + unevaluatedProperties: false + UnevaluatedpropertiesWithOneof: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + oneOf: + - properties: + bar: + const: bar + required: + - bar + - properties: + baz: + const: baz + required: + - baz + unevaluatedProperties: false + UnevaluatedpropertiesWithNot: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + not: + not: + properties: + bar: + const: bar + required: + - bar + unevaluatedProperties: false + UnevaluatedpropertiesWithIfThenElse: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + if: + properties: + foo: + const: then + required: + - foo + then: + properties: + bar: + type: string + required: + - bar + else: + properties: + baz: + type: string + required: + - baz + unevaluatedProperties: false + UnevaluatedpropertiesWithIfThenElseThenNotDefined: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + if: + properties: + foo: + const: then + required: + - foo + else: + properties: + baz: + type: string + required: + - baz + unevaluatedProperties: false + UnevaluatedpropertiesWithIfThenElseElseNotDefined: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + if: + properties: + foo: + const: then + required: + - foo + then: + properties: + bar: + type: string + required: + - bar + unevaluatedProperties: false + UnevaluatedpropertiesWithDependentschemas: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + dependentSchemas: + foo: + properties: + bar: + const: bar + required: + - bar + unevaluatedProperties: false + UnevaluatedpropertiesWithBooleanSchemas: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + foo: + type: string + allOf: + - true + unevaluatedProperties: false + UnevaluatedpropertiesWithRef: $schema: https://json-schema.org/draft/2020-12/schema + type: object + $ref: '#/$defs/bar' properties: - __proto__: - type: number - toString: + foo: + type: string + unevaluatedProperties: false + $defs: + bar: properties: - length: + bar: type: string - constructor: - type: number - PropertynamesValidation: - $schema: https://json-schema.org/draft/2020-12/schema - propertyNames: - maxLength: 3 - PropertyNamedRefThatIsNotAReference: + NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: $schema: https://json-schema.org/draft/2020-12/schema + type: object properties: - $ref: + foo: type: string - RequiredValidation: + allOf: + - unevaluatedProperties: true + unevaluatedProperties: false + NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside: $schema: https://json-schema.org/draft/2020-12/schema + type: object properties: - foo: {} - bar: {} - required: - - foo - RequiredDefaultValidation: + foo: + type: string + allOf: + - unevaluatedProperties: false + unevaluatedProperties: true + CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: $schema: https://json-schema.org/draft/2020-12/schema - properties: - foo: {} - RequiredWithEmptyArray: + type: object + allOf: + - properties: + foo: + type: string + unevaluatedProperties: true + - unevaluatedProperties: false + PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties: $schema: https://json-schema.org/draft/2020-12/schema + type: object properties: - foo: {} - required: [] - RequiredWithEscapedCharacters: - $schema: https://json-schema.org/draft/2020-12/schema - required: - - 'foo - - bar' - - foo"bar - - foo\bar - - "foo\rbar" - - "foo\tbar" - - "foo\fbar" - RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames: - $schema: https://json-schema.org/draft/2020-12/schema - required: - - __proto__ - - toString - - constructor - IntegerTypeMatchesIntegers: - $schema: https://json-schema.org/draft/2020-12/schema - type: integer - NumberTypeMatchesNumbers: - $schema: https://json-schema.org/draft/2020-12/schema - type: number - StringTypeMatchesStrings: - $schema: https://json-schema.org/draft/2020-12/schema - type: string - ObjectTypeMatchesObjects: + foo: + type: object + properties: + bar: + type: string + unevaluatedProperties: false + anyOf: + - properties: + foo: + properties: + faz: + type: string + InPlaceApplicatorSiblingsAllofHasUnevaluated: $schema: https://json-schema.org/draft/2020-12/schema type: object - ArrayTypeMatchesArrays: - $schema: https://json-schema.org/draft/2020-12/schema - type: array - BooleanTypeMatchesBooleans: - $schema: https://json-schema.org/draft/2020-12/schema - type: boolean - NullTypeMatchesOnlyTheNullObject: - $schema: https://json-schema.org/draft/2020-12/schema - type: 'null' - MultipleTypesCanBeSpecifiedInAnArray: + allOf: + - properties: + foo: true + unevaluatedProperties: false + anyOf: + - properties: + bar: true + InPlaceApplicatorSiblingsAnyofHasUnevaluated: $schema: https://json-schema.org/draft/2020-12/schema - type: - - integer - - string - TypeAsArrayWithOneItem: + type: object + allOf: + - properties: + foo: true + anyOf: + - properties: + bar: true + unevaluatedProperties: false + UnevaluatedpropertiesSingleCyclicRef: $schema: https://json-schema.org/draft/2020-12/schema - type: - - string - TypeArrayOrObject: + type: object + properties: + x: + $ref: '#' + unevaluatedProperties: false + UnevaluatedpropertiesRefInsideAllofOneof: $schema: https://json-schema.org/draft/2020-12/schema - type: - - array - - object - TypeArrayObjectOrNull: + $defs: + one: + properties: + a: true + two: + required: + - x + properties: + x: true + allOf: + - $ref: '#/$defs/one' + - properties: + b: true + - oneOf: + - $ref: '#/$defs/two' + - required: + - y + properties: + y: true + unevaluatedProperties: false + DynamicEvalationInsideNestedRefs: $schema: https://json-schema.org/draft/2020-12/schema - type: - - array - - object - - 'null' - UnevaluateditemsAsSchema: + $defs: + one: + oneOf: + - $ref: '#/$defs/two' + - required: + - b + properties: + b: true + - required: + - xx + patternProperties: + x: true + - required: + - all + unevaluatedProperties: true + two: + oneOf: + - required: + - c + properties: + c: true + - required: + - d + properties: + d: true + oneOf: + - $ref: '#/$defs/one' + - required: + - a + properties: + a: true + unevaluatedProperties: false + UnevaluatedpropertiesWithNullValuedInstanceProperties: $schema: https://json-schema.org/draft/2020-12/schema - unevaluatedItems: - type: string - UnevaluateditemsWithItems: + unevaluatedProperties: + type: 'null' + UnevaluatedpropertiesNotAffectedByPropertynames: $schema: https://json-schema.org/draft/2020-12/schema - items: + propertyNames: + maxLength: 1 + unevaluatedProperties: type: number - unevaluatedItems: - type: string - UnevaluateditemsDependsOnMultipleNestedContains: - $schema: https://json-schema.org/draft/2020-12/schema - allOf: - - contains: - multipleOf: 2 - - contains: - multipleOf: 3 - unevaluatedItems: - multipleOf: 5 - UnevaluateditemsWithNullInstanceElements: + UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse: $schema: https://json-schema.org/draft/2020-12/schema - unevaluatedItems: - type: 'null' + if: + patternProperties: + foo: + type: string + unevaluatedProperties: false UniqueitemsValidation: $schema: https://json-schema.org/draft/2020-12/schema uniqueItems: true @@ -5317,764 +6800,1052 @@ components: MatchingThePatternIsValid: description: matching the pattern is valid data: - "\xE1rm\xE1nyos": 2 + "\xE1rm\xE1nyos": 2 + valid: true + comment: null + NotMatchingThePatternIsInvalid: + description: not matching the pattern is invalid + data: + "\xE9lm\xE9ny": 2 + valid: false + comment: null + AdditionalpropertiesWithSchema: + NoAdditionalPropertiesIsValid: + description: no additional properties is valid + data: + foo: 1 + valid: true + comment: null + AnAdditionalValidPropertyIsValid: + description: an additional valid property is valid + data: + foo: 1 + bar: 2 + quux: true + valid: true + comment: null + AnAdditionalInvalidPropertyIsInvalid: + description: an additional invalid property is invalid + data: + foo: 1 + bar: 2 + quux: 12 + valid: false + comment: null + AdditionalpropertiesCanExistByItself: + AnAdditionalValidPropertyIsValid: + description: an additional valid property is valid + data: + foo: true + valid: true + comment: null + AnAdditionalInvalidPropertyIsInvalid: + description: an additional invalid property is invalid + data: + foo: 1 + valid: false + comment: null + AdditionalpropertiesAreAllowedByDefault: + AdditionalPropertiesAreAllowed: + description: additional properties are allowed + data: + foo: 1 + bar: 2 + quux: true + valid: true + comment: null + AdditionalpropertiesDoesNotLookInApplicators: + PropertiesDefinedInAllofAreNotExamined: + description: properties defined in allOf are not examined + data: + foo: 1 + bar: true + valid: false + comment: null + AdditionalpropertiesWithNullValuedInstanceProperties: + AllowsNullValues: + description: allows null values + data: + foo: null + valid: true + comment: null + Allof: + Allof: + description: allOf + data: + foo: baz + bar: 2 + valid: true + comment: null + MismatchSecond: + description: mismatch second + data: + foo: baz + valid: false + comment: null + MismatchFirst: + description: mismatch first + data: + bar: 2 + valid: false + comment: null + WrongType: + description: wrong type + data: + foo: baz + bar: quux + valid: false + comment: null + AllofWithBaseSchema: + Valid: + description: valid + data: + foo: quux + bar: 2 + baz: null valid: true comment: null - NotMatchingThePatternIsInvalid: - description: not matching the pattern is invalid + MismatchBaseSchema: + description: mismatch base schema data: - "\xE9lm\xE9ny": 2 + foo: quux + baz: null valid: false comment: null - AdditionalpropertiesWithSchema: - NoAdditionalPropertiesIsValid: - description: no additional properties is valid + MismatchFirstAllof: + description: mismatch first allOf data: - foo: 1 + bar: 2 + baz: null + valid: false + comment: null + MismatchSecondAllof: + description: mismatch second allOf + data: + foo: quux + bar: 2 + valid: false + comment: null + MismatchBoth: + description: mismatch both + data: + bar: 2 + valid: false + comment: null + AllofSimpleTypes: + Valid: + description: valid + data: 25 valid: true comment: null - AnAdditionalValidPropertyIsValid: - description: an additional valid property is valid + MismatchOne: + description: mismatch one + data: 35 + valid: false + comment: null + AllofWithOneEmptySchema: + AnyDataIsValid: + description: any data is valid + data: 1 + valid: true + comment: null + AllofWithTwoEmptySchemas: + AnyDataIsValid: + description: any data is valid + data: 1 + valid: true + comment: null + AllofWithTheFirstEmptySchema: + NumberIsValid: + description: number is valid + data: 1 + valid: true + comment: null + StringIsInvalid: + description: string is invalid + data: foo + valid: false + comment: null + AllofWithTheLastEmptySchema: + NumberIsValid: + description: number is valid + data: 1 + valid: true + comment: null + StringIsInvalid: + description: string is invalid + data: foo + valid: false + comment: null + NestedAllofToCheckValidationSemantics: + NullIsValid: + description: null is valid + data: null + valid: true + comment: null + AnythingNonNullIsInvalid: + description: anything non-null is invalid + data: 123 + valid: false + comment: null + AllofCombinedWithAnyofOneof: + AllofFalseAnyofFalseOneofFalse: + description: 'allOf: false, anyOf: false, oneOf: false' + data: 1 + valid: false + comment: null + AllofFalseAnyofFalseOneofTrue: + description: 'allOf: false, anyOf: false, oneOf: true' + data: 5 + valid: false + comment: null + AllofFalseAnyofTrueOneofFalse: + description: 'allOf: false, anyOf: true, oneOf: false' + data: 3 + valid: false + comment: null + AllofFalseAnyofTrueOneofTrue: + description: 'allOf: false, anyOf: true, oneOf: true' + data: 15 + valid: false + comment: null + AllofTrueAnyofFalseOneofFalse: + description: 'allOf: true, anyOf: false, oneOf: false' + data: 2 + valid: false + comment: null + AllofTrueAnyofFalseOneofTrue: + description: 'allOf: true, anyOf: false, oneOf: true' + data: 10 + valid: false + comment: null + AllofTrueAnyofTrueOneofFalse: + description: 'allOf: true, anyOf: true, oneOf: false' + data: 6 + valid: false + comment: null + AllofTrueAnyofTrueOneofTrue: + description: 'allOf: true, anyOf: true, oneOf: true' + data: 30 + valid: true + comment: null + Anyof: + FirstAnyofValid: + description: first anyOf valid + data: 1 + valid: true + comment: null + SecondAnyofValid: + description: second anyOf valid + data: 2.5 + valid: true + comment: null + BothAnyofValid: + description: both anyOf valid + data: 3 + valid: true + comment: null + NeitherAnyofValid: + description: neither anyOf valid + data: 1.5 + valid: false + comment: null + AnyofWithBaseSchema: + MismatchBaseSchema: + description: mismatch base schema + data: 3 + valid: false + comment: null + OneAnyofValid: + description: one anyOf valid + data: foobar + valid: true + comment: null + BothAnyofInvalid: + description: both anyOf invalid + data: foo + valid: false + comment: null + AnyofComplexTypes: + FirstAnyofValidComplex: + description: first anyOf valid (complex) data: - foo: 1 bar: 2 - quux: true valid: true comment: null - AnAdditionalInvalidPropertyIsInvalid: - description: an additional invalid property is invalid + SecondAnyofValidComplex: + description: second anyOf valid (complex) data: - foo: 1 + foo: baz + valid: true + comment: null + BothAnyofValidComplex: + description: both anyOf valid (complex) + data: + foo: baz bar: 2 - quux: 12 + valid: true + comment: null + NeitherAnyofValidComplex: + description: neither anyOf valid (complex) + data: + foo: 2 + bar: quux valid: false comment: null - AdditionalpropertiesCanExistByItself: - AnAdditionalValidPropertyIsValid: - description: an additional valid property is valid + AnyofWithOneEmptySchema: + StringIsValid: + description: string is valid + data: foo + valid: true + comment: null + NumberIsValid: + description: number is valid + data: 123 + valid: true + comment: null + NestedAnyofToCheckValidationSemantics: + NullIsValid: + description: null is valid + data: null + valid: true + comment: null + AnythingNonNullIsInvalid: + description: anything non-null is invalid + data: 123 + valid: false + comment: null + ConstNulCharactersInStrings: + MatchStringWithNul: + description: match string with nul + data: "hello\0there" + valid: true + comment: null + DoNotMatchStringLackingNul: + description: do not match string lacking nul + data: hellothere + valid: false + comment: null + ContainsKeywordValidation: + ArrayWithItemMatchingSchema5IsValid: + description: array with item matching schema (5) is valid + data: + - 3 + - 4 + - 5 + valid: true + comment: null + ArrayWithItemMatchingSchema6IsValid: + description: array with item matching schema (6) is valid + data: + - 3 + - 4 + - 6 + valid: true + comment: null + ArrayWithTwoItemsMatchingSchema56IsValid: + description: array with two items matching schema (5, 6) is valid data: - foo: true + - 3 + - 4 + - 5 + - 6 valid: true comment: null - AnAdditionalInvalidPropertyIsInvalid: - description: an additional invalid property is invalid + ArrayWithoutItemsMatchingSchemaIsInvalid: + description: array without items matching schema is invalid data: - foo: 1 + - 2 + - 3 + - 4 valid: false comment: null - AdditionalpropertiesAreAllowedByDefault: - AdditionalPropertiesAreAllowed: - description: additional properties are allowed - data: - foo: 1 - bar: 2 - quux: true - valid: true - comment: null - AdditionalpropertiesDoesNotLookInApplicators: - PropertiesDefinedInAllofAreNotExamined: - description: properties defined in allOf are not examined - data: - foo: 1 - bar: true + EmptyArrayIsInvalid: + description: empty array is invalid + data: [] valid: false comment: null - AdditionalpropertiesWithNullValuedInstanceProperties: - AllowsNullValues: - description: allows null values - data: - foo: null + NotArrayIsValid: + description: not array is valid + data: {} valid: true comment: null - Allof: - Allof: - description: allOf + ItemsContains: + MatchesItemsDoesNotMatchContains: + description: matches items, does not match contains data: - foo: baz - bar: 2 - valid: true + - 2 + - 4 + - 8 + valid: false comment: null - MismatchSecond: - description: mismatch second + DoesNotMatchItemsMatchesContains: + description: does not match items, matches contains data: - foo: baz + - 3 + - 6 + - 9 valid: false comment: null - MismatchFirst: - description: mismatch first + MatchesBothItemsAndContains: + description: matches both items and contains data: - bar: 2 - valid: false + - 6 + - 12 + valid: true comment: null - WrongType: - description: wrong type + MatchesNeitherItemsNorContains: + description: matches neither items nor contains data: - foo: baz - bar: quux + - 1 + - 5 valid: false comment: null - AllofWithBaseSchema: - Valid: - description: valid + ContainsWithNullInstanceElements: + AllowsNullItems: + description: allows null items data: - foo: quux - bar: 2 - baz: null + - null valid: true comment: null - MismatchBaseSchema: - description: mismatch base schema + SingleDependency: + Neither: + description: neither + data: {} + valid: true + comment: null + Nondependant: + description: nondependant data: - foo: quux - baz: null - valid: false + foo: 1 + valid: true comment: null - MismatchFirstAllof: - description: mismatch first allOf + WithDependency: + description: with dependency data: + foo: 1 bar: 2 - baz: null - valid: false + valid: true comment: null - MismatchSecondAllof: - description: mismatch second allOf + MissingDependency: + description: missing dependency data: - foo: quux bar: 2 valid: false comment: null - MismatchBoth: - description: mismatch both + IgnoresArrays: + description: ignores arrays data: - bar: 2 - valid: false + - bar + valid: true comment: null - AllofSimpleTypes: - Valid: - description: valid - data: 25 + IgnoresStrings: + description: ignores strings + data: foobar valid: true comment: null - MismatchOne: - description: mismatch one - data: 35 - valid: false + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true comment: null - AllofWithOneEmptySchema: - AnyDataIsValid: - description: any data is valid - data: 1 + EmptyDependents: + EmptyObject: + description: empty object + data: {} valid: true comment: null - AllofWithTwoEmptySchemas: - AnyDataIsValid: - description: any data is valid - data: 1 + ObjectWithOneProperty: + description: object with one property + data: + bar: 2 valid: true comment: null - AllofWithTheFirstEmptySchema: - NumberIsValid: - description: number is valid + NonObjectIsValid: + description: non-object is valid data: 1 valid: true comment: null - StringIsInvalid: - description: string is invalid - data: foo - valid: false - comment: null - AllofWithTheLastEmptySchema: - NumberIsValid: - description: number is valid - data: 1 + MultipleDependentsRequired: + Neither: + description: neither + data: {} valid: true comment: null - StringIsInvalid: - description: string is invalid - data: foo - valid: false + Nondependants: + description: nondependants + data: + foo: 1 + bar: 2 + valid: true comment: null - NestedAllofToCheckValidationSemantics: - NullIsValid: - description: null is valid - data: null + WithDependencies: + description: with dependencies + data: + foo: 1 + bar: 2 + quux: 3 valid: true comment: null - AnythingNonNullIsInvalid: - description: anything non-null is invalid - data: 123 + MissingDependency: + description: missing dependency + data: + foo: 1 + quux: 2 valid: false comment: null - AllofCombinedWithAnyofOneof: - AllofFalseAnyofFalseOneofFalse: - description: 'allOf: false, anyOf: false, oneOf: false' - data: 1 + MissingOtherDependency: + description: missing other dependency + data: + bar: 1 + quux: 2 valid: false comment: null - AllofFalseAnyofFalseOneofTrue: - description: 'allOf: false, anyOf: false, oneOf: true' - data: 5 + MissingBothDependencies: + description: missing both dependencies + data: + quux: 1 valid: false comment: null - AllofFalseAnyofTrueOneofFalse: - description: 'allOf: false, anyOf: true, oneOf: false' - data: 3 - valid: false + DependentSchemasSingleDependency: + Valid: + description: valid + data: + foo: 1 + bar: 2 + valid: true comment: null - AllofFalseAnyofTrueOneofTrue: - description: 'allOf: false, anyOf: true, oneOf: true' - data: 15 - valid: false + NoDependency: + description: no dependency + data: + foo: quux + valid: true comment: null - AllofTrueAnyofFalseOneofFalse: - description: 'allOf: true, anyOf: false, oneOf: false' - data: 2 + WrongType: + description: wrong type + data: + foo: quux + bar: 2 valid: false comment: null - AllofTrueAnyofFalseOneofTrue: - description: 'allOf: true, anyOf: false, oneOf: true' - data: 10 + WrongTypeOther: + description: wrong type other + data: + foo: 2 + bar: quux valid: false - comment: null - AllofTrueAnyofTrueOneofFalse: - description: 'allOf: true, anyOf: true, oneOf: false' - data: 6 + comment: null + WrongTypeBoth: + description: wrong type both + data: + foo: quux + bar: quux valid: false comment: null - AllofTrueAnyofTrueOneofTrue: - description: 'allOf: true, anyOf: true, oneOf: true' - data: 30 + IgnoresArrays: + description: ignores arrays + data: + - bar valid: true comment: null - Anyof: - FirstAnyofValid: - description: first anyOf valid - data: 1 + IgnoresStrings: + description: ignores strings + data: foobar valid: true comment: null - SecondAnyofValid: - description: second anyOf valid - data: 2.5 + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - BothAnyofValid: - description: both anyOf valid - data: 3 + DependentSchemasDependenciesWithEscapedCharacters: + QuotedTab: + description: quoted tab + data: + "foo\tbar": 1 + a: 2 + b: 3 + c: 4 valid: true comment: null - NeitherAnyofValid: - description: neither anyOf valid - data: 1.5 + QuotedQuote: + description: quoted quote + data: + foo'bar: + foo"bar: 1 valid: false comment: null - AnyofWithBaseSchema: - MismatchBaseSchema: - description: mismatch base schema - data: 3 + QuotedTabInvalidUnderDependentSchema: + description: quoted tab invalid under dependent schema + data: + "foo\tbar": 1 + a: 2 valid: false comment: null - OneAnyofValid: - description: one anyOf valid - data: foobar - valid: true - comment: null - BothAnyofInvalid: - description: both anyOf invalid - data: foo + QuotedQuoteInvalidUnderDependentSchema: + description: quoted quote invalid under dependent schema + data: + foo'bar: 1 valid: false comment: null - AnyofComplexTypes: - FirstAnyofValidComplex: - description: first anyOf valid (complex) + DependentSchemasDependentSubschemaIncompatibleWithRoot: + MatchesRoot: + description: matches root data: - bar: 2 - valid: true + foo: 1 + valid: false comment: null - SecondAnyofValidComplex: - description: second anyOf valid (complex) + MatchesDependency: + description: matches dependency data: - foo: baz + bar: 1 valid: true comment: null - BothAnyofValidComplex: - description: both anyOf valid (complex) + MatchesBoth: + description: matches both data: - foo: baz + foo: 1 bar: 2 - valid: true - comment: null - NeitherAnyofValidComplex: - description: neither anyOf valid (complex) - data: - foo: 2 - bar: quux valid: false comment: null - AnyofWithOneEmptySchema: - StringIsValid: - description: string is valid - data: foo - valid: true - comment: null - NumberIsValid: - description: number is valid - data: 123 + NoDependency: + description: no dependency + data: + baz: 1 valid: true comment: null - NestedAnyofToCheckValidationSemantics: - NullIsValid: - description: null is valid - data: null + SimpleEnumValidation: + OneOfTheEnumIsValid: + description: one of the enum is valid + data: 1 valid: true comment: null - AnythingNonNullIsInvalid: - description: anything non-null is invalid - data: 123 + SomethingElseIsInvalid: + description: something else is invalid + data: 4 valid: false comment: null - ConstNulCharactersInStrings: - MatchStringWithNul: - description: match string with nul - data: "hello\0there" + EnumsInProperties: + BothPropertiesAreValid: + description: both properties are valid + data: + foo: foo + bar: bar valid: true comment: null - DoNotMatchStringLackingNul: - description: do not match string lacking nul - data: hellothere + WrongFooValue: + description: wrong foo value + data: + foo: foot + bar: bar valid: false comment: null - ContainsKeywordValidation: - ArrayWithItemMatchingSchema5IsValid: - description: array with item matching schema (5) is valid + WrongBarValue: + description: wrong bar value data: - - 3 - - 4 - - 5 - valid: true + foo: foo + bar: bart + valid: false comment: null - ArrayWithItemMatchingSchema6IsValid: - description: array with item matching schema (6) is valid + MissingOptionalPropertyIsValid: + description: missing optional property is valid data: - - 3 - - 4 - - 6 + bar: bar valid: true comment: null - ArrayWithTwoItemsMatchingSchema56IsValid: - description: array with two items matching schema (5, 6) is valid + MissingRequiredPropertyIsInvalid: + description: missing required property is invalid data: - - 3 - - 4 - - 5 - - 6 + foo: foo + valid: false + comment: null + MissingAllPropertiesIsInvalid: + description: missing all properties is invalid + data: {} + valid: false + comment: null + EnumWithEscapedCharacters: + Member1IsValid: + description: member 1 is valid + data: 'foo + + bar' valid: true comment: null - ArrayWithoutItemsMatchingSchemaIsInvalid: - description: array without items matching schema is invalid - data: - - 2 - - 3 - - 4 + Member2IsValid: + description: member 2 is valid + data: "foo\rbar" + valid: true + comment: null + AnotherStringIsInvalid: + description: another string is invalid + data: abc valid: false comment: null - EmptyArrayIsInvalid: - description: empty array is invalid - data: [] + EnumWithFalseDoesNotMatch0: + FalseIsValid: + description: false is valid + data: false + valid: true + comment: null + IntegerZeroIsInvalid: + description: integer zero is invalid + data: 0 valid: false comment: null - NotArrayIsValid: - description: not array is valid - data: {} + FloatZeroIsInvalid: + description: float zero is invalid + data: 0.0 + valid: false + comment: null + EnumWithTrueDoesNotMatch1: + TrueIsValid: + description: true is valid + data: true valid: true comment: null - ItemsContains: - MatchesItemsDoesNotMatchContains: - description: matches items, does not match contains - data: - - 2 - - 4 - - 8 + IntegerOneIsInvalid: + description: integer one is invalid + data: 1 valid: false comment: null - DoesNotMatchItemsMatchesContains: - description: does not match items, matches contains - data: - - 3 - - 6 - - 9 + FloatOneIsInvalid: + description: float one is invalid + data: 1.0 valid: false comment: null - MatchesBothItemsAndContains: - description: matches both items and contains - data: - - 6 - - 12 + EnumWith0DoesNotMatchFalse: + FalseIsInvalid: + description: false is invalid + data: false + valid: false + comment: null + IntegerZeroIsValid: + description: integer zero is valid + data: 0 + valid: true + comment: null + FloatZeroIsValid: + description: float zero is valid + data: 0.0 valid: true comment: null - MatchesNeitherItemsNorContains: - description: matches neither items nor contains - data: - - 1 - - 5 + EnumWith1DoesNotMatchTrue: + TrueIsInvalid: + description: true is invalid + data: true valid: false comment: null - ContainsWithNullInstanceElements: - AllowsNullItems: - description: allows null items - data: - - null - valid: true - comment: null - SingleDependency: - Neither: - description: neither - data: {} + IntegerOneIsValid: + description: integer one is valid + data: 1 valid: true comment: null - Nondependant: - description: nondependant - data: - foo: 1 + FloatOneIsValid: + description: float one is valid + data: 1.0 valid: true comment: null - WithDependency: - description: with dependency - data: - foo: 1 - bar: 2 + NulCharactersInStrings: + MatchStringWithNul: + description: match string with nul + data: "hello\0there" valid: true comment: null - MissingDependency: - description: missing dependency - data: - bar: 2 + DoNotMatchStringLackingNul: + description: do not match string lacking nul + data: hellothere valid: false comment: null - IgnoresArrays: - description: ignores arrays - data: - - bar - valid: true - comment: null - IgnoresStrings: - description: ignores strings - data: foobar + EmailFormat: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 valid: true comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 valid: true comment: null - EmptyDependents: - EmptyObject: - description: empty object + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects data: {} valid: true comment: null - ObjectWithOneProperty: - description: object with one property - data: - bar: 2 + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] valid: true comment: null - NonObjectIsValid: - description: non-object is valid - data: 1 + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans + data: false valid: true comment: null - MultipleDependentsRequired: - Neither: - description: neither - data: {} + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null valid: true comment: null - Nondependants: - description: nondependants - data: - foo: 1 - bar: 2 + InvalidEmailStringIsOnlyAnAnnotationByDefault: + description: invalid email string is only an annotation by default + data: '2962' valid: true comment: null - WithDependencies: - description: with dependencies - data: - foo: 1 - bar: 2 - quux: 3 + IdnEmailFormat: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 valid: true comment: null - MissingDependency: - description: missing dependency - data: - foo: 1 - quux: 2 - valid: false + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 + valid: true comment: null - MissingOtherDependency: - description: missing other dependency - data: - bar: 1 - quux: 2 - valid: false + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} + valid: true comment: null - MissingBothDependencies: - description: missing both dependencies - data: - quux: 1 - valid: false + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] + valid: true comment: null - DependentSchemasSingleDependency: - Valid: - description: valid - data: - foo: 1 - bar: 2 + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans + data: false valid: true comment: null - NoDependency: - description: no dependency - data: - foo: quux + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null valid: true comment: null - WrongType: - description: wrong type - data: - foo: quux - bar: 2 - valid: false + InvalidIdnEmailStringIsOnlyAnAnnotationByDefault: + description: invalid idn-email string is only an annotation by default + data: '2962' + valid: true comment: null - WrongTypeOther: - description: wrong type other - data: - foo: 2 - bar: quux - valid: false + RegexFormat: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 + valid: true comment: null - WrongTypeBoth: - description: wrong type both - data: - foo: quux - bar: quux - valid: false + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 + valid: true comment: null - IgnoresArrays: - description: ignores arrays - data: - - bar + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} valid: true comment: null - IgnoresStrings: - description: ignores strings - data: foobar + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] valid: true comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans + data: false valid: true comment: null - DependentSchemasDependenciesWithEscapedCharacters: - QuotedTab: - description: quoted tab - data: - "foo\tbar": 1 - a: 2 - b: 3 - c: 4 + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null valid: true comment: null - QuotedQuote: - description: quoted quote - data: - foo'bar: - foo"bar: 1 - valid: false + InvalidRegexStringIsOnlyAnAnnotationByDefault: + description: invalid regex string is only an annotation by default + data: ^(abc] + valid: true comment: null - QuotedTabInvalidUnderDependentSchema: - description: quoted tab invalid under dependent schema - data: - "foo\tbar": 1 - a: 2 - valid: false + Ipv4Format: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 + valid: true comment: null - QuotedQuoteInvalidUnderDependentSchema: - description: quoted quote invalid under dependent schema - data: - foo'bar: 1 - valid: false + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 + valid: true comment: null - DependentSchemasDependentSubschemaIncompatibleWithRoot: - MatchesRoot: - description: matches root - data: - foo: 1 - valid: false + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} + valid: true comment: null - MatchesDependency: - description: matches dependency - data: - bar: 1 + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] valid: true comment: null - MatchesBoth: - description: matches both - data: - foo: 1 - bar: 2 - valid: false + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans + data: false + valid: true comment: null - NoDependency: - description: no dependency - data: - baz: 1 + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null valid: true comment: null - SimpleEnumValidation: - OneOfTheEnumIsValid: - description: one of the enum is valid - data: 1 + InvalidIpv4StringIsOnlyAnAnnotationByDefault: + description: invalid ipv4 string is only an annotation by default + data: 127.0.0.0.1 valid: true comment: null - SomethingElseIsInvalid: - description: something else is invalid - data: 4 - valid: false + Ipv6Format: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 + valid: true comment: null - EnumsInProperties: - BothPropertiesAreValid: - description: both properties are valid - data: - foo: foo - bar: bar + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 valid: true comment: null - WrongFooValue: - description: wrong foo value - data: - foo: foot - bar: bar - valid: false + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} + valid: true comment: null - WrongBarValue: - description: wrong bar value - data: - foo: foo - bar: bart - valid: false + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] + valid: true comment: null - MissingOptionalPropertyIsValid: - description: missing optional property is valid - data: - bar: bar + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans + data: false valid: true comment: null - MissingRequiredPropertyIsInvalid: - description: missing required property is invalid - data: - foo: foo - valid: false + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null + valid: true comment: null - MissingAllPropertiesIsInvalid: - description: missing all properties is invalid - data: {} - valid: false + InvalidIpv6StringIsOnlyAnAnnotationByDefault: + description: invalid ipv6 string is only an annotation by default + data: '12345::' + valid: true comment: null - EnumWithEscapedCharacters: - Member1IsValid: - description: member 1 is valid - data: 'foo - - bar' + IdnHostnameFormat: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 valid: true comment: null - Member2IsValid: - description: member 2 is valid - data: "foo\rbar" + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 valid: true comment: null - AnotherStringIsInvalid: - description: another string is invalid - data: abc - valid: false + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} + valid: true comment: null - EnumWithFalseDoesNotMatch0: - FalseIsValid: - description: false is valid + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] + valid: true + comment: null + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans data: false valid: true comment: null - IntegerZeroIsInvalid: - description: integer zero is invalid - data: 0 - valid: false + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null + valid: true comment: null - FloatZeroIsInvalid: - description: float zero is invalid - data: 0.0 - valid: false + InvalidIdnHostnameStringIsOnlyAnAnnotationByDefault: + description: invalid idn-hostname string is only an annotation by default + data: "\u302E\uC2E4\uB840.\uD14C\uC2A4\uD2B8" + valid: true comment: null - EnumWithTrueDoesNotMatch1: - TrueIsValid: - description: true is valid - data: true + HostnameFormat: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 valid: true comment: null - IntegerOneIsInvalid: - description: integer one is invalid - data: 1 - valid: false + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 + valid: true comment: null - FloatOneIsInvalid: - description: float one is invalid - data: 1.0 - valid: false + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} + valid: true comment: null - EnumWith0DoesNotMatchFalse: - FalseIsInvalid: - description: false is invalid + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] + valid: true + comment: null + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans data: false - valid: false + valid: true comment: null - IntegerZeroIsValid: - description: integer zero is valid - data: 0 + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null valid: true comment: null - FloatZeroIsValid: - description: float zero is valid - data: 0.0 + InvalidHostnameStringIsOnlyAnAnnotationByDefault: + description: invalid hostname string is only an annotation by default + data: -a-host-name-that-starts-with-- valid: true comment: null - EnumWith1DoesNotMatchTrue: - TrueIsInvalid: - description: true is invalid - data: true - valid: false + DateFormat: + AllStringFormatsIgnoreIntegers: + description: all string formats ignore integers + data: 12 + valid: true comment: null - IntegerOneIsValid: - description: integer one is valid - data: 1 + AllStringFormatsIgnoreFloats: + description: all string formats ignore floats + data: 13.7 valid: true comment: null - FloatOneIsValid: - description: float one is valid - data: 1.0 + AllStringFormatsIgnoreObjects: + description: all string formats ignore objects + data: {} valid: true comment: null - NulCharactersInStrings: - MatchStringWithNul: - description: match string with nul - data: "hello\0there" + AllStringFormatsIgnoreArrays: + description: all string formats ignore arrays + data: [] valid: true comment: null - DoNotMatchStringLackingNul: - description: do not match string lacking nul - data: hellothere - valid: false + AllStringFormatsIgnoreBooleans: + description: all string formats ignore booleans + data: false + valid: true comment: null - EmailFormat: + AllStringFormatsIgnoreNulls: + description: all string formats ignore nulls + data: null + valid: true + comment: null + InvalidDateStringIsOnlyAnAnnotationByDefault: + description: invalid date string is only an annotation by default + data: 06/19/1963 + valid: true + comment: null + DateTimeFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6105,12 +7876,12 @@ components: data: null valid: true comment: null - InvalidEmailStringIsOnlyAnAnnotationByDefault: - description: invalid email string is only an annotation by default - data: '2962' + InvalidDateTimeStringIsOnlyAnAnnotationByDefault: + description: invalid date-time string is only an annotation by default + data: '1990-02-31T15:59:60.123-08:00' valid: true comment: null - IdnEmailFormat: + TimeFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6141,12 +7912,12 @@ components: data: null valid: true comment: null - InvalidIdnEmailStringIsOnlyAnAnnotationByDefault: - description: invalid idn-email string is only an annotation by default - data: '2962' + InvalidTimeStringIsOnlyAnAnnotationByDefault: + description: invalid time string is only an annotation by default + data: 08:30:06 PST valid: true comment: null - RegexFormat: + JsonPointerFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6177,12 +7948,12 @@ components: data: null valid: true comment: null - InvalidRegexStringIsOnlyAnAnnotationByDefault: - description: invalid regex string is only an annotation by default - data: ^(abc] + InvalidJsonPointerStringIsOnlyAnAnnotationByDefault: + description: invalid json-pointer string is only an annotation by default + data: /foo/bar~ valid: true comment: null - Ipv4Format: + RelativeJsonPointerFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6213,12 +7984,13 @@ components: data: null valid: true comment: null - InvalidIpv4StringIsOnlyAnAnnotationByDefault: - description: invalid ipv4 string is only an annotation by default - data: 127.0.0.0.1 + InvalidRelativeJsonPointerStringIsOnlyAnAnnotationByDefault: + description: invalid relative-json-pointer string is only an annotation by + default + data: /foo/bar valid: true comment: null - Ipv6Format: + IriFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6249,12 +8021,12 @@ components: data: null valid: true comment: null - InvalidIpv6StringIsOnlyAnAnnotationByDefault: - description: invalid ipv6 string is only an annotation by default - data: '12345::' + InvalidIriStringIsOnlyAnAnnotationByDefault: + description: invalid iri string is only an annotation by default + data: http://2001:0db8:85a3:0000:0000:8a2e:0370:7334 valid: true comment: null - IdnHostnameFormat: + IriReferenceFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6285,12 +8057,12 @@ components: data: null valid: true comment: null - InvalidIdnHostnameStringIsOnlyAnAnnotationByDefault: - description: invalid idn-hostname string is only an annotation by default - data: "\u302E\uC2E4\uB840.\uD14C\uC2A4\uD2B8" + InvalidIriReferenceStringIsOnlyAnAnnotationByDefault: + description: invalid iri-reference string is only an annotation by default + data: "\\\\WINDOWS\\fil\xEB\xDF\xE5r\xE9" valid: true comment: null - HostnameFormat: + UriFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6321,12 +8093,12 @@ components: data: null valid: true comment: null - InvalidHostnameStringIsOnlyAnAnnotationByDefault: - description: invalid hostname string is only an annotation by default - data: -a-host-name-that-starts-with-- + InvalidUriStringIsOnlyAnAnnotationByDefault: + description: invalid uri string is only an annotation by default + data: //foo.bar/?baz=qux#quux valid: true comment: null - DateFormat: + UriReferenceFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6357,12 +8129,12 @@ components: data: null valid: true comment: null - InvalidDateStringIsOnlyAnAnnotationByDefault: - description: invalid date string is only an annotation by default - data: 06/19/1963 + InvalidUriReferenceStringIsOnlyAnAnnotationByDefault: + description: invalid uri-reference string is only an annotation by default + data: \\WINDOWS\fileshare valid: true comment: null - DateTimeFormat: + UriTemplateFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6393,12 +8165,12 @@ components: data: null valid: true comment: null - InvalidDateTimeStringIsOnlyAnAnnotationByDefault: - description: invalid date-time string is only an annotation by default - data: '1990-02-31T15:59:60.123-08:00' + InvalidUriTemplateStringIsOnlyAnAnnotationByDefault: + description: invalid uri-template string is only an annotation by default + data: http://example.com/dictionary/{term:1}/{term valid: true comment: null - TimeFormat: + UuidFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6429,12 +8201,12 @@ components: data: null valid: true comment: null - InvalidTimeStringIsOnlyAnAnnotationByDefault: - description: invalid time string is only an annotation by default - data: 08:30:06 PST + InvalidUuidStringIsOnlyAnAnnotationByDefault: + description: invalid uuid string is only an annotation by default + data: 2eb8aa08-aa98-11ea-b4aa-73b441d1638 valid: true comment: null - JsonPointerFormat: + DurationFormat: AllStringFormatsIgnoreIntegers: description: all string formats ignore integers data: 12 @@ -6465,1942 +8237,2365 @@ components: data: null valid: true comment: null - InvalidJsonPointerStringIsOnlyAnAnnotationByDefault: - description: invalid json-pointer string is only an annotation by default - data: /foo/bar~ + InvalidDurationStringIsOnlyAnAnnotationByDefault: + description: invalid duration string is only an annotation by default + data: PT1D valid: true comment: null - RelativeJsonPointerFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + NestedItems: + ValidNestedArray: + description: valid nested array + data: + - - - - 1 + - - - 2 + - - 3 + - - - - 4 + - - 5 + - - 6 valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + NestedArrayWithInvalidType: + description: nested array with invalid type + data: + - - - - '1' + - - - 2 + - - 3 + - - - - 4 + - - 5 + - - 6 + valid: false + comment: null + NotDeepEnough: + description: not deep enough + data: + - - - 1 + - - 2 + - - 3 + - - - 4 + - - 5 + - - 6 + valid: false + comment: null + ItemsDoesNotLookInApplicatorsValidCase: + PrefixitemsInAllofDoesNotConstrainItemsInvalidCase: + description: prefixItems in allOf does not constrain items, invalid case + data: + - 3 + - 5 + valid: false + comment: null + PrefixitemsInAllofDoesNotConstrainItemsValidCase: + description: prefixItems in allOf does not constrain items, valid case + data: + - 5 + - 5 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects - data: {} + PrefixitemsValidationAdjustsTheStartingIndexForItems: + ValidItems: + description: valid items + data: + - x + - 2 + - 3 valid: true comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays - data: [] + WrongTypeOfSecondItem: + description: wrong type of second item + data: + - x + - y + valid: false + comment: null + ItemsWithNullInstanceElements: + AllowsNullElements: + description: allows null elements + data: + - null + valid: true + comment: null + MaxcontainsWithoutContainsIsIgnored: + OneItemValidAgainstLoneMaxcontains: + description: one item valid against lone maxContains + data: + - 1 + valid: true + comment: null + TwoItemsStillValidAgainstLoneMaxcontains: + description: two items still valid against lone maxContains + data: + - 1 + - 2 + valid: true + comment: null + MaximumValidation: + BelowTheMaximumIsValid: + description: below the maximum is valid + data: 2.6 + valid: true + comment: null + BoundaryPointIsValid: + description: boundary point is valid + data: 3.0 + valid: true + comment: null + AboveTheMaximumIsInvalid: + description: above the maximum is invalid + data: 3.5 + valid: false + comment: null + IgnoresNonNumbers: + description: ignores non-numbers + data: x + valid: true + comment: null + MaximumValidationWithUnsignedInteger: + BelowTheMaximumIsInvalid: + description: below the maximum is invalid + data: 299.97 + valid: true + comment: null + BoundaryPointIntegerIsValid: + description: boundary point integer is valid + data: 300 + valid: true + comment: null + BoundaryPointFloatIsValid: + description: boundary point float is valid + data: 300.0 + valid: true + comment: null + AboveTheMaximumIsInvalid: + description: above the maximum is invalid + data: 300.5 + valid: false + comment: null + MaxitemsValidation: + ShorterIsValid: + description: shorter is valid + data: + - 1 + valid: true + comment: null + ExactLengthIsValid: + description: exact length is valid + data: + - 1 + - 2 + valid: true + comment: null + TooLongIsInvalid: + description: too long is invalid + data: + - 1 + - 2 + - 3 + valid: false + comment: null + IgnoresNonArrays: + description: ignores non-arrays + data: foobar + valid: true + comment: null + MaxlengthValidation: + ShorterIsValid: + description: shorter is valid + data: f + valid: true + comment: null + ExactLengthIsValid: + description: exact length is valid + data: fo + valid: true + comment: null + TooLongIsInvalid: + description: too long is invalid + data: foo + valid: false + comment: null + IgnoresNonStrings: + description: ignores non-strings + data: 100 + valid: true + comment: null + TwoSupplementaryUnicodeCodePointsIsLongEnough: + description: two supplementary Unicode code points is long enough + data: "\U0001F4A9\U0001F4A9" valid: true comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false + MaxpropertiesValidation: + ShorterIsValid: + description: shorter is valid + data: + foo: 1 valid: true comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null + ExactLengthIsValid: + description: exact length is valid + data: + foo: 1 + bar: 2 valid: true comment: null - InvalidRelativeJsonPointerStringIsOnlyAnAnnotationByDefault: - description: invalid relative-json-pointer string is only an annotation by - default - data: /foo/bar + TooLongIsInvalid: + description: too long is invalid + data: + foo: 1 + bar: 2 + baz: 3 + valid: false + comment: null + IgnoresArrays: + description: ignores arrays + data: + - 1 + - 2 + - 3 valid: true comment: null - IriFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + IgnoresStrings: + description: ignores strings + data: foobar valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects + Maxproperties0MeansTheObjectIsEmpty: + NoPropertiesIsValid: + description: no properties is valid data: {} valid: true comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays - data: [] - valid: true + OnePropertyIsInvalid: + description: one property is invalid + data: + foo: 1 + valid: false comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false + MinimumValidation: + AboveTheMinimumIsValid: + description: above the minimum is valid + data: 2.6 valid: true comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null + BoundaryPointIsValid: + description: boundary point is valid + data: 1.1 valid: true comment: null - InvalidIriStringIsOnlyAnAnnotationByDefault: - description: invalid iri string is only an annotation by default - data: http://2001:0db8:85a3:0000:0000:8a2e:0370:7334 - valid: true + BelowTheMinimumIsInvalid: + description: below the minimum is invalid + data: 0.6 + valid: false comment: null - IriReferenceFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + IgnoresNonNumbers: + description: ignores non-numbers + data: x valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + MinimumValidationWithSignedInteger: + NegativeAboveTheMinimumIsValid: + description: negative above the minimum is valid + data: -1 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects - data: {} + PositiveAboveTheMinimumIsValid: + description: positive above the minimum is valid + data: 0 valid: true comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays - data: [] + BoundaryPointIsValid: + description: boundary point is valid + data: -2 valid: true comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false + BoundaryPointWithFloatIsValid: + description: boundary point with float is valid + data: -2.0 valid: true comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null + FloatBelowTheMinimumIsInvalid: + description: float below the minimum is invalid + data: -2.0001 + valid: false + comment: null + IntBelowTheMinimumIsInvalid: + description: int below the minimum is invalid + data: -3 + valid: false + comment: null + IgnoresNonNumbers: + description: ignores non-numbers + data: x valid: true comment: null - InvalidIriReferenceStringIsOnlyAnAnnotationByDefault: - description: invalid iri-reference string is only an annotation by default - data: "\\\\WINDOWS\\fil\xEB\xDF\xE5r\xE9" + MincontainsWithoutContainsIsIgnored: + OneItemValidAgainstLoneMincontains: + description: one item valid against lone minContains + data: + - 1 valid: true comment: null - UriFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + ZeroItemsStillValidAgainstLoneMincontains: + description: zero items still valid against lone minContains + data: [] valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + MinitemsValidation: + LongerIsValid: + description: longer is valid + data: + - 1 + - 2 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects - data: {} + ExactLengthIsValid: + description: exact length is valid + data: + - 1 valid: true comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays + TooShortIsInvalid: + description: too short is invalid data: [] + valid: false + comment: null + IgnoresNonArrays: + description: ignores non-arrays + data: '' valid: true comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false + MinlengthValidation: + LongerIsValid: + description: longer is valid + data: foo valid: true comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null + ExactLengthIsValid: + description: exact length is valid + data: fo valid: true comment: null - InvalidUriStringIsOnlyAnAnnotationByDefault: - description: invalid uri string is only an annotation by default - data: //foo.bar/?baz=qux#quux + TooShortIsInvalid: + description: too short is invalid + data: f + valid: false + comment: null + IgnoresNonStrings: + description: ignores non-strings + data: 1 valid: true comment: null - UriReferenceFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + OneSupplementaryUnicodeCodePointIsNotLongEnough: + description: one supplementary Unicode code point is not long enough + data: "\U0001F4A9" + valid: false + comment: null + MinpropertiesValidation: + LongerIsValid: + description: longer is valid + data: + foo: 1 + bar: 2 valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + ExactLengthIsValid: + description: exact length is valid + data: + foo: 1 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects + TooShortIsInvalid: + description: too short is invalid data: {} - valid: true + valid: false comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays + IgnoresArrays: + description: ignores arrays data: [] valid: true comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false + IgnoresStrings: + description: ignores strings + data: '' valid: true comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - InvalidUriReferenceStringIsOnlyAnAnnotationByDefault: - description: invalid uri-reference string is only an annotation by default - data: \\WINDOWS\fileshare + ByInt: + IntByInt: + description: int by int + data: 10 + valid: true + comment: null + IntByIntFail: + description: int by int fail + data: 7 + valid: false + comment: null + IgnoresNonNumbers: + description: ignores non-numbers + data: foo valid: true comment: null - UriTemplateFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + ByNumber: + ZeroIsMultipleOfAnything: + description: zero is multiple of anything + data: 0 valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + 45IsMultipleOf15: + description: 4.5 is multiple of 1.5 + data: 4.5 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects - data: {} - valid: true + 35IsNotMultipleOf15: + description: 35 is not multiple of 1.5 + data: 35 + valid: false comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays - data: [] + BySmallNumber: + 00075IsMultipleOf00001: + description: 0.0075 is multiple of 0.0001 + data: 0.0075 valid: true comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false - valid: true + 000751IsNotMultipleOf00001: + description: 0.00751 is not multiple of 0.0001 + data: 0.00751 + valid: false comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null - valid: true + FloatDivisionInf: + AlwaysInvalidButNaiveImplementationsMayRaiseAnOverflowError: + description: always invalid, but naive implementations may raise an overflow + error + data: 1.0e+308 + valid: false comment: null - InvalidUriTemplateStringIsOnlyAnAnnotationByDefault: - description: invalid uri-template string is only an annotation by default - data: http://example.com/dictionary/{term:1}/{term + SmallMultipleOfLargeInteger: + AnyIntegerIsAMultipleOf1E8: + description: any integer is a multiple of 1e-8 + data: 12391239123 valid: true comment: null - UuidFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + Not: + Allowed: + description: allowed + data: foo valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 - valid: true + Disallowed: + description: disallowed + data: 1 + valid: false comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects - data: {} + NotMoreComplexSchema: + Match: + description: match + data: 1 valid: true comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays - data: [] + OtherMatch: + description: other match + data: + foo: 1 valid: true comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false - valid: true + Mismatch: + description: mismatch + data: + foo: bar + valid: false comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null - valid: true + ForbiddenProperty: + PropertyPresent: + description: property present + data: + foo: 1 + bar: 2 + valid: false comment: null - InvalidUuidStringIsOnlyAnAnnotationByDefault: - description: invalid uuid string is only an annotation by default - data: 2eb8aa08-aa98-11ea-b4aa-73b441d1638 + PropertyAbsent: + description: property absent + data: + bar: 1 + baz: 2 valid: true comment: null - DurationFormat: - AllStringFormatsIgnoreIntegers: - description: all string formats ignore integers - data: 12 + Oneof: + FirstOneofValid: + description: first oneOf valid + data: 1 valid: true comment: null - AllStringFormatsIgnoreFloats: - description: all string formats ignore floats - data: 13.7 + SecondOneofValid: + description: second oneOf valid + data: 2.5 valid: true comment: null - AllStringFormatsIgnoreObjects: - description: all string formats ignore objects - data: {} - valid: true + BothOneofValid: + description: both oneOf valid + data: 3 + valid: false comment: null - AllStringFormatsIgnoreArrays: - description: all string formats ignore arrays - data: [] - valid: true + NeitherOneofValid: + description: neither oneOf valid + data: 1.5 + valid: false comment: null - AllStringFormatsIgnoreBooleans: - description: all string formats ignore booleans - data: false - valid: true + OneofWithBaseSchema: + MismatchBaseSchema: + description: mismatch base schema + data: 3 + valid: false comment: null - AllStringFormatsIgnoreNulls: - description: all string formats ignore nulls - data: null + OneOneofValid: + description: one oneOf valid + data: foobar valid: true comment: null - InvalidDurationStringIsOnlyAnAnnotationByDefault: - description: invalid duration string is only an annotation by default - data: PT1D - valid: true + BothOneofValid: + description: both oneOf valid + data: foo + valid: false comment: null - NestedItems: - ValidNestedArray: - description: valid nested array + OneofComplexTypes: + FirstOneofValidComplex: + description: first oneOf valid (complex) data: - - - - - 1 - - - - 2 - - - 3 - - - - - 4 - - - 5 - - - 6 + bar: 2 valid: true comment: null - NestedArrayWithInvalidType: - description: nested array with invalid type + SecondOneofValidComplex: + description: second oneOf valid (complex) data: - - - - - '1' - - - - 2 - - - 3 - - - - - 4 - - - 5 - - - 6 - valid: false + foo: baz + valid: true comment: null - NotDeepEnough: - description: not deep enough + BothOneofValidComplex: + description: both oneOf valid (complex) data: - - - - 1 - - - 2 - - - 3 - - - - 4 - - - 5 - - - 6 + foo: baz + bar: 2 valid: false comment: null - ItemsDoesNotLookInApplicatorsValidCase: - PrefixitemsInAllofDoesNotConstrainItemsInvalidCase: - description: prefixItems in allOf does not constrain items, invalid case + NeitherOneofValidComplex: + description: neither oneOf valid (complex) data: - - 3 - - 5 + foo: 2 + bar: quux valid: false comment: null - PrefixitemsInAllofDoesNotConstrainItemsValidCase: - description: prefixItems in allOf does not constrain items, valid case - data: - - 5 - - 5 + OneofWithEmptySchema: + OneValidValid: + description: one valid - valid + data: foo valid: true comment: null - PrefixitemsValidationAdjustsTheStartingIndexForItems: - ValidItems: - description: valid items - data: - - x - - 2 - - 3 - valid: true + BothValidInvalid: + description: both valid - invalid + data: 123 + valid: false comment: null - WrongTypeOfSecondItem: - description: wrong type of second item + OneofWithRequired: + BothInvalidInvalid: + description: both invalid - invalid data: - - x - - y + bar: 2 valid: false comment: null - ItemsWithNullInstanceElements: - AllowsNullElements: - description: allows null elements + FirstValidValid: + description: first valid - valid data: - - null + foo: 1 + bar: 2 valid: true comment: null - MaxcontainsWithoutContainsIsIgnored: - OneItemValidAgainstLoneMaxcontains: - description: one item valid against lone maxContains + SecondValidValid: + description: second valid - valid data: - - 1 + foo: 1 + baz: 3 valid: true comment: null - TwoItemsStillValidAgainstLoneMaxcontains: - description: two items still valid against lone maxContains + BothValidInvalid: + description: both valid - invalid data: - - 1 - - 2 - valid: true + foo: 1 + bar: 2 + baz: 3 + valid: false comment: null - MaximumValidation: - BelowTheMaximumIsValid: - description: below the maximum is valid - data: 2.6 + NestedOneofToCheckValidationSemantics: + NullIsValid: + description: null is valid + data: null valid: true comment: null - BoundaryPointIsValid: - description: boundary point is valid - data: 3.0 + AnythingNonNullIsInvalid: + description: anything non-null is invalid + data: 123 + valid: false + comment: null + PatternValidation: + AMatchingPatternIsValid: + description: a matching pattern is valid + data: aaa valid: true comment: null - AboveTheMaximumIsInvalid: - description: above the maximum is invalid - data: 3.5 + ANonMatchingPatternIsInvalid: + description: a non-matching pattern is invalid + data: abc valid: false comment: null - IgnoresNonNumbers: - description: ignores non-numbers - data: x + IgnoresBooleans: + description: ignores booleans + data: true valid: true comment: null - MaximumValidationWithUnsignedInteger: - BelowTheMaximumIsInvalid: - description: below the maximum is invalid - data: 299.97 + IgnoresIntegers: + description: ignores integers + data: 123 valid: true comment: null - BoundaryPointIntegerIsValid: - description: boundary point integer is valid - data: 300 + IgnoresFloats: + description: ignores floats + data: 1.0 valid: true comment: null - BoundaryPointFloatIsValid: - description: boundary point float is valid - data: 300.0 + IgnoresObjects: + description: ignores objects + data: {} valid: true comment: null - AboveTheMaximumIsInvalid: - description: above the maximum is invalid - data: 300.5 - valid: false + IgnoresArrays: + description: ignores arrays + data: [] + valid: true comment: null - MaxitemsValidation: - ShorterIsValid: - description: shorter is valid + IgnoresNull: + description: ignores null + data: null + valid: true + comment: null + PatternIsNotAnchored: + MatchesASubstring: + description: matches a substring + data: xxaayy + valid: true + comment: null + PatternpropertiesValidatesPropertiesMatchingARegex: + ASingleValidMatchIsValid: + description: a single valid match is valid data: - - 1 + foo: 1 valid: true comment: null - ExactLengthIsValid: - description: exact length is valid + MultipleValidMatchesIsValid: + description: multiple valid matches is valid data: - - 1 - - 2 + foo: 1 + foooooo: 2 valid: true comment: null - TooLongIsInvalid: - description: too long is invalid + ASingleInvalidMatchIsInvalid: + description: a single invalid match is invalid data: - - 1 - - 2 - - 3 + foo: bar + fooooo: 2 valid: false comment: null - IgnoresNonArrays: - description: ignores non-arrays - data: foobar - valid: true - comment: null - MaxlengthValidation: - ShorterIsValid: - description: shorter is valid - data: f - valid: true + MultipleInvalidMatchesIsInvalid: + description: multiple invalid matches is invalid + data: + foo: bar + foooooo: baz + valid: false comment: null - ExactLengthIsValid: - description: exact length is valid - data: fo + IgnoresArrays: + description: ignores arrays + data: + - foo valid: true comment: null - TooLongIsInvalid: - description: too long is invalid + IgnoresStrings: + description: ignores strings data: foo - valid: false + valid: true comment: null - IgnoresNonStrings: - description: ignores non-strings - data: 100 + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - TwoSupplementaryUnicodeCodePointsIsLongEnough: - description: two supplementary Unicode code points is long enough - data: "\U0001F4A9\U0001F4A9" + MultipleSimultaneousPatternpropertiesAreValidated: + ASingleValidMatchIsValid: + description: a single valid match is valid + data: + a: 21 valid: true comment: null - MaxpropertiesValidation: - ShorterIsValid: - description: shorter is valid + ASimultaneousMatchIsValid: + description: a simultaneous match is valid data: - foo: 1 + aaaa: 18 valid: true comment: null - ExactLengthIsValid: - description: exact length is valid + MultipleMatchesIsValid: + description: multiple matches is valid data: - foo: 1 - bar: 2 + a: 21 + aaaa: 18 valid: true comment: null - TooLongIsInvalid: - description: too long is invalid + AnInvalidDueToOneIsInvalid: + description: an invalid due to one is invalid data: - foo: 1 - bar: 2 - baz: 3 + a: bar valid: false comment: null - IgnoresArrays: - description: ignores arrays + AnInvalidDueToTheOtherIsInvalid: + description: an invalid due to the other is invalid data: - - 1 - - 2 - - 3 + aaaa: 31 + valid: false + comment: null + AnInvalidDueToBothIsInvalid: + description: an invalid due to both is invalid + data: + aaa: foo + aaaa: 31 + valid: false + comment: null + RegexesAreNotAnchoredByDefaultAndAreCaseSensitive: + NonRecognizedMembersAreIgnored: + description: non recognized members are ignored + data: + answer 1: '42' valid: true comment: null - IgnoresStrings: - description: ignores strings - data: foobar + RecognizedMembersAreAccountedFor: + description: recognized members are accounted for + data: + a31b: null + valid: false + comment: null + RegexesAreCaseSensitive: + description: regexes are case sensitive + data: + a_x_3: 3 valid: true comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + RegexesAreCaseSensitive2: + description: regexes are case sensitive, 2 + data: + a_X_3: 3 + valid: false + comment: null + PatternpropertiesWithNullValuedInstanceProperties: + AllowsNullValues: + description: allows null values + data: + foobar: null valid: true comment: null - Maxproperties0MeansTheObjectIsEmpty: - NoPropertiesIsValid: - description: no properties is valid - data: {} + ASchemaGivenForPrefixitems: + CorrectTypes: + description: correct types + data: + - 1 + - foo valid: true comment: null - OnePropertyIsInvalid: - description: one property is invalid + WrongTypes: + description: wrong types data: - foo: 1 + - foo + - 1 valid: false comment: null - MinimumValidation: - AboveTheMinimumIsValid: - description: above the minimum is valid - data: 2.6 + IncompleteArrayOfItems: + description: incomplete array of items + data: + - 1 valid: true comment: null - BoundaryPointIsValid: - description: boundary point is valid - data: 1.1 + ArrayWithAdditionalItems: + description: array with additional items + data: + - 1 + - foo + - true valid: true comment: null - BelowTheMinimumIsInvalid: - description: below the minimum is invalid - data: 0.6 - valid: false - comment: null - IgnoresNonNumbers: - description: ignores non-numbers - data: x + EmptyArray: + description: empty array + data: [] valid: true comment: null - MinimumValidationWithSignedInteger: - NegativeAboveTheMinimumIsValid: - description: negative above the minimum is valid - data: -1 + JavascriptPseudoArrayIsValid: + description: JavaScript pseudo-array is valid + data: + '0': invalid + '1': valid + length: 2 valid: true comment: null - PositiveAboveTheMinimumIsValid: - description: positive above the minimum is valid - data: 0 + AdditionalItemsAreAllowedByDefault: + OnlyTheFirstItemIsValidated: + description: only the first item is validated + data: + - 1 + - foo + - false valid: true comment: null - BoundaryPointIsValid: - description: boundary point is valid - data: -2 + PrefixitemsWithNullInstanceElements: + AllowsNullElements: + description: allows null elements + data: + - null valid: true comment: null - BoundaryPointWithFloatIsValid: - description: boundary point with float is valid - data: -2.0 + ObjectPropertiesValidation: + BothPropertiesPresentAndValidIsValid: + description: both properties present and valid is valid + data: + foo: 1 + bar: baz valid: true comment: null - FloatBelowTheMinimumIsInvalid: - description: float below the minimum is invalid - data: -2.0001 + OnePropertyInvalidIsInvalid: + description: one property invalid is invalid + data: + foo: 1 + bar: {} valid: false comment: null - IntBelowTheMinimumIsInvalid: - description: int below the minimum is invalid - data: -3 + BothPropertiesInvalidIsInvalid: + description: both properties invalid is invalid + data: + foo: [] + bar: {} valid: false comment: null - IgnoresNonNumbers: - description: ignores non-numbers - data: x - valid: true - comment: null - MincontainsWithoutContainsIsIgnored: - OneItemValidAgainstLoneMincontains: - description: one item valid against lone minContains + DoesnTInvalidateOtherProperties: + description: doesn't invalidate other properties data: - - 1 + quux: [] valid: true comment: null - ZeroItemsStillValidAgainstLoneMincontains: - description: zero items still valid against lone minContains + IgnoresArrays: + description: ignores arrays data: [] valid: true comment: null - MinitemsValidation: - LongerIsValid: - description: longer is valid - data: - - 1 - - 2 + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - ExactLengthIsValid: - description: exact length is valid + PropertiesPatternpropertiesAdditionalpropertiesInteraction: + PropertyValidatesProperty: + description: property validates property data: - - 1 + foo: + - 1 + - 2 valid: true comment: null - TooShortIsInvalid: - description: too short is invalid - data: [] + PropertyInvalidatesProperty: + description: property invalidates property + data: + foo: + - 1 + - 2 + - 3 + - 4 valid: false comment: null - IgnoresNonArrays: - description: ignores non-arrays - data: '' - valid: true - comment: null - MinlengthValidation: - LongerIsValid: - description: longer is valid - data: foo - valid: true + PatternpropertyInvalidatesProperty: + description: patternProperty invalidates property + data: + foo: [] + valid: false comment: null - ExactLengthIsValid: - description: exact length is valid - data: fo + PatternpropertyValidatesNonproperty: + description: patternProperty validates nonproperty + data: + fxo: + - 1 + - 2 valid: true comment: null - TooShortIsInvalid: - description: too short is invalid - data: f + PatternpropertyInvalidatesNonproperty: + description: patternProperty invalidates nonproperty + data: + fxo: [] valid: false comment: null - IgnoresNonStrings: - description: ignores non-strings - data: 1 + AdditionalpropertyIgnoresProperty: + description: additionalProperty ignores property + data: + bar: [] valid: true comment: null - OneSupplementaryUnicodeCodePointIsNotLongEnough: - description: one supplementary Unicode code point is not long enough - data: "\U0001F4A9" - valid: false - comment: null - MinpropertiesValidation: - LongerIsValid: - description: longer is valid + AdditionalpropertyValidatesOthers: + description: additionalProperty validates others data: - foo: 1 - bar: 2 + quux: 3 valid: true comment: null - ExactLengthIsValid: - description: exact length is valid + AdditionalpropertyInvalidatesOthers: + description: additionalProperty invalidates others data: - foo: 1 + quux: foo + valid: false + comment: null + PropertiesWithEscapedCharacters: + ObjectWithAllNumbersIsValid: + description: object with all numbers is valid + data: + ? 'foo + + bar' + : 1 + foo"bar: 1 + foo\bar: 1 + "foo\rbar": 1 + "foo\tbar": 1 + "foo\fbar": 1 valid: true comment: null - TooShortIsInvalid: - description: too short is invalid - data: {} + ObjectWithStringsIsInvalid: + description: object with strings is invalid + data: + ? 'foo + + bar' + : '1' + foo"bar: '1' + foo\bar: '1' + "foo\rbar": '1' + "foo\tbar": '1' + "foo\fbar": '1' valid: false comment: null + PropertiesWithNullValuedInstanceProperties: + AllowsNullValues: + description: allows null values + data: + foo: null + valid: true + comment: null + PropertiesWhoseNamesAreJavascriptObjectPropertyNames: IgnoresArrays: description: ignores arrays data: [] valid: true comment: null - IgnoresStrings: - description: ignores strings - data: '' - valid: true - comment: null IgnoresOtherNonObjects: description: ignores other non-objects data: 12 valid: true comment: null - ByInt: - IntByInt: - description: int by int - data: 10 + NoneOfThePropertiesMentioned: + description: none of the properties mentioned + data: {} valid: true comment: null - IntByIntFail: - description: int by int fail - data: 7 + ProtoNotValid: + description: __proto__ not valid + data: + __proto__: foo valid: false comment: null - IgnoresNonNumbers: - description: ignores non-numbers - data: foo - valid: true - comment: null - ByNumber: - ZeroIsMultipleOfAnything: - description: zero is multiple of anything - data: 0 - valid: true - comment: null - 45IsMultipleOf15: - description: 4.5 is multiple of 1.5 - data: 4.5 - valid: true + TostringNotValid: + description: toString not valid + data: + toString: + length: 37 + valid: false comment: null - 35IsNotMultipleOf15: - description: 35 is not multiple of 1.5 - data: 35 + ConstructorNotValid: + description: constructor not valid + data: + constructor: + length: 37 valid: false comment: null - BySmallNumber: - 00075IsMultipleOf00001: - description: 0.0075 is multiple of 0.0001 - data: 0.0075 + AllPresentAndValid: + description: all present and valid + data: + __proto__: 12 + toString: + length: foo + constructor: 37 valid: true comment: null - 000751IsNotMultipleOf00001: - description: 0.00751 is not multiple of 0.0001 - data: 0.00751 - valid: false + PropertynamesValidation: + AllPropertyNamesValid: + description: all property names valid + data: + f: {} + foo: {} + valid: true comment: null - FloatDivisionInf: - AlwaysInvalidButNaiveImplementationsMayRaiseAnOverflowError: - description: always invalid, but naive implementations may raise an overflow - error - data: 1.0e+308 + SomePropertyNamesInvalid: + description: some property names invalid + data: + foo: {} + foobar: {} valid: false comment: null - SmallMultipleOfLargeInteger: - AnyIntegerIsAMultipleOf1E8: - description: any integer is a multiple of 1e-8 - data: 12391239123 + ObjectWithoutPropertiesIsValid: + description: object without properties is valid + data: {} valid: true comment: null - Not: - Allowed: - description: allowed - data: foo + IgnoresArrays: + description: ignores arrays + data: + - 1 + - 2 + - 3 + - 4 valid: true comment: null - Disallowed: - description: disallowed - data: 1 - valid: false + IgnoresStrings: + description: ignores strings + data: foobar + valid: true comment: null - NotMoreComplexSchema: - Match: - description: match - data: 1 + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - OtherMatch: - description: other match + PropertyNamedRefThatIsNotAReference: + PropertyNamedRefValid: + description: property named $ref valid data: - foo: 1 + $ref: a valid: true comment: null - Mismatch: - description: mismatch + PropertyNamedRefInvalid: + description: property named $ref invalid data: - foo: bar + $ref: 2 valid: false comment: null - ForbiddenProperty: - PropertyPresent: - description: property present + RequiredValidation: + PresentRequiredPropertyIsValid: + description: present required property is valid data: foo: 1 - bar: 2 - valid: false + valid: true comment: null - PropertyAbsent: - description: property absent + NonPresentRequiredPropertyIsInvalid: + description: non-present required property is invalid data: bar: 1 - baz: 2 - valid: true + valid: false comment: null - Oneof: - FirstOneofValid: - description: first oneOf valid - data: 1 + IgnoresArrays: + description: ignores arrays + data: [] valid: true comment: null - SecondOneofValid: - description: second oneOf valid - data: 2.5 + IgnoresStrings: + description: ignores strings + data: '' valid: true comment: null - BothOneofValid: - description: both oneOf valid - data: 3 - valid: false + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 + valid: true comment: null - NeitherOneofValid: - description: neither oneOf valid - data: 1.5 - valid: false + RequiredDefaultValidation: + NotRequiredByDefault: + description: not required by default + data: {} + valid: true comment: null - OneofWithBaseSchema: - MismatchBaseSchema: - description: mismatch base schema - data: 3 - valid: false + RequiredWithEmptyArray: + PropertyNotRequired: + description: property not required + data: {} + valid: true comment: null - OneOneofValid: - description: one oneOf valid - data: foobar + RequiredWithEscapedCharacters: + ObjectWithAllPropertiesPresentIsValid: + description: object with all properties present is valid + data: + ? 'foo + + bar' + : 1 + foo"bar: 1 + foo\bar: 1 + "foo\rbar": 1 + "foo\tbar": 1 + "foo\fbar": 1 valid: true comment: null - BothOneofValid: - description: both oneOf valid - data: foo + ObjectWithSomePropertiesMissingIsInvalid: + description: object with some properties missing is invalid + data: + ? 'foo + + bar' + : '1' + foo"bar: '1' valid: false comment: null - OneofComplexTypes: - FirstOneofValidComplex: - description: first oneOf valid (complex) - data: - bar: 2 + RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames: + IgnoresArrays: + description: ignores arrays + data: [] valid: true comment: null - SecondOneofValidComplex: - description: second oneOf valid (complex) - data: - foo: baz + IgnoresOtherNonObjects: + description: ignores other non-objects + data: 12 valid: true comment: null - BothOneofValidComplex: - description: both oneOf valid (complex) - data: - foo: baz - bar: 2 + NoneOfThePropertiesMentioned: + description: none of the properties mentioned + data: {} valid: false comment: null - NeitherOneofValidComplex: - description: neither oneOf valid (complex) + ProtoPresent: + description: __proto__ present data: - foo: 2 - bar: quux + __proto__: foo valid: false comment: null - OneofWithEmptySchema: - OneValidValid: - description: one valid - valid - data: foo - valid: true - comment: null - BothValidInvalid: - description: both valid - invalid - data: 123 + TostringPresent: + description: toString present + data: + toString: + length: 37 valid: false comment: null - OneofWithRequired: - BothInvalidInvalid: - description: both invalid - invalid + ConstructorPresent: + description: constructor present data: - bar: 2 + constructor: + length: 37 valid: false comment: null - FirstValidValid: - description: first valid - valid + AllPresent: + description: all present data: - foo: 1 - bar: 2 + __proto__: 12 + toString: + length: foo + constructor: 37 valid: true comment: null - SecondValidValid: - description: second valid - valid - data: - foo: 1 - baz: 3 + IntegerTypeMatchesIntegers: + AnIntegerIsAnInteger: + description: an integer is an integer + data: 1 valid: true comment: null - BothValidInvalid: - description: both valid - invalid - data: - foo: 1 - bar: 2 - baz: 3 - valid: false - comment: null - NestedOneofToCheckValidationSemantics: - NullIsValid: - description: null is valid - data: null + AFloatWithZeroFractionalPartIsAnInteger: + description: a float with zero fractional part is an integer + data: 1.0 valid: true comment: null - AnythingNonNullIsInvalid: - description: anything non-null is invalid - data: 123 + AFloatIsNotAnInteger: + description: a float is not an integer + data: 1.1 + valid: false + comment: null + AStringIsNotAnInteger: + description: a string is not an integer + data: foo + valid: false + comment: null + AStringIsStillNotAnIntegerEvenIfItLooksLikeOne: + description: a string is still not an integer, even if it looks like one + data: '1' valid: false comment: null - PatternValidation: - AMatchingPatternIsValid: - description: a matching pattern is valid - data: aaa - valid: true + AnObjectIsNotAnInteger: + description: an object is not an integer + data: {} + valid: false comment: null - ANonMatchingPatternIsInvalid: - description: a non-matching pattern is invalid - data: abc + AnArrayIsNotAnInteger: + description: an array is not an integer + data: [] valid: false comment: null - IgnoresBooleans: - description: ignores booleans + ABooleanIsNotAnInteger: + description: a boolean is not an integer data: true - valid: true + valid: false comment: null - IgnoresIntegers: - description: ignores integers - data: 123 + NullIsNotAnInteger: + description: null is not an integer + data: null + valid: false + comment: null + NumberTypeMatchesNumbers: + AnIntegerIsANumber: + description: an integer is a number + data: 1 valid: true comment: null - IgnoresFloats: - description: ignores floats + AFloatWithZeroFractionalPartIsANumberAndAnInteger: + description: a float with zero fractional part is a number (and an integer) data: 1.0 valid: true comment: null - IgnoresObjects: - description: ignores objects - data: {} + AFloatIsANumber: + description: a float is a number + data: 1.1 valid: true comment: null - IgnoresArrays: - description: ignores arrays - data: [] - valid: true + AStringIsNotANumber: + description: a string is not a number + data: foo + valid: false comment: null - IgnoresNull: - description: ignores null - data: null - valid: true + AStringIsStillNotANumberEvenIfItLooksLikeOne: + description: a string is still not a number, even if it looks like one + data: '1' + valid: false comment: null - PatternIsNotAnchored: - MatchesASubstring: - description: matches a substring - data: xxaayy - valid: true + AnObjectIsNotANumber: + description: an object is not a number + data: {} + valid: false comment: null - PatternpropertiesValidatesPropertiesMatchingARegex: - ASingleValidMatchIsValid: - description: a single valid match is valid - data: - foo: 1 - valid: true + AnArrayIsNotANumber: + description: an array is not a number + data: [] + valid: false comment: null - MultipleValidMatchesIsValid: - description: multiple valid matches is valid - data: - foo: 1 - foooooo: 2 - valid: true + ABooleanIsNotANumber: + description: a boolean is not a number + data: true + valid: false comment: null - ASingleInvalidMatchIsInvalid: - description: a single invalid match is invalid - data: - foo: bar - fooooo: 2 + NullIsNotANumber: + description: null is not a number + data: null valid: false comment: null - MultipleInvalidMatchesIsInvalid: - description: multiple invalid matches is invalid - data: - foo: bar - foooooo: baz + StringTypeMatchesStrings: + 1IsNotAString: + description: 1 is not a string + data: 1 valid: false comment: null - IgnoresArrays: - description: ignores arrays - data: - - foo - valid: true + AFloatIsNotAString: + description: a float is not a string + data: 1.1 + valid: false comment: null - IgnoresStrings: - description: ignores strings + AStringIsAString: + description: a string is a string data: foo valid: true comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + AStringIsStillAStringEvenIfItLooksLikeANumber: + description: a string is still a string, even if it looks like a number + data: '1' valid: true comment: null - MultipleSimultaneousPatternpropertiesAreValidated: - ASingleValidMatchIsValid: - description: a single valid match is valid - data: - a: 21 + AnEmptyStringIsStillAString: + description: an empty string is still a string + data: '' valid: true comment: null - ASimultaneousMatchIsValid: - description: a simultaneous match is valid - data: - aaaa: 18 - valid: true + AnObjectIsNotAString: + description: an object is not a string + data: {} + valid: false comment: null - MultipleMatchesIsValid: - description: multiple matches is valid - data: - a: 21 - aaaa: 18 - valid: true + AnArrayIsNotAString: + description: an array is not a string + data: [] + valid: false comment: null - AnInvalidDueToOneIsInvalid: - description: an invalid due to one is invalid - data: - a: bar + ABooleanIsNotAString: + description: a boolean is not a string + data: true valid: false comment: null - AnInvalidDueToTheOtherIsInvalid: - description: an invalid due to the other is invalid - data: - aaaa: 31 + NullIsNotAString: + description: null is not a string + data: null valid: false comment: null - AnInvalidDueToBothIsInvalid: - description: an invalid due to both is invalid - data: - aaa: foo - aaaa: 31 + ObjectTypeMatchesObjects: + AnIntegerIsNotAnObject: + description: an integer is not an object + data: 1 valid: false comment: null - RegexesAreNotAnchoredByDefaultAndAreCaseSensitive: - NonRecognizedMembersAreIgnored: - description: non recognized members are ignored - data: - answer 1: '42' - valid: true + AFloatIsNotAnObject: + description: a float is not an object + data: 1.1 + valid: false comment: null - RecognizedMembersAreAccountedFor: - description: recognized members are accounted for - data: - a31b: null + AStringIsNotAnObject: + description: a string is not an object + data: foo valid: false comment: null - RegexesAreCaseSensitive: - description: regexes are case sensitive - data: - a_x_3: 3 + AnObjectIsAnObject: + description: an object is an object + data: {} valid: true comment: null - RegexesAreCaseSensitive2: - description: regexes are case sensitive, 2 - data: - a_X_3: 3 + AnArrayIsNotAnObject: + description: an array is not an object + data: [] valid: false comment: null - PatternpropertiesWithNullValuedInstanceProperties: - AllowsNullValues: - description: allows null values - data: - foobar: null - valid: true - comment: null - ASchemaGivenForPrefixitems: - CorrectTypes: - description: correct types - data: - - 1 - - foo - valid: true + ABooleanIsNotAnObject: + description: a boolean is not an object + data: true + valid: false comment: null - WrongTypes: - description: wrong types - data: - - foo - - 1 + NullIsNotAnObject: + description: null is not an object + data: null valid: false comment: null - IncompleteArrayOfItems: - description: incomplete array of items - data: - - 1 - valid: true + ArrayTypeMatchesArrays: + AnIntegerIsNotAnArray: + description: an integer is not an array + data: 1 + valid: false comment: null - ArrayWithAdditionalItems: - description: array with additional items - data: - - 1 - - foo - - true - valid: true + AFloatIsNotAnArray: + description: a float is not an array + data: 1.1 + valid: false comment: null - EmptyArray: - description: empty array + AStringIsNotAnArray: + description: a string is not an array + data: foo + valid: false + comment: null + AnObjectIsNotAnArray: + description: an object is not an array + data: {} + valid: false + comment: null + AnArrayIsAnArray: + description: an array is an array data: [] valid: true comment: null - JavascriptPseudoArrayIsValid: - description: JavaScript pseudo-array is valid - data: - '0': invalid - '1': valid - length: 2 - valid: true + ABooleanIsNotAnArray: + description: a boolean is not an array + data: true + valid: false comment: null - AdditionalItemsAreAllowedByDefault: - OnlyTheFirstItemIsValidated: - description: only the first item is validated - data: - - 1 - - foo - - false - valid: true + NullIsNotAnArray: + description: null is not an array + data: null + valid: false comment: null - PrefixitemsWithNullInstanceElements: - AllowsNullElements: - description: allows null elements - data: - - null - valid: true + BooleanTypeMatchesBooleans: + AnIntegerIsNotABoolean: + description: an integer is not a boolean + data: 1 + valid: false comment: null - ObjectPropertiesValidation: - BothPropertiesPresentAndValidIsValid: - description: both properties present and valid is valid - data: - foo: 1 - bar: baz - valid: true + ZeroIsNotABoolean: + description: zero is not a boolean + data: 0 + valid: false comment: null - OnePropertyInvalidIsInvalid: - description: one property invalid is invalid - data: - foo: 1 - bar: {} + AFloatIsNotABoolean: + description: a float is not a boolean + data: 1.1 valid: false comment: null - BothPropertiesInvalidIsInvalid: - description: both properties invalid is invalid - data: - foo: [] - bar: {} + AStringIsNotABoolean: + description: a string is not a boolean + data: foo valid: false comment: null - DoesnTInvalidateOtherProperties: - description: doesn't invalidate other properties - data: - quux: [] - valid: true + AnEmptyStringIsNotABoolean: + description: an empty string is not a boolean + data: '' + valid: false comment: null - IgnoresArrays: - description: ignores arrays + AnObjectIsNotABoolean: + description: an object is not a boolean + data: {} + valid: false + comment: null + AnArrayIsNotABoolean: + description: an array is not a boolean data: [] - valid: true + valid: false comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + TrueIsABoolean: + description: true is a boolean + data: true valid: true comment: null - PropertiesPatternpropertiesAdditionalpropertiesInteraction: - PropertyValidatesProperty: - description: property validates property - data: - foo: - - 1 - - 2 + FalseIsABoolean: + description: false is a boolean + data: false valid: true comment: null - PropertyInvalidatesProperty: - description: property invalidates property - data: - foo: - - 1 - - 2 - - 3 - - 4 + NullIsNotABoolean: + description: null is not a boolean + data: null valid: false comment: null - PatternpropertyInvalidatesProperty: - description: patternProperty invalidates property - data: - foo: [] + NullTypeMatchesOnlyTheNullObject: + AnIntegerIsNotNull: + description: an integer is not null + data: 1 valid: false comment: null - PatternpropertyValidatesNonproperty: - description: patternProperty validates nonproperty - data: - fxo: - - 1 - - 2 - valid: true + AFloatIsNotNull: + description: a float is not null + data: 1.1 + valid: false comment: null - PatternpropertyInvalidatesNonproperty: - description: patternProperty invalidates nonproperty - data: - fxo: [] + ZeroIsNotNull: + description: zero is not null + data: 0 valid: false comment: null - AdditionalpropertyIgnoresProperty: - description: additionalProperty ignores property - data: - bar: [] - valid: true + AStringIsNotNull: + description: a string is not null + data: foo + valid: false comment: null - AdditionalpropertyValidatesOthers: - description: additionalProperty validates others - data: - quux: 3 - valid: true + AnEmptyStringIsNotNull: + description: an empty string is not null + data: '' + valid: false comment: null - AdditionalpropertyInvalidatesOthers: - description: additionalProperty invalidates others - data: - quux: foo + AnObjectIsNotNull: + description: an object is not null + data: {} valid: false comment: null - PropertiesWithEscapedCharacters: - ObjectWithAllNumbersIsValid: - description: object with all numbers is valid - data: - ? 'foo - - bar' - : 1 - foo"bar: 1 - foo\bar: 1 - "foo\rbar": 1 - "foo\tbar": 1 - "foo\fbar": 1 - valid: true + AnArrayIsNotNull: + description: an array is not null + data: [] + valid: false comment: null - ObjectWithStringsIsInvalid: - description: object with strings is invalid - data: - ? 'foo - - bar' - : '1' - foo"bar: '1' - foo\bar: '1' - "foo\rbar": '1' - "foo\tbar": '1' - "foo\fbar": '1' + TrueIsNotNull: + description: true is not null + data: true valid: false comment: null - PropertiesWithNullValuedInstanceProperties: - AllowsNullValues: - description: allows null values - data: - foo: null + FalseIsNotNull: + description: false is not null + data: false + valid: false + comment: null + NullIsNull: + description: null is null + data: null valid: true comment: null - PropertiesWhoseNamesAreJavascriptObjectPropertyNames: - IgnoresArrays: - description: ignores arrays - data: [] + MultipleTypesCanBeSpecifiedInAnArray: + AnIntegerIsValid: + description: an integer is valid + data: 1 valid: true comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + AStringIsValid: + description: a string is valid + data: foo valid: true comment: null - NoneOfThePropertiesMentioned: - description: none of the properties mentioned + AFloatIsInvalid: + description: a float is invalid + data: 1.1 + valid: false + comment: null + AnObjectIsInvalid: + description: an object is invalid data: {} - valid: true + valid: false comment: null - ProtoNotValid: - description: __proto__ not valid - data: - __proto__: foo + AnArrayIsInvalid: + description: an array is invalid + data: [] + valid: false + comment: null + ABooleanIsInvalid: + description: a boolean is invalid + data: true valid: false comment: null - TostringNotValid: - description: toString not valid - data: - toString: - length: 37 + NullIsInvalid: + description: null is invalid + data: null valid: false comment: null - ConstructorNotValid: - description: constructor not valid - data: - constructor: - length: 37 + TypeAsArrayWithOneItem: + StringIsValid: + description: string is valid + data: foo + valid: true + comment: null + NumberIsInvalid: + description: number is invalid + data: 123 valid: false comment: null - AllPresentAndValid: - description: all present and valid + TypeArrayOrObject: + ArrayIsValid: + description: array is valid data: - __proto__: 12 - toString: - length: foo - constructor: 37 + - 1 + - 2 + - 3 valid: true comment: null - PropertynamesValidation: - AllPropertyNamesValid: - description: all property names valid + ObjectIsValid: + description: object is valid data: - f: {} - foo: {} + foo: 123 valid: true comment: null - SomePropertyNamesInvalid: - description: some property names invalid - data: - foo: {} - foobar: {} + NumberIsInvalid: + description: number is invalid + data: 123 valid: false comment: null - ObjectWithoutPropertiesIsValid: - description: object without properties is valid - data: {} - valid: true + StringIsInvalid: + description: string is invalid + data: foo + valid: false comment: null - IgnoresArrays: - description: ignores arrays + NullIsInvalid: + description: null is invalid + data: null + valid: false + comment: null + TypeArrayObjectOrNull: + ArrayIsValid: + description: array is valid data: - 1 - 2 - 3 - - 4 valid: true comment: null - IgnoresStrings: - description: ignores strings - data: foobar + ObjectIsValid: + description: object is valid + data: + foo: 123 valid: true comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + NullIsValid: + description: null is valid + data: null valid: true comment: null - PropertyNamedRefThatIsNotAReference: - PropertyNamedRefValid: - description: property named $ref valid + NumberIsInvalid: + description: number is invalid + data: 123 + valid: false + comment: null + StringIsInvalid: + description: string is invalid + data: foo + valid: false + comment: null + UnevaluateditemsAsSchema: + WithNoUnevaluatedItems: + description: with no unevaluated items + data: [] + valid: true + comment: null + WithValidUnevaluatedItems: + description: with valid unevaluated items data: - $ref: a + - foo valid: true comment: null - PropertyNamedRefInvalid: - description: property named $ref invalid + WithInvalidUnevaluatedItems: + description: with invalid unevaluated items data: - $ref: 2 + - 42 valid: false comment: null - RequiredValidation: - PresentRequiredPropertyIsValid: - description: present required property is valid + UnevaluateditemsWithItems: + ValidUnderItems: + description: valid under items data: - foo: 1 + - 5 + - 6 + - 7 + - 8 valid: true - comment: null - NonPresentRequiredPropertyIsInvalid: - description: non-present required property is invalid + comment: no elements are considered by unevaluatedItems + InvalidUnderItems: + description: invalid under items data: - bar: 1 + - foo + - bar + - baz valid: false comment: null - IgnoresArrays: - description: ignores arrays - data: [] + UnevaluateditemsDependsOnMultipleNestedContains: + 5NotEvaluatedPassesUnevaluateditems: + description: 5 not evaluated, passes unevaluatedItems + data: + - 2 + - 3 + - 4 + - 5 + - 6 valid: true comment: null - IgnoresStrings: - description: ignores strings - data: '' - valid: true + 7NotEvaluatedFailsUnevaluateditems: + description: 7 not evaluated, fails unevaluatedItems + data: + - 2 + - 3 + - 4 + - 7 + - 8 + valid: false comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 + UnevaluateditemsWithNullInstanceElements: + AllowsNullElements: + description: allows null elements + data: + - null valid: true comment: null - RequiredDefaultValidation: - NotRequiredByDefault: - description: not required by default + UnevaluatedpropertiesTrue: + WithNoUnevaluatedProperties: + description: with no unevaluated properties data: {} valid: true comment: null - RequiredWithEmptyArray: - PropertyNotRequired: - description: property not required + WithUnevaluatedProperties: + description: with unevaluated properties + data: + foo: foo + valid: true + comment: null + UnevaluatedpropertiesSchema: + WithNoUnevaluatedProperties: + description: with no unevaluated properties data: {} valid: true comment: null - RequiredWithEscapedCharacters: - ObjectWithAllPropertiesPresentIsValid: - description: object with all properties present is valid + WithValidUnevaluatedProperties: + description: with valid unevaluated properties data: - ? 'foo - - bar' - : 1 - foo"bar: 1 - foo\bar: 1 - "foo\rbar": 1 - "foo\tbar": 1 - "foo\fbar": 1 + foo: foo valid: true comment: null - ObjectWithSomePropertiesMissingIsInvalid: - description: object with some properties missing is invalid + WithInvalidUnevaluatedProperties: + description: with invalid unevaluated properties data: - ? 'foo - - bar' - : '1' - foo"bar: '1' + foo: fo valid: false comment: null - RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames: - IgnoresArrays: - description: ignores arrays - data: [] - valid: true - comment: null - IgnoresOtherNonObjects: - description: ignores other non-objects - data: 12 - valid: true - comment: null - NoneOfThePropertiesMentioned: - description: none of the properties mentioned + UnevaluatedpropertiesFalse: + WithNoUnevaluatedProperties: + description: with no unevaluated properties data: {} - valid: false + valid: true comment: null - ProtoPresent: - description: __proto__ present + WithUnevaluatedProperties: + description: with unevaluated properties data: - __proto__: foo + foo: foo valid: false comment: null - TostringPresent: - description: toString present + UnevaluatedpropertiesWithAdjacentProperties: + WithNoUnevaluatedProperties: + description: with no unevaluated properties data: - toString: - length: 37 - valid: false + foo: foo + valid: true comment: null - ConstructorPresent: - description: constructor present + WithUnevaluatedProperties: + description: with unevaluated properties data: - constructor: - length: 37 + foo: foo + bar: bar valid: false comment: null - AllPresent: - description: all present + UnevaluatedpropertiesWithAdjacentPatternproperties: + WithNoUnevaluatedProperties: + description: with no unevaluated properties data: - __proto__: 12 - toString: - length: foo - constructor: 37 - valid: true - comment: null - IntegerTypeMatchesIntegers: - AnIntegerIsAnInteger: - description: an integer is an integer - data: 1 - valid: true - comment: null - AFloatWithZeroFractionalPartIsAnInteger: - description: a float with zero fractional part is an integer - data: 1.0 + foo: foo valid: true comment: null - AFloatIsNotAnInteger: - description: a float is not an integer - data: 1.1 - valid: false - comment: null - AStringIsNotAnInteger: - description: a string is not an integer - data: foo + WithUnevaluatedProperties: + description: with unevaluated properties + data: + foo: foo + bar: bar valid: false comment: null - AStringIsStillNotAnIntegerEvenIfItLooksLikeOne: - description: a string is still not an integer, even if it looks like one - data: '1' - valid: false + UnevaluatedpropertiesWithAdjacentAdditionalproperties: + WithNoAdditionalProperties: + description: with no additional properties + data: + foo: foo + valid: true comment: null - AnObjectIsNotAnInteger: - description: an object is not an integer - data: {} - valid: false + WithAdditionalProperties: + description: with additional properties + data: + foo: foo + bar: bar + valid: true comment: null - AnArrayIsNotAnInteger: - description: an array is not an integer - data: [] - valid: false + UnevaluatedpropertiesWithNestedProperties: + WithNoAdditionalProperties: + description: with no additional properties + data: + foo: foo + bar: bar + valid: true comment: null - ABooleanIsNotAnInteger: - description: a boolean is not an integer - data: true + WithAdditionalProperties: + description: with additional properties + data: + foo: foo + bar: bar + baz: baz valid: false comment: null - NullIsNotAnInteger: - description: null is not an integer - data: null + UnevaluatedpropertiesWithNestedPatternproperties: + WithNoAdditionalProperties: + description: with no additional properties + data: + foo: foo + bar: bar + valid: true + comment: null + WithAdditionalProperties: + description: with additional properties + data: + foo: foo + bar: bar + baz: baz valid: false comment: null - NumberTypeMatchesNumbers: - AnIntegerIsANumber: - description: an integer is a number - data: 1 + UnevaluatedpropertiesWithNestedAdditionalproperties: + WithNoAdditionalProperties: + description: with no additional properties + data: + foo: foo valid: true comment: null - AFloatWithZeroFractionalPartIsANumberAndAnInteger: - description: a float with zero fractional part is a number (and an integer) - data: 1.0 + WithAdditionalProperties: + description: with additional properties + data: + foo: foo + bar: bar valid: true comment: null - AFloatIsANumber: - description: a float is a number - data: 1.1 + UnevaluatedpropertiesWithNestedUnevaluatedproperties: + WithNoNestedUnevaluatedProperties: + description: with no nested unevaluated properties + data: + foo: foo valid: true comment: null - AStringIsNotANumber: - description: a string is not a number - data: foo - valid: false + WithNestedUnevaluatedProperties: + description: with nested unevaluated properties + data: + foo: foo + bar: bar + valid: true comment: null - AStringIsStillNotANumberEvenIfItLooksLikeOne: - description: a string is still not a number, even if it looks like one - data: '1' - valid: false + UnevaluatedpropertiesWithAnyof: + WhenOneMatchesAndHasNoUnevaluatedProperties: + description: when one matches and has no unevaluated properties + data: + foo: foo + bar: bar + valid: true comment: null - AnObjectIsNotANumber: - description: an object is not a number - data: {} + WhenOneMatchesAndHasUnevaluatedProperties: + description: when one matches and has unevaluated properties + data: + foo: foo + bar: bar + baz: not-baz valid: false comment: null - AnArrayIsNotANumber: - description: an array is not a number - data: [] - valid: false + WhenTwoMatchAndHasNoUnevaluatedProperties: + description: when two match and has no unevaluated properties + data: + foo: foo + bar: bar + baz: baz + valid: true comment: null - ABooleanIsNotANumber: - description: a boolean is not a number - data: true + WhenTwoMatchAndHasUnevaluatedProperties: + description: when two match and has unevaluated properties + data: + foo: foo + bar: bar + baz: baz + quux: not-quux valid: false comment: null - NullIsNotANumber: - description: null is not a number - data: null - valid: false + UnevaluatedpropertiesWithOneof: + WithNoUnevaluatedProperties: + description: with no unevaluated properties + data: + foo: foo + bar: bar + valid: true comment: null - StringTypeMatchesStrings: - 1IsNotAString: - description: 1 is not a string - data: 1 + WithUnevaluatedProperties: + description: with unevaluated properties + data: + foo: foo + bar: bar + quux: quux valid: false comment: null - AFloatIsNotAString: - description: a float is not a string - data: 1.1 + UnevaluatedpropertiesWithNot: + WithUnevaluatedProperties: + description: with unevaluated properties + data: + foo: foo + bar: bar valid: false comment: null - AStringIsAString: - description: a string is a string - data: foo + UnevaluatedpropertiesWithIfThenElse: + WhenIfIsTrueAndHasNoUnevaluatedProperties: + description: when if is true and has no unevaluated properties + data: + foo: then + bar: bar valid: true comment: null - AStringIsStillAStringEvenIfItLooksLikeANumber: - description: a string is still a string, even if it looks like a number - data: '1' - valid: true + WhenIfIsTrueAndHasUnevaluatedProperties: + description: when if is true and has unevaluated properties + data: + foo: then + bar: bar + baz: baz + valid: false comment: null - AnEmptyStringIsStillAString: - description: an empty string is still a string - data: '' + WhenIfIsFalseAndHasNoUnevaluatedProperties: + description: when if is false and has no unevaluated properties + data: + baz: baz valid: true comment: null - AnObjectIsNotAString: - description: an object is not a string - data: {} + WhenIfIsFalseAndHasUnevaluatedProperties: + description: when if is false and has unevaluated properties + data: + foo: else + baz: baz valid: false comment: null - AnArrayIsNotAString: - description: an array is not a string - data: [] + UnevaluatedpropertiesWithIfThenElseThenNotDefined: + WhenIfIsTrueAndHasNoUnevaluatedProperties: + description: when if is true and has no unevaluated properties + data: + foo: then + bar: bar valid: false comment: null - ABooleanIsNotAString: - description: a boolean is not a string - data: true + WhenIfIsTrueAndHasUnevaluatedProperties: + description: when if is true and has unevaluated properties + data: + foo: then + bar: bar + baz: baz valid: false comment: null - NullIsNotAString: - description: null is not a string - data: null + WhenIfIsFalseAndHasNoUnevaluatedProperties: + description: when if is false and has no unevaluated properties + data: + baz: baz + valid: true + comment: null + WhenIfIsFalseAndHasUnevaluatedProperties: + description: when if is false and has unevaluated properties + data: + foo: else + baz: baz valid: false comment: null - ObjectTypeMatchesObjects: - AnIntegerIsNotAnObject: - description: an integer is not an object - data: 1 + UnevaluatedpropertiesWithIfThenElseElseNotDefined: + WhenIfIsTrueAndHasNoUnevaluatedProperties: + description: when if is true and has no unevaluated properties + data: + foo: then + bar: bar + valid: true + comment: null + WhenIfIsTrueAndHasUnevaluatedProperties: + description: when if is true and has unevaluated properties + data: + foo: then + bar: bar + baz: baz valid: false comment: null - AFloatIsNotAnObject: - description: a float is not an object - data: 1.1 + WhenIfIsFalseAndHasNoUnevaluatedProperties: + description: when if is false and has no unevaluated properties + data: + baz: baz valid: false comment: null - AStringIsNotAnObject: - description: a string is not an object - data: foo + WhenIfIsFalseAndHasUnevaluatedProperties: + description: when if is false and has unevaluated properties + data: + foo: else + baz: baz valid: false comment: null - AnObjectIsAnObject: - description: an object is an object - data: {} + UnevaluatedpropertiesWithDependentschemas: + WithNoUnevaluatedProperties: + description: with no unevaluated properties + data: + foo: foo + bar: bar valid: true comment: null - AnArrayIsNotAnObject: - description: an array is not an object - data: [] - valid: false - comment: null - ABooleanIsNotAnObject: - description: a boolean is not an object - data: true + WithUnevaluatedProperties: + description: with unevaluated properties + data: + bar: bar valid: false comment: null - NullIsNotAnObject: - description: null is not an object - data: null - valid: false + UnevaluatedpropertiesWithBooleanSchemas: + WithNoUnevaluatedProperties: + description: with no unevaluated properties + data: + foo: foo + valid: true comment: null - ArrayTypeMatchesArrays: - AnIntegerIsNotAnArray: - description: an integer is not an array - data: 1 + WithUnevaluatedProperties: + description: with unevaluated properties + data: + bar: bar valid: false comment: null - AFloatIsNotAnArray: - description: a float is not an array - data: 1.1 - valid: false + UnevaluatedpropertiesWithRef: + WithNoUnevaluatedProperties: + description: with no unevaluated properties + data: + foo: foo + bar: bar + valid: true comment: null - AStringIsNotAnArray: - description: a string is not an array - data: foo + WithUnevaluatedProperties: + description: with unevaluated properties + data: + foo: foo + bar: bar + baz: baz valid: false comment: null - AnObjectIsNotAnArray: - description: an object is not an array - data: {} - valid: false + NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: + WithNoNestedUnevaluatedProperties: + description: with no nested unevaluated properties + data: + foo: foo + valid: true comment: null - AnArrayIsAnArray: - description: an array is an array - data: [] + WithNestedUnevaluatedProperties: + description: with nested unevaluated properties + data: + foo: foo + bar: bar valid: true comment: null - ABooleanIsNotAnArray: - description: a boolean is not an array - data: true + NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside: + WithNoNestedUnevaluatedProperties: + description: with no nested unevaluated properties + data: + foo: foo valid: false comment: null - NullIsNotAnArray: - description: null is not an array - data: null + WithNestedUnevaluatedProperties: + description: with nested unevaluated properties + data: + foo: foo + bar: bar valid: false comment: null - BooleanTypeMatchesBooleans: - AnIntegerIsNotABoolean: - description: an integer is not a boolean - data: 1 + CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: + WithNoNestedUnevaluatedProperties: + description: with no nested unevaluated properties + data: + foo: foo valid: false comment: null - ZeroIsNotABoolean: - description: zero is not a boolean - data: 0 + WithNestedUnevaluatedProperties: + description: with nested unevaluated properties + data: + foo: foo + bar: bar valid: false comment: null - AFloatIsNotABoolean: - description: a float is not a boolean - data: 1.1 + PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties: + NoExtraProperties: + description: no extra properties + data: + foo: + bar: test + valid: true + comment: null + UncleKeywordEvaluationIsNotSignificant: + description: uncle keyword evaluation is not significant + data: + foo: + bar: test + faz: test valid: false comment: null - AStringIsNotABoolean: - description: a string is not a boolean - data: foo + InPlaceApplicatorSiblingsAllofHasUnevaluated: + BaseCaseBothPropertiesPresent: + description: 'base case: both properties present' + data: + foo: 1 + bar: 1 valid: false comment: null - AnEmptyStringIsNotABoolean: - description: an empty string is not a boolean - data: '' + InPlaceApplicatorSiblingsBarIsMissing: + description: in place applicator siblings, bar is missing + data: + foo: 1 + valid: true + comment: null + InPlaceApplicatorSiblingsFooIsMissing: + description: in place applicator siblings, foo is missing + data: + bar: 1 valid: false comment: null - AnObjectIsNotABoolean: - description: an object is not a boolean - data: {} + InPlaceApplicatorSiblingsAnyofHasUnevaluated: + BaseCaseBothPropertiesPresent: + description: 'base case: both properties present' + data: + foo: 1 + bar: 1 valid: false comment: null - AnArrayIsNotABoolean: - description: an array is not a boolean - data: [] + InPlaceApplicatorSiblingsBarIsMissing: + description: in place applicator siblings, bar is missing + data: + foo: 1 valid: false comment: null - TrueIsABoolean: - description: true is a boolean - data: true + InPlaceApplicatorSiblingsFooIsMissing: + description: in place applicator siblings, foo is missing + data: + bar: 1 valid: true comment: null - FalseIsABoolean: - description: false is a boolean - data: false + UnevaluatedpropertiesSingleCyclicRef: + EmptyIsValid: + description: Empty is valid + data: {} valid: true comment: null - NullIsNotABoolean: - description: null is not a boolean - data: null - valid: false + SingleIsValid: + description: Single is valid + data: + x: {} + valid: true comment: null - NullTypeMatchesOnlyTheNullObject: - AnIntegerIsNotNull: - description: an integer is not null - data: 1 + UnevaluatedOn1StLevelIsInvalid: + description: Unevaluated on 1st level is invalid + data: + x: {} + y: {} valid: false comment: null - AFloatIsNotNull: - description: a float is not null - data: 1.1 - valid: false + NestedIsValid: + description: Nested is valid + data: + x: + x: {} + valid: true comment: null - ZeroIsNotNull: - description: zero is not null - data: 0 + UnevaluatedOn2NdLevelIsInvalid: + description: Unevaluated on 2nd level is invalid + data: + x: + x: {} + y: {} valid: false comment: null - AStringIsNotNull: - description: a string is not null - data: foo - valid: false + DeepNestedIsValid: + description: Deep nested is valid + data: + x: + x: + x: {} + valid: true comment: null - AnEmptyStringIsNotNull: - description: an empty string is not null - data: '' + UnevaluatedOn3RdLevelIsInvalid: + description: Unevaluated on 3rd level is invalid + data: + x: + x: + x: {} + y: {} valid: false comment: null - AnObjectIsNotNull: - description: an object is not null + UnevaluatedpropertiesRefInsideAllofOneof: + EmptyIsInvalidNoXOrY: + description: Empty is invalid (no x or y) data: {} valid: false comment: null - AnArrayIsNotNull: - description: an array is not null - data: [] + AAndBAreInvalidNoXOrY: + description: a and b are invalid (no x or y) + data: + a: 1 + b: 1 valid: false comment: null - TrueIsNotNull: - description: true is not null - data: true + XAndYAreInvalid: + description: x and y are invalid + data: + x: 1 + y: 1 valid: false comment: null - FalseIsNotNull: - description: false is not null - data: false - valid: false + AAndXAreValid: + description: a and x are valid + data: + a: 1 + x: 1 + valid: true comment: null - NullIsNull: - description: null is null - data: null + AAndYAreValid: + description: a and y are valid + data: + a: 1 + y: 1 valid: true comment: null - MultipleTypesCanBeSpecifiedInAnArray: - AnIntegerIsValid: - description: an integer is valid - data: 1 + AAndBAndXAreValid: + description: a and b and x are valid + data: + a: 1 + b: 1 + x: 1 valid: true comment: null - AStringIsValid: - description: a string is valid - data: foo + AAndBAndYAreValid: + description: a and b and y are valid + data: + a: 1 + b: 1 + y: 1 valid: true comment: null - AFloatIsInvalid: - description: a float is invalid - data: 1.1 + AAndBAndXAndYAreInvalid: + description: a and b and x and y are invalid + data: + a: 1 + b: 1 + x: 1 + y: 1 valid: false comment: null - AnObjectIsInvalid: - description: an object is invalid + DynamicEvalationInsideNestedRefs: + EmptyIsInvalid: + description: Empty is invalid data: {} valid: false comment: null - AnArrayIsInvalid: - description: an array is invalid - data: [] - valid: false + AIsValid: + description: a is valid + data: + a: 1 + valid: true comment: null - ABooleanIsInvalid: - description: a boolean is invalid - data: true - valid: false + BIsValid: + description: b is valid + data: + b: 1 + valid: true comment: null - NullIsInvalid: - description: null is invalid - data: null - valid: false + CIsValid: + description: c is valid + data: + c: 1 + valid: true comment: null - TypeAsArrayWithOneItem: - StringIsValid: - description: string is valid - data: foo + DIsValid: + description: d is valid + data: + d: 1 valid: true comment: null - NumberIsInvalid: - description: number is invalid - data: 123 + ABIsInvalid: + description: a + b is invalid + data: + a: 1 + b: 1 valid: false comment: null - TypeArrayOrObject: - ArrayIsValid: - description: array is valid + ACIsInvalid: + description: a + c is invalid data: - - 1 - - 2 - - 3 - valid: true + a: 1 + c: 1 + valid: false comment: null - ObjectIsValid: - description: object is valid + ADIsInvalid: + description: a + d is invalid data: - foo: 123 - valid: true + a: 1 + d: 1 + valid: false comment: null - NumberIsInvalid: - description: number is invalid - data: 123 + BCIsInvalid: + description: b + c is invalid + data: + b: 1 + c: 1 valid: false comment: null - StringIsInvalid: - description: string is invalid - data: foo + BDIsInvalid: + description: b + d is invalid + data: + b: 1 + d: 1 valid: false comment: null - NullIsInvalid: - description: null is invalid - data: null + CDIsInvalid: + description: c + d is invalid + data: + c: 1 + d: 1 valid: false comment: null - TypeArrayObjectOrNull: - ArrayIsValid: - description: array is valid + XxIsValid: + description: xx is valid data: - - 1 - - 2 - - 3 + xx: 1 valid: true comment: null - ObjectIsValid: - description: object is valid + XxFooxIsValid: + description: xx + foox is valid data: - foo: 123 + xx: 1 + foox: 1 valid: true comment: null - NullIsValid: - description: null is valid - data: null - valid: true + XxFooIsInvalid: + description: xx + foo is invalid + data: + xx: 1 + foo: 1 + valid: false comment: null - NumberIsInvalid: - description: number is invalid - data: 123 + XxAIsInvalid: + description: xx + a is invalid + data: + xx: 1 + a: 1 valid: false comment: null - StringIsInvalid: - description: string is invalid - data: foo + XxBIsInvalid: + description: xx + b is invalid + data: + xx: 1 + b: 1 valid: false comment: null - UnevaluateditemsAsSchema: - WithNoUnevaluatedItems: - description: with no unevaluated items - data: [] + XxCIsInvalid: + description: xx + c is invalid + data: + xx: 1 + c: 1 + valid: false + comment: null + XxDIsInvalid: + description: xx + d is invalid + data: + xx: 1 + d: 1 + valid: false + comment: null + AllIsValid: + description: all is valid + data: + all: 1 valid: true comment: null - WithValidUnevaluatedItems: - description: with valid unevaluated items + AllFooIsValid: + description: all + foo is valid data: - - foo + all: 1 + foo: 1 valid: true comment: null - WithInvalidUnevaluatedItems: - description: with invalid unevaluated items + AllAIsInvalid: + description: all + a is invalid data: - - 42 + all: 1 + a: 1 valid: false comment: null - UnevaluateditemsWithItems: - ValidUnderItems: - description: valid under items + UnevaluatedpropertiesWithNullValuedInstanceProperties: + AllowsNullValuedProperties: + description: allows null valued properties data: - - 5 - - 6 - - 7 - - 8 + foo: null valid: true - comment: no elements are considered by unevaluatedItems - InvalidUnderItems: - description: invalid under items - data: - - foo - - bar - - baz - valid: false comment: null - UnevaluateditemsDependsOnMultipleNestedContains: - 5NotEvaluatedPassesUnevaluateditems: - description: 5 not evaluated, passes unevaluatedItems + UnevaluatedpropertiesNotAffectedByPropertynames: + AllowsOnlyNumberProperties: + description: allows only number properties data: - - 2 - - 3 - - 4 - - 5 - - 6 + a: 1 valid: true comment: null - 7NotEvaluatedFailsUnevaluateditems: - description: 7 not evaluated, fails unevaluatedItems + StringPropertyIsInvalid: + description: string property is invalid data: - - 2 - - 3 - - 4 - - 7 - - 8 + a: b valid: false comment: null - UnevaluateditemsWithNullInstanceElements: - AllowsNullElements: - description: allows null elements + UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse: + ValidInCaseIfIsEvaluated: + description: valid in case if is evaluated data: - - null + foo: a valid: true comment: null + InvalidInCaseIfIsEvaluated: + description: invalid in case if is evaluated + data: + bar: a + valid: false + comment: null UniqueitemsValidation: UniqueArrayOfIntegersIsValid: description: unique array of integers is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index eb03ee6771c..4a67648e4ba 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -308,6 +308,14 @@ class ExclusionReason: "unevaluatedItems with nested prefixItems and items": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedItems with nested items": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, }, + (json_schema_test_draft, 'unevaluatedProperties.json'): { + "cousin unevaluatedProperties, true and false, false with properties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "nested unevaluatedProperties, outer true, inner false, properties inside": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "non-object instances are valid": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties can't see inside cousins (reverse order)": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties can't see inside cousins": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "nested unevaluatedProperties, outer false, inner true, properties inside": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + } } FILEPATH_TO_EXCLUDE_REASON = { (json_schema_test_draft, 'boolean_schema.json'): ExclusionReason.bug_does_not_support_boolean_schemas_in_location, @@ -359,8 +367,9 @@ class ExclusionReason: 'required.json': (json_schema_test_draft,), 'type.json': (json_schema_test_draft,), 'unevaluatedItems.json': (json_schema_test_draft,), + 'unevaluatedProperties.json': (json_schema_test_draft,), 'uniqueItems.json': (json_schema_test_draft,), -# 'unknownKeyword.json': (json_schema_test_draft,), + # 'unknownKeyword.json': (json_schema_test_draft,), } file_name_to_tag_name = { From 9657a48969d959f3c6b13d28d2afe674664a5559 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 27 Sep 2023 15:14:39 -0700 Subject: [PATCH 26/34] Disables 6 more test schemas --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 300 ------------------ .../3_1/unit_test_spec/spec_writer.py | 5 + 2 files changed, 5 insertions(+), 300 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 56352f251ba..38bb7b434b6 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4654,42 +4654,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithAdjacentPatternpropertiesRequestBody: - post: - operationId: postUnevaluatedpropertiesWithAdjacentPatternpropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentPatternproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentPatternproperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithAdjacentPatternpropertiesResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithAdjacentPatternpropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentPatternproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentPatternproperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody @@ -4726,42 +4690,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithNestedPropertiesRequestBody: - post: - operationId: postUnevaluatedpropertiesWithNestedPropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedProperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithNestedPropertiesResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithNestedPropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedProperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithNestedPatternpropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithNestedPatternpropertiesRequestBody @@ -5122,42 +5050,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithBooleanSchemasRequestBody: - post: - operationId: postUnevaluatedpropertiesWithBooleanSchemasRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithBooleanSchemas' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithBooleanSchemas' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithBooleanSchemasResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithBooleanSchemasResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithBooleanSchemas' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithBooleanSchemas' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithRefRequestBody: post: operationId: postUnevaluatedpropertiesWithRefRequestBody @@ -5374,42 +5266,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postInPlaceApplicatorSiblingsAnyofHasUnevaluatedRequestBody: - post: - operationId: postInPlaceApplicatorSiblingsAnyofHasUnevaluatedRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InPlaceApplicatorSiblingsAnyofHasUnevaluated' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAnyofHasUnevaluated' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postInPlaceApplicatorSiblingsAnyofHasUnevaluatedResponseBodyForContentTypes: - post: - operationId: postInPlaceApplicatorSiblingsAnyofHasUnevaluatedResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/InPlaceApplicatorSiblingsAnyofHasUnevaluated' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAnyofHasUnevaluated' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesSingleCyclicRefRequestBody: post: operationId: postUnevaluatedpropertiesSingleCyclicRefRequestBody @@ -5590,42 +5446,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody: - post: - operationId: postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElseResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUniqueitemsValidationRequestBody: post: operationId: postUniqueitemsValidationRequestBody @@ -6432,13 +6252,6 @@ components: foo: type: string unevaluatedProperties: false - UnevaluatedpropertiesWithAdjacentPatternproperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - patternProperties: - ^foo: - type: string - unevaluatedProperties: false UnevaluatedpropertiesWithAdjacentAdditionalproperties: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6447,17 +6260,6 @@ components: type: string additionalProperties: true unevaluatedProperties: false - UnevaluatedpropertiesWithNestedProperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - properties: - bar: - type: string - unevaluatedProperties: false UnevaluatedpropertiesWithNestedPatternproperties: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6612,15 +6414,6 @@ components: required: - bar unevaluatedProperties: false - UnevaluatedpropertiesWithBooleanSchemas: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - true - unevaluatedProperties: false UnevaluatedpropertiesWithRef: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6687,16 +6480,6 @@ components: anyOf: - properties: bar: true - InPlaceApplicatorSiblingsAnyofHasUnevaluated: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - allOf: - - properties: - foo: true - anyOf: - - properties: - bar: true - unevaluatedProperties: false UnevaluatedpropertiesSingleCyclicRef: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6770,13 +6553,6 @@ components: maxLength: 1 unevaluatedProperties: type: number - UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse: - $schema: https://json-schema.org/draft/2020-12/schema - if: - patternProperties: - foo: - type: string - unevaluatedProperties: false UniqueitemsValidation: $schema: https://json-schema.org/draft/2020-12/schema uniqueItems: true @@ -9940,20 +9716,6 @@ components: bar: bar valid: false comment: null - UnevaluatedpropertiesWithAdjacentPatternproperties: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: - foo: foo - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - bar: bar - valid: false - comment: null UnevaluatedpropertiesWithAdjacentAdditionalproperties: WithNoAdditionalProperties: description: with no additional properties @@ -9968,22 +9730,6 @@ components: bar: bar valid: true comment: null - UnevaluatedpropertiesWithNestedProperties: - WithNoAdditionalProperties: - description: with no additional properties - data: - foo: foo - bar: bar - valid: true - comment: null - WithAdditionalProperties: - description: with additional properties - data: - foo: foo - bar: bar - baz: baz - valid: false - comment: null UnevaluatedpropertiesWithNestedPatternproperties: WithNoAdditionalProperties: description: with no additional properties @@ -10186,19 +9932,6 @@ components: bar: bar valid: false comment: null - UnevaluatedpropertiesWithBooleanSchemas: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: - foo: foo - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - bar: bar - valid: false - comment: null UnevaluatedpropertiesWithRef: WithNoUnevaluatedProperties: description: with no unevaluated properties @@ -10293,26 +10026,6 @@ components: bar: 1 valid: false comment: null - InPlaceApplicatorSiblingsAnyofHasUnevaluated: - BaseCaseBothPropertiesPresent: - description: 'base case: both properties present' - data: - foo: 1 - bar: 1 - valid: false - comment: null - InPlaceApplicatorSiblingsBarIsMissing: - description: in place applicator siblings, bar is missing - data: - foo: 1 - valid: false - comment: null - InPlaceApplicatorSiblingsFooIsMissing: - description: in place applicator siblings, foo is missing - data: - bar: 1 - valid: true - comment: null UnevaluatedpropertiesSingleCyclicRef: EmptyIsValid: description: Empty is valid @@ -10583,19 +10296,6 @@ components: a: b valid: false comment: null - UnevaluatedpropertiesCanSeeAnnotationsFromIfWithoutThenAndElse: - ValidInCaseIfIsEvaluated: - description: valid in case if is evaluated - data: - foo: a - valid: true - comment: null - InvalidInCaseIfIsEvaluated: - description: invalid in case if is evaluated - data: - bar: a - valid: false - comment: null UniqueitemsValidation: UniqueArrayOfIntegersIsValid: description: unique array of integers is valid diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 4a67648e4ba..3f1fd082a9c 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -315,6 +315,11 @@ class ExclusionReason: "unevaluatedProperties can't see inside cousins (reverse order)": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties can't see inside cousins": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "nested unevaluatedProperties, outer false, inner true, properties inside": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties can see annotations from if without then and else": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with adjacent patternProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with nested properties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "in-place applicator siblings, anyOf has unevaluated": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with boolean schemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, } } FILEPATH_TO_EXCLUDE_REASON = { From 9ee5e6237c466a7aeb0918f76917af4568907291 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 27 Sep 2023 15:18:56 -0700 Subject: [PATCH 27/34] Disables 5 more test cases --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 460 ------------------ .../3_1/unit_test_spec/spec_writer.py | 5 + 2 files changed, 5 insertions(+), 460 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 38bb7b434b6..ba391283d0f 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4510,42 +4510,6 @@ paths: - path.post - contentType_json - unevaluatedItems - /requestBody/postUnevaluatedpropertiesTrueRequestBody: - post: - operationId: postUnevaluatedpropertiesTrueRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesTrue' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesTrueResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesTrueResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesTrue' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesTrue' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesSchemaRequestBody: post: operationId: postUnevaluatedpropertiesSchemaRequestBody @@ -4582,42 +4546,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesFalseRequestBody: - post: - operationId: postUnevaluatedpropertiesFalseRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesFalse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesFalse' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesFalseResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesFalseResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesFalse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesFalse' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithAdjacentPropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithAdjacentPropertiesRequestBody @@ -4942,42 +4870,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithIfThenElseThenNotDefinedRequestBody: - post: - operationId: postUnevaluatedpropertiesWithIfThenElseThenNotDefinedRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseThenNotDefined' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseThenNotDefined' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithIfThenElseThenNotDefinedResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithIfThenElseThenNotDefinedResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseThenNotDefined' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseThenNotDefined' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithIfThenElseElseNotDefinedRequestBody: post: operationId: postUnevaluatedpropertiesWithIfThenElseElseNotDefinedRequestBody @@ -5050,42 +4942,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithRefRequestBody: - post: - operationId: postUnevaluatedpropertiesWithRefRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithRef' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithRef' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithRefResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithRefResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithRef' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithRef' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody: post: operationId: postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody @@ -5338,42 +5194,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postDynamicEvalationInsideNestedRefsRequestBody: - post: - operationId: postDynamicEvalationInsideNestedRefsRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DynamicEvalationInsideNestedRefs' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/DynamicEvalationInsideNestedRefs' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postDynamicEvalationInsideNestedRefsResponseBodyForContentTypes: - post: - operationId: postDynamicEvalationInsideNestedRefsResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/DynamicEvalationInsideNestedRefs' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/DynamicEvalationInsideNestedRefs' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody @@ -6231,20 +6051,12 @@ components: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedItems: type: 'null' - UnevaluatedpropertiesTrue: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - unevaluatedProperties: true UnevaluatedpropertiesSchema: $schema: https://json-schema.org/draft/2020-12/schema type: object unevaluatedProperties: type: string minLength: 3 - UnevaluatedpropertiesFalse: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - unevaluatedProperties: false UnevaluatedpropertiesWithAdjacentProperties: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6368,22 +6180,6 @@ components: required: - baz unevaluatedProperties: false - UnevaluatedpropertiesWithIfThenElseThenNotDefined: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - if: - properties: - foo: - const: then - required: - - foo - else: - properties: - baz: - type: string - required: - - baz - unevaluatedProperties: false UnevaluatedpropertiesWithIfThenElseElseNotDefined: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6414,19 +6210,6 @@ components: required: - bar unevaluatedProperties: false - UnevaluatedpropertiesWithRef: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - $ref: '#/$defs/bar' - properties: - foo: - type: string - unevaluatedProperties: false - $defs: - bar: - properties: - bar: - type: string NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6509,40 +6292,6 @@ components: properties: y: true unevaluatedProperties: false - DynamicEvalationInsideNestedRefs: - $schema: https://json-schema.org/draft/2020-12/schema - $defs: - one: - oneOf: - - $ref: '#/$defs/two' - - required: - - b - properties: - b: true - - required: - - xx - patternProperties: - x: true - - required: - - all - unevaluatedProperties: true - two: - oneOf: - - required: - - c - properties: - c: true - - required: - - d - properties: - d: true - oneOf: - - $ref: '#/$defs/one' - - required: - - a - properties: - a: true - unevaluatedProperties: false UnevaluatedpropertiesWithNullValuedInstanceProperties: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedProperties: @@ -9660,18 +9409,6 @@ components: - null valid: true comment: null - UnevaluatedpropertiesTrue: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: {} - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - valid: true - comment: null UnevaluatedpropertiesSchema: WithNoUnevaluatedProperties: description: with no unevaluated properties @@ -9690,18 +9427,6 @@ components: foo: fo valid: false comment: null - UnevaluatedpropertiesFalse: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: {} - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - valid: false - comment: null UnevaluatedpropertiesWithAdjacentProperties: WithNoUnevaluatedProperties: description: with no unevaluated properties @@ -9860,35 +9585,6 @@ components: baz: baz valid: false comment: null - UnevaluatedpropertiesWithIfThenElseThenNotDefined: - WhenIfIsTrueAndHasNoUnevaluatedProperties: - description: when if is true and has no unevaluated properties - data: - foo: then - bar: bar - valid: false - comment: null - WhenIfIsTrueAndHasUnevaluatedProperties: - description: when if is true and has unevaluated properties - data: - foo: then - bar: bar - baz: baz - valid: false - comment: null - WhenIfIsFalseAndHasNoUnevaluatedProperties: - description: when if is false and has no unevaluated properties - data: - baz: baz - valid: true - comment: null - WhenIfIsFalseAndHasUnevaluatedProperties: - description: when if is false and has unevaluated properties - data: - foo: else - baz: baz - valid: false - comment: null UnevaluatedpropertiesWithIfThenElseElseNotDefined: WhenIfIsTrueAndHasNoUnevaluatedProperties: description: when if is true and has no unevaluated properties @@ -9932,22 +9628,6 @@ components: bar: bar valid: false comment: null - UnevaluatedpropertiesWithRef: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: - foo: foo - bar: bar - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - bar: bar - baz: baz - valid: false - comment: null NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: WithNoNestedUnevaluatedProperties: description: with no nested unevaluated properties @@ -10136,146 +9816,6 @@ components: y: 1 valid: false comment: null - DynamicEvalationInsideNestedRefs: - EmptyIsInvalid: - description: Empty is invalid - data: {} - valid: false - comment: null - AIsValid: - description: a is valid - data: - a: 1 - valid: true - comment: null - BIsValid: - description: b is valid - data: - b: 1 - valid: true - comment: null - CIsValid: - description: c is valid - data: - c: 1 - valid: true - comment: null - DIsValid: - description: d is valid - data: - d: 1 - valid: true - comment: null - ABIsInvalid: - description: a + b is invalid - data: - a: 1 - b: 1 - valid: false - comment: null - ACIsInvalid: - description: a + c is invalid - data: - a: 1 - c: 1 - valid: false - comment: null - ADIsInvalid: - description: a + d is invalid - data: - a: 1 - d: 1 - valid: false - comment: null - BCIsInvalid: - description: b + c is invalid - data: - b: 1 - c: 1 - valid: false - comment: null - BDIsInvalid: - description: b + d is invalid - data: - b: 1 - d: 1 - valid: false - comment: null - CDIsInvalid: - description: c + d is invalid - data: - c: 1 - d: 1 - valid: false - comment: null - XxIsValid: - description: xx is valid - data: - xx: 1 - valid: true - comment: null - XxFooxIsValid: - description: xx + foox is valid - data: - xx: 1 - foox: 1 - valid: true - comment: null - XxFooIsInvalid: - description: xx + foo is invalid - data: - xx: 1 - foo: 1 - valid: false - comment: null - XxAIsInvalid: - description: xx + a is invalid - data: - xx: 1 - a: 1 - valid: false - comment: null - XxBIsInvalid: - description: xx + b is invalid - data: - xx: 1 - b: 1 - valid: false - comment: null - XxCIsInvalid: - description: xx + c is invalid - data: - xx: 1 - c: 1 - valid: false - comment: null - XxDIsInvalid: - description: xx + d is invalid - data: - xx: 1 - d: 1 - valid: false - comment: null - AllIsValid: - description: all is valid - data: - all: 1 - valid: true - comment: null - AllFooIsValid: - description: all + foo is valid - data: - all: 1 - foo: 1 - valid: true - comment: null - AllAIsInvalid: - description: all + a is invalid - data: - all: 1 - a: 1 - valid: false - comment: null UnevaluatedpropertiesWithNullValuedInstanceProperties: AllowsNullValuedProperties: description: allows null valued properties diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 3f1fd082a9c..d2f17dea4f3 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -320,6 +320,11 @@ class ExclusionReason: "unevaluatedProperties with nested properties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "in-place applicator siblings, anyOf has unevaluated": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with boolean schemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "dynamic evalation inside nested refs": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties false": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with if/then/else, then not defined": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with $ref": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties true": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, } } FILEPATH_TO_EXCLUDE_REASON = { From 8f894d853c0ec4e2abdade5b43bb09fb369ca1d6 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 27 Sep 2023 15:27:21 -0700 Subject: [PATCH 28/34] Disables 4 test cases --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 328 ------------------ .../3_1/unit_test_spec/spec_writer.py | 4 + 2 files changed, 4 insertions(+), 328 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index ba391283d0f..f570c0fa6ee 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4870,78 +4870,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithIfThenElseElseNotDefinedRequestBody: - post: - operationId: postUnevaluatedpropertiesWithIfThenElseElseNotDefinedRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseElseNotDefined' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseElseNotDefined' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithIfThenElseElseNotDefinedResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithIfThenElseElseNotDefinedResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElseElseNotDefined' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElseElseNotDefined' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithDependentschemasRequestBody: - post: - operationId: postUnevaluatedpropertiesWithDependentschemasRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithDependentschemas' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithDependentschemas' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithDependentschemasResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithDependentschemasResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithDependentschemas' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithDependentschemas' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody: post: operationId: postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody @@ -5086,42 +5014,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postInPlaceApplicatorSiblingsAllofHasUnevaluatedRequestBody: - post: - operationId: postInPlaceApplicatorSiblingsAllofHasUnevaluatedRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InPlaceApplicatorSiblingsAllofHasUnevaluated' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAllofHasUnevaluated' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postInPlaceApplicatorSiblingsAllofHasUnevaluatedResponseBodyForContentTypes: - post: - operationId: postInPlaceApplicatorSiblingsAllofHasUnevaluatedResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/InPlaceApplicatorSiblingsAllofHasUnevaluated' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/InPlaceApplicatorSiblingsAllofHasUnevaluated' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesSingleCyclicRefRequestBody: post: operationId: postUnevaluatedpropertiesSingleCyclicRefRequestBody @@ -5158,42 +5050,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesRefInsideAllofOneofRequestBody: - post: - operationId: postUnevaluatedpropertiesRefInsideAllofOneofRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesRefInsideAllofOneof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesRefInsideAllofOneof' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesRefInsideAllofOneofResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesRefInsideAllofOneofResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesRefInsideAllofOneof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesRefInsideAllofOneof' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody @@ -6180,36 +6036,6 @@ components: required: - baz unevaluatedProperties: false - UnevaluatedpropertiesWithIfThenElseElseNotDefined: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - if: - properties: - foo: - const: then - required: - - foo - then: - properties: - bar: - type: string - required: - - bar - unevaluatedProperties: false - UnevaluatedpropertiesWithDependentschemas: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - dependentSchemas: - foo: - properties: - bar: - const: bar - required: - - bar - unevaluatedProperties: false NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6253,16 +6079,6 @@ components: properties: faz: type: string - InPlaceApplicatorSiblingsAllofHasUnevaluated: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - allOf: - - properties: - foo: true - unevaluatedProperties: false - anyOf: - - properties: - bar: true UnevaluatedpropertiesSingleCyclicRef: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6270,28 +6086,6 @@ components: x: $ref: '#' unevaluatedProperties: false - UnevaluatedpropertiesRefInsideAllofOneof: - $schema: https://json-schema.org/draft/2020-12/schema - $defs: - one: - properties: - a: true - two: - required: - - x - properties: - x: true - allOf: - - $ref: '#/$defs/one' - - properties: - b: true - - oneOf: - - $ref: '#/$defs/two' - - required: - - y - properties: - y: true - unevaluatedProperties: false UnevaluatedpropertiesWithNullValuedInstanceProperties: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedProperties: @@ -9585,49 +9379,6 @@ components: baz: baz valid: false comment: null - UnevaluatedpropertiesWithIfThenElseElseNotDefined: - WhenIfIsTrueAndHasNoUnevaluatedProperties: - description: when if is true and has no unevaluated properties - data: - foo: then - bar: bar - valid: true - comment: null - WhenIfIsTrueAndHasUnevaluatedProperties: - description: when if is true and has unevaluated properties - data: - foo: then - bar: bar - baz: baz - valid: false - comment: null - WhenIfIsFalseAndHasNoUnevaluatedProperties: - description: when if is false and has no unevaluated properties - data: - baz: baz - valid: false - comment: null - WhenIfIsFalseAndHasUnevaluatedProperties: - description: when if is false and has unevaluated properties - data: - foo: else - baz: baz - valid: false - comment: null - UnevaluatedpropertiesWithDependentschemas: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: - foo: foo - bar: bar - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - bar: bar - valid: false - comment: null NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: WithNoNestedUnevaluatedProperties: description: with no nested unevaluated properties @@ -9686,26 +9437,6 @@ components: faz: test valid: false comment: null - InPlaceApplicatorSiblingsAllofHasUnevaluated: - BaseCaseBothPropertiesPresent: - description: 'base case: both properties present' - data: - foo: 1 - bar: 1 - valid: false - comment: null - InPlaceApplicatorSiblingsBarIsMissing: - description: in place applicator siblings, bar is missing - data: - foo: 1 - valid: true - comment: null - InPlaceApplicatorSiblingsFooIsMissing: - description: in place applicator siblings, foo is missing - data: - bar: 1 - valid: false - comment: null UnevaluatedpropertiesSingleCyclicRef: EmptyIsValid: description: Empty is valid @@ -9757,65 +9488,6 @@ components: y: {} valid: false comment: null - UnevaluatedpropertiesRefInsideAllofOneof: - EmptyIsInvalidNoXOrY: - description: Empty is invalid (no x or y) - data: {} - valid: false - comment: null - AAndBAreInvalidNoXOrY: - description: a and b are invalid (no x or y) - data: - a: 1 - b: 1 - valid: false - comment: null - XAndYAreInvalid: - description: x and y are invalid - data: - x: 1 - y: 1 - valid: false - comment: null - AAndXAreValid: - description: a and x are valid - data: - a: 1 - x: 1 - valid: true - comment: null - AAndYAreValid: - description: a and y are valid - data: - a: 1 - y: 1 - valid: true - comment: null - AAndBAndXAreValid: - description: a and b and x are valid - data: - a: 1 - b: 1 - x: 1 - valid: true - comment: null - AAndBAndYAreValid: - description: a and b and y are valid - data: - a: 1 - b: 1 - y: 1 - valid: true - comment: null - AAndBAndXAndYAreInvalid: - description: a and b and x and y are invalid - data: - a: 1 - b: 1 - x: 1 - y: 1 - valid: false - comment: null UnevaluatedpropertiesWithNullValuedInstanceProperties: AllowsNullValuedProperties: description: allows null valued properties diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index d2f17dea4f3..1239d52e7a0 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -325,6 +325,10 @@ class ExclusionReason: "unevaluatedProperties with if/then/else, then not defined": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with $ref": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties true": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with if/then/else, else not defined": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties + ref inside allOf / oneOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "in-place applicator siblings, allOf has unevaluated": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with dependentSchemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, } } FILEPATH_TO_EXCLUDE_REASON = { From 78ce8a91cb5153e1a0c383a9584fdb18f3d582f0 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 28 Sep 2023 11:51:22 -0700 Subject: [PATCH 29/34] Disables 5 more tests --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 391 ------------------ .../3_1/unit_test_spec/spec_writer.py | 5 + 2 files changed, 5 insertions(+), 391 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index f570c0fa6ee..5e75fa39c51 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4726,42 +4726,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithAnyofRequestBody: - post: - operationId: postUnevaluatedpropertiesWithAnyofRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithAnyof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAnyof' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithAnyofResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithAnyofResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithAnyof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAnyof' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithOneofRequestBody: post: operationId: postUnevaluatedpropertiesWithOneofRequestBody @@ -4834,114 +4798,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithIfThenElseRequestBody: - post: - operationId: postUnevaluatedpropertiesWithIfThenElseRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElse' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithIfThenElseResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithIfThenElseResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithIfThenElse' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithIfThenElse' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody: - post: - operationId: postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideResponseBodyForContentTypes: - post: - operationId: postNestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutsideResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideRequestBody: - post: - operationId: postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideResponseBodyForContentTypes: - post: - operationId: postNestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutsideResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody: post: operationId: postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody @@ -5014,42 +4870,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesSingleCyclicRefRequestBody: - post: - operationId: postUnevaluatedpropertiesSingleCyclicRefRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesSingleCyclicRef' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesSingleCyclicRef' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesSingleCyclicRefResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesSingleCyclicRefResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesSingleCyclicRef' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesSingleCyclicRef' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody @@ -5959,29 +5779,6 @@ components: unevaluatedProperties: type: string maxLength: 2 - UnevaluatedpropertiesWithAnyof: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - anyOf: - - properties: - bar: - const: bar - required: - - bar - - properties: - baz: - const: baz - required: - - baz - - properties: - quux: - const: quux - required: - - quux - unevaluatedProperties: false UnevaluatedpropertiesWithOneof: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6014,46 +5811,6 @@ components: required: - bar unevaluatedProperties: false - UnevaluatedpropertiesWithIfThenElse: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - if: - properties: - foo: - const: then - required: - - foo - then: - properties: - bar: - type: string - required: - - bar - else: - properties: - baz: - type: string - required: - - baz - unevaluatedProperties: false - NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - unevaluatedProperties: true - unevaluatedProperties: false - NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - unevaluatedProperties: false - unevaluatedProperties: true CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -6079,13 +5836,6 @@ components: properties: faz: type: string - UnevaluatedpropertiesSingleCyclicRef: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - x: - $ref: '#' - unevaluatedProperties: false UnevaluatedpropertiesWithNullValuedInstanceProperties: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedProperties: @@ -9293,39 +9043,6 @@ components: bar: bar valid: true comment: null - UnevaluatedpropertiesWithAnyof: - WhenOneMatchesAndHasNoUnevaluatedProperties: - description: when one matches and has no unevaluated properties - data: - foo: foo - bar: bar - valid: true - comment: null - WhenOneMatchesAndHasUnevaluatedProperties: - description: when one matches and has unevaluated properties - data: - foo: foo - bar: bar - baz: not-baz - valid: false - comment: null - WhenTwoMatchAndHasNoUnevaluatedProperties: - description: when two match and has no unevaluated properties - data: - foo: foo - bar: bar - baz: baz - valid: true - comment: null - WhenTwoMatchAndHasUnevaluatedProperties: - description: when two match and has unevaluated properties - data: - foo: foo - bar: bar - baz: baz - quux: not-quux - valid: false - comment: null UnevaluatedpropertiesWithOneof: WithNoUnevaluatedProperties: description: with no unevaluated properties @@ -9350,63 +9067,6 @@ components: bar: bar valid: false comment: null - UnevaluatedpropertiesWithIfThenElse: - WhenIfIsTrueAndHasNoUnevaluatedProperties: - description: when if is true and has no unevaluated properties - data: - foo: then - bar: bar - valid: true - comment: null - WhenIfIsTrueAndHasUnevaluatedProperties: - description: when if is true and has unevaluated properties - data: - foo: then - bar: bar - baz: baz - valid: false - comment: null - WhenIfIsFalseAndHasNoUnevaluatedProperties: - description: when if is false and has no unevaluated properties - data: - baz: baz - valid: true - comment: null - WhenIfIsFalseAndHasUnevaluatedProperties: - description: when if is false and has unevaluated properties - data: - foo: else - baz: baz - valid: false - comment: null - NestedUnevaluatedpropertiesOuterFalseInnerTruePropertiesOutside: - WithNoNestedUnevaluatedProperties: - description: with no nested unevaluated properties - data: - foo: foo - valid: true - comment: null - WithNestedUnevaluatedProperties: - description: with nested unevaluated properties - data: - foo: foo - bar: bar - valid: true - comment: null - NestedUnevaluatedpropertiesOuterTrueInnerFalsePropertiesOutside: - WithNoNestedUnevaluatedProperties: - description: with no nested unevaluated properties - data: - foo: foo - valid: false - comment: null - WithNestedUnevaluatedProperties: - description: with nested unevaluated properties - data: - foo: foo - bar: bar - valid: false - comment: null CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: WithNoNestedUnevaluatedProperties: description: with no nested unevaluated properties @@ -9437,57 +9097,6 @@ components: faz: test valid: false comment: null - UnevaluatedpropertiesSingleCyclicRef: - EmptyIsValid: - description: Empty is valid - data: {} - valid: true - comment: null - SingleIsValid: - description: Single is valid - data: - x: {} - valid: true - comment: null - UnevaluatedOn1StLevelIsInvalid: - description: Unevaluated on 1st level is invalid - data: - x: {} - y: {} - valid: false - comment: null - NestedIsValid: - description: Nested is valid - data: - x: - x: {} - valid: true - comment: null - UnevaluatedOn2NdLevelIsInvalid: - description: Unevaluated on 2nd level is invalid - data: - x: - x: {} - y: {} - valid: false - comment: null - DeepNestedIsValid: - description: Deep nested is valid - data: - x: - x: - x: {} - valid: true - comment: null - UnevaluatedOn3RdLevelIsInvalid: - description: Unevaluated on 3rd level is invalid - data: - x: - x: - x: {} - y: {} - valid: false - comment: null UnevaluatedpropertiesWithNullValuedInstanceProperties: AllowsNullValuedProperties: description: allows null valued properties diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 1239d52e7a0..c2345f7430c 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -329,6 +329,11 @@ class ExclusionReason: "unevaluatedProperties + ref inside allOf / oneOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "in-place applicator siblings, allOf has unevaluated": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with dependentSchemas": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "nested unevaluatedProperties, outer false, inner true, properties outside": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties + single cyclic ref": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "nested unevaluatedProperties, outer true, inner false, properties outside": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with anyOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with if/then/else": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, } } FILEPATH_TO_EXCLUDE_REASON = { From 3769b4c9f3f02381baed7a4c6ce4b97cd7e51e59 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 28 Sep 2023 11:56:24 -0700 Subject: [PATCH 30/34] Disables 5 more broken tests --- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 298 ------------------ .../3_1/unit_test_spec/spec_writer.py | 5 + 2 files changed, 5 insertions(+), 298 deletions(-) diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 5e75fa39c51..91a07d888ff 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4546,42 +4546,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithAdjacentPropertiesRequestBody: - post: - operationId: postUnevaluatedpropertiesWithAdjacentPropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentProperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithAdjacentPropertiesResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithAdjacentPropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithAdjacentProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithAdjacentProperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody @@ -4618,114 +4582,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithNestedPatternpropertiesRequestBody: - post: - operationId: postUnevaluatedpropertiesWithNestedPatternpropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedPatternproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedPatternproperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithNestedPatternpropertiesResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithNestedPatternpropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedPatternproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedPatternproperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithNestedAdditionalpropertiesRequestBody: - post: - operationId: postUnevaluatedpropertiesWithNestedAdditionalpropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedAdditionalproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedAdditionalproperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithNestedAdditionalpropertiesResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithNestedAdditionalpropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedAdditionalproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedAdditionalproperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesRequestBody: - post: - operationId: postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedUnevaluatedproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedUnevaluatedproperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithNestedUnevaluatedpropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNestedUnevaluatedproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNestedUnevaluatedproperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithOneofRequestBody: post: operationId: postUnevaluatedpropertiesWithOneofRequestBody @@ -4762,42 +4618,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithNotRequestBody: - post: - operationId: postUnevaluatedpropertiesWithNotRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNot' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNot' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithNotResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithNotResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithNot' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithNot' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody: post: operationId: postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody @@ -5733,13 +5553,6 @@ components: unevaluatedProperties: type: string minLength: 3 - UnevaluatedpropertiesWithAdjacentProperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - unevaluatedProperties: false UnevaluatedpropertiesWithAdjacentAdditionalproperties: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -5748,37 +5561,6 @@ components: type: string additionalProperties: true unevaluatedProperties: false - UnevaluatedpropertiesWithNestedPatternproperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - patternProperties: - ^bar: - type: string - unevaluatedProperties: false - UnevaluatedpropertiesWithNestedAdditionalproperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - additionalProperties: true - unevaluatedProperties: false - UnevaluatedpropertiesWithNestedUnevaluatedproperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - allOf: - - unevaluatedProperties: true - unevaluatedProperties: - type: string - maxLength: 2 UnevaluatedpropertiesWithOneof: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -5797,20 +5579,6 @@ components: required: - baz unevaluatedProperties: false - UnevaluatedpropertiesWithNot: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - not: - not: - properties: - bar: - const: bar - required: - - bar - unevaluatedProperties: false CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: $schema: https://json-schema.org/draft/2020-12/schema type: object @@ -8971,20 +8739,6 @@ components: foo: fo valid: false comment: null - UnevaluatedpropertiesWithAdjacentProperties: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: - foo: foo - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - bar: bar - valid: false - comment: null UnevaluatedpropertiesWithAdjacentAdditionalproperties: WithNoAdditionalProperties: description: with no additional properties @@ -8999,50 +8753,6 @@ components: bar: bar valid: true comment: null - UnevaluatedpropertiesWithNestedPatternproperties: - WithNoAdditionalProperties: - description: with no additional properties - data: - foo: foo - bar: bar - valid: true - comment: null - WithAdditionalProperties: - description: with additional properties - data: - foo: foo - bar: bar - baz: baz - valid: false - comment: null - UnevaluatedpropertiesWithNestedAdditionalproperties: - WithNoAdditionalProperties: - description: with no additional properties - data: - foo: foo - valid: true - comment: null - WithAdditionalProperties: - description: with additional properties - data: - foo: foo - bar: bar - valid: true - comment: null - UnevaluatedpropertiesWithNestedUnevaluatedproperties: - WithNoNestedUnevaluatedProperties: - description: with no nested unevaluated properties - data: - foo: foo - valid: true - comment: null - WithNestedUnevaluatedProperties: - description: with nested unevaluated properties - data: - foo: foo - bar: bar - valid: true - comment: null UnevaluatedpropertiesWithOneof: WithNoUnevaluatedProperties: description: with no unevaluated properties @@ -9059,14 +8769,6 @@ components: quux: quux valid: false comment: null - UnevaluatedpropertiesWithNot: - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - bar: bar - valid: false - comment: null CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: WithNoNestedUnevaluatedProperties: description: with no nested unevaluated properties diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index c2345f7430c..0a2877556a2 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -334,6 +334,11 @@ class ExclusionReason: "nested unevaluatedProperties, outer true, inner false, properties outside": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with anyOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with if/then/else": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with adjacent properties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with nested patternProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with nested unevaluatedProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with not": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with nested additionalProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, } } FILEPATH_TO_EXCLUDE_REASON = { From 70ef8f7b339c813e0630b0b41ce3f5e3c855cb07 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 28 Sep 2023 12:23:02 -0700 Subject: [PATCH 31/34] Adds unevaluatedProperties tests --- .../python/.openapi-generator/FILES | 254 +++++++++--------- .../client/3_1_0_unit_test/python/README.md | 12 + .../docs/apis/tags/content_type_json_api.md | 8 + .../apis/tags/operation_request_body_api.md | 4 + .../python/docs/apis/tags/path_post_api.md | 8 + ...esponse_content_content_type_schema_api.md | 4 + .../apis/tags/unevaluated_properties_api.md | 21 ++ ...roperties_not_affected_by_propertynames.md | 12 + .../schema/unevaluatedproperties_schema.md | 12 + ...ties_with_adjacent_additionalproperties.md | 43 +++ ...es_with_null_valued_instance_properties.md | 12 + .../post.md | 116 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 118 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 116 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++++++ .../content/application_json/schema.md | 10 + .../post.md | 111 ++++++++ .../content/application_json/schema.md | 10 + .../src/unit_test_api/apis/path_to_api.py | 24 ++ ..._affected_by_propertynames_request_body.py | 13 + ...evaluatedproperties_schema_request_body.py | 13 + ...acent_additionalproperties_request_body.py | 13 + ...valued_instance_properties_request_body.py | 13 + ...tynames_response_body_for_content_types.py | 13 + ..._schema_response_body_for_content_types.py | 13 + ...perties_response_body_for_content_types.py | 13 + ...perties_response_body_for_content_types.py | 13 + .../src/unit_test_api/apis/tag_to_api.py | 3 + .../apis/tags/content_type_json_api.py | 16 ++ .../apis/tags/operation_request_body_api.py | 8 + .../unit_test_api/apis/tags/path_post_api.py | 16 ++ ...esponse_content_content_type_schema_api.py | 8 + .../apis/tags/unevaluated_properties_api.py | 32 +++ ...roperties_not_affected_by_propertynames.py | 38 +++ .../schema/unevaluatedproperties_schema.py | 47 ++++ ...ties_with_adjacent_additionalproperties.py | 120 +++++++++ ...es_with_null_valued_instance_properties.py | 27 ++ .../components/schemas/__init__.py | 4 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 +++++++++ .../post/request_body/__init__.py | 20 ++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 ++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 + ...roperties_not_affected_by_propertynames.py | 46 ++++ .../test_unevaluatedproperties_schema.py | 54 ++++ ...ties_with_adjacent_additionalproperties.py | 47 ++++ ...es_with_null_valued_instance_properties.py | 35 +++ .../__init__.py | 0 .../test_post.py | 85 ++++++ .../__init__.py | 0 .../test_post.py | 115 ++++++++ .../__init__.py | 0 .../test_post.py | 102 +++++++ .../__init__.py | 0 .../test_post.py | 68 +++++ .../__init__.py | 0 .../test_post.py | 96 +++++++ .../__init__.py | 0 .../test_post.py | 126 +++++++++ .../__init__.py | 0 .../test_post.py | 103 +++++++ .../__init__.py | 0 .../test_post.py | 69 +++++ .../schemas/schema_cls/_schema_dict.hbs | 6 +- .../unit_test_spec/3_1_0_unit_test_spec.yaml | 197 -------------- .../3_1/unit_test_spec/spec_writer.py | 3 + 138 files changed, 4051 insertions(+), 328 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_properties_api.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_not_affected_by_propertynames.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_null_valued_instance_properties.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_not_affected_by_propertynames.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_null_valued_instance_properties.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_not_affected_by_propertynames.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_adjacent_additionalproperties.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_null_valued_instance_properties.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index 472cf96d4c0..bbe2467a1eb 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -38,6 +38,7 @@ docs/apis/tags/required_api.md docs/apis/tags/response_content_content_type_schema_api.md docs/apis/tags/type_api.md docs/apis/tags/unevaluated_items_api.md +docs/apis/tags/unevaluated_properties_api.md docs/apis/tags/unique_items_api.md docs/components/schema/_not.md docs/components/schema/a_schema_given_for_prefixitems.md @@ -159,6 +160,10 @@ docs/components/schema/unevaluateditems_as_schema.md docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md docs/components/schema/unevaluateditems_with_items.md docs/components/schema/unevaluateditems_with_null_instance_elements.md +docs/components/schema/unevaluatedproperties_not_affected_by_propertynames.md +docs/components/schema/unevaluatedproperties_schema.md +docs/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md +docs/components/schema/unevaluatedproperties_with_null_valued_instance_properties.md docs/components/schema/uniqueitems_false_validation.md docs/components/schema/uniqueitems_false_with_an_array_of_items.md docs/components/schema/uniqueitems_validation.md @@ -407,6 +412,14 @@ docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md docs/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md +docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md +docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md +docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md +docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md docs/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md @@ -663,6 +676,14 @@ docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_cont docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md +docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md @@ -811,6 +832,10 @@ src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_reques src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py +src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body.py src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py @@ -939,6 +964,10 @@ src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_respo src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py @@ -985,6 +1014,7 @@ src/unit_test_api/apis/tags/required_api.py src/unit_test_api/apis/tags/response_content_content_type_schema_api.py src/unit_test_api/apis/tags/type_api.py src/unit_test_api/apis/tags/unevaluated_items_api.py +src/unit_test_api/apis/tags/unevaluated_properties_api.py src/unit_test_api/apis/tags/unique_items_api.py src/unit_test_api/components/__init__.py src/unit_test_api/components/schema/__init__.py @@ -1108,6 +1138,10 @@ src/unit_test_api/components/schema/unevaluateditems_as_schema.py src/unit_test_api/components/schema/unevaluateditems_depends_on_multiple_nested_contains.py src/unit_test_api/components/schema/unevaluateditems_with_items.py src/unit_test_api/components/schema/unevaluateditems_with_null_instance_elements.py +src/unit_test_api/components/schema/unevaluatedproperties_not_affected_by_propertynames.py +src/unit_test_api/components/schema/unevaluatedproperties_schema.py +src/unit_test_api/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.py +src/unit_test_api/components/schema/unevaluatedproperties_with_null_valued_instance_properties.py src/unit_test_api/components/schema/uniqueitems_false_validation.py src/unit_test_api/components/schema/uniqueitems_false_with_an_array_of_items.py src/unit_test_api/components/schema/uniqueitems_validation.py @@ -2202,6 +2236,42 @@ src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_el src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/__init__.py src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -3234,6 +3304,38 @@ src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_e src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -3321,134 +3423,14 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test__not.py -test/components/schema/test_a_schema_given_for_prefixitems.py -test/components/schema/test_additional_items_are_allowed_by_default.py -test/components/schema/test_additionalproperties_are_allowed_by_default.py -test/components/schema/test_additionalproperties_can_exist_by_itself.py -test/components/schema/test_additionalproperties_does_not_look_in_applicators.py -test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py -test/components/schema/test_additionalproperties_with_schema.py -test/components/schema/test_allof.py -test/components/schema/test_allof_combined_with_anyof_oneof.py -test/components/schema/test_allof_simple_types.py -test/components/schema/test_allof_with_base_schema.py -test/components/schema/test_allof_with_one_empty_schema.py -test/components/schema/test_allof_with_the_first_empty_schema.py -test/components/schema/test_allof_with_the_last_empty_schema.py -test/components/schema/test_allof_with_two_empty_schemas.py -test/components/schema/test_anyof.py -test/components/schema/test_anyof_complex_types.py -test/components/schema/test_anyof_with_base_schema.py -test/components/schema/test_anyof_with_one_empty_schema.py -test/components/schema/test_array_type_matches_arrays.py -test/components/schema/test_boolean_type_matches_booleans.py -test/components/schema/test_by_int.py -test/components/schema/test_by_number.py -test/components/schema/test_by_small_number.py -test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_contains_keyword_validation.py -test/components/schema/test_contains_with_null_instance_elements.py -test/components/schema/test_date_format.py -test/components/schema/test_date_time_format.py -test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py -test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py -test/components/schema/test_dependent_schemas_single_dependency.py -test/components/schema/test_duration_format.py -test/components/schema/test_email_format.py -test/components/schema/test_empty_dependents.py -test/components/schema/test_enum_with0_does_not_match_false.py -test/components/schema/test_enum_with1_does_not_match_true.py -test/components/schema/test_enum_with_escaped_characters.py -test/components/schema/test_enum_with_false_does_not_match0.py -test/components/schema/test_enum_with_true_does_not_match1.py -test/components/schema/test_enums_in_properties.py -test/components/schema/test_float_division_inf.py -test/components/schema/test_forbidden_property.py -test/components/schema/test_hostname_format.py -test/components/schema/test_idn_email_format.py -test/components/schema/test_idn_hostname_format.py -test/components/schema/test_integer_type_matches_integers.py -test/components/schema/test_ipv4_format.py -test/components/schema/test_ipv6_format.py -test/components/schema/test_iri_format.py -test/components/schema/test_iri_reference_format.py -test/components/schema/test_items_contains.py -test/components/schema/test_items_does_not_look_in_applicators_valid_case.py -test/components/schema/test_items_with_null_instance_elements.py -test/components/schema/test_json_pointer_format.py -test/components/schema/test_maxcontains_without_contains_is_ignored.py -test/components/schema/test_maximum_validation.py -test/components/schema/test_maximum_validation_with_unsigned_integer.py -test/components/schema/test_maxitems_validation.py -test/components/schema/test_maxlength_validation.py -test/components/schema/test_maxproperties0_means_the_object_is_empty.py -test/components/schema/test_maxproperties_validation.py -test/components/schema/test_mincontains_without_contains_is_ignored.py -test/components/schema/test_minimum_validation.py -test/components/schema/test_minimum_validation_with_signed_integer.py -test/components/schema/test_minitems_validation.py -test/components/schema/test_minlength_validation.py -test/components/schema/test_minproperties_validation.py -test/components/schema/test_multiple_dependents_required.py -test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py -test/components/schema/test_multiple_types_can_be_specified_in_an_array.py -test/components/schema/test_nested_allof_to_check_validation_semantics.py -test/components/schema/test_nested_anyof_to_check_validation_semantics.py -test/components/schema/test_nested_items.py -test/components/schema/test_nested_oneof_to_check_validation_semantics.py -test/components/schema/test_non_ascii_pattern_with_additionalproperties.py -test/components/schema/test_not_more_complex_schema.py -test/components/schema/test_nul_characters_in_strings.py -test/components/schema/test_null_type_matches_only_the_null_object.py -test/components/schema/test_number_type_matches_numbers.py -test/components/schema/test_object_properties_validation.py -test/components/schema/test_object_type_matches_objects.py -test/components/schema/test_oneof.py -test/components/schema/test_oneof_complex_types.py -test/components/schema/test_oneof_with_base_schema.py -test/components/schema/test_oneof_with_empty_schema.py -test/components/schema/test_oneof_with_required.py -test/components/schema/test_pattern_is_not_anchored.py -test/components/schema/test_pattern_validation.py -test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py -test/components/schema/test_patternproperties_with_null_valued_instance_properties.py -test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py -test/components/schema/test_prefixitems_with_null_instance_elements.py -test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py -test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_properties_with_escaped_characters.py -test/components/schema/test_properties_with_null_valued_instance_properties.py -test/components/schema/test_property_named_ref_that_is_not_a_reference.py -test/components/schema/test_propertynames_validation.py -test/components/schema/test_regex_format.py -test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py -test/components/schema/test_relative_json_pointer_format.py -test/components/schema/test_required_default_validation.py -test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_required_validation.py -test/components/schema/test_required_with_empty_array.py -test/components/schema/test_required_with_escaped_characters.py -test/components/schema/test_simple_enum_validation.py -test/components/schema/test_single_dependency.py -test/components/schema/test_small_multiple_of_large_integer.py -test/components/schema/test_string_type_matches_strings.py -test/components/schema/test_time_format.py -test/components/schema/test_type_array_object_or_null.py -test/components/schema/test_type_array_or_object.py -test/components/schema/test_type_as_array_with_one_item.py -test/components/schema/test_unevaluateditems_as_schema.py -test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py -test/components/schema/test_unevaluateditems_with_items.py -test/components/schema/test_unevaluateditems_with_null_instance_elements.py -test/components/schema/test_uniqueitems_false_validation.py -test/components/schema/test_uniqueitems_false_with_an_array_of_items.py -test/components/schema/test_uniqueitems_validation.py -test/components/schema/test_uniqueitems_with_an_array_of_items.py -test/components/schema/test_uri_format.py -test/components/schema/test_uri_reference_format.py -test/components/schema/test_uri_template_format.py -test/components/schema/test_uuid_format.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3945,6 +3927,14 @@ test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/ test/test_paths/test_request_body_post_unevaluateditems_with_items_request_body/test_post.py test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/__init__.py test/test_paths/test_request_body_post_unevaluateditems_with_null_instance_elements_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/test_post.py +test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py +test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/test_post.py test/test_paths/test_request_body_post_uniqueitems_false_validation_request_body/__init__.py test/test_paths/test_request_body_post_uniqueitems_false_validation_request_body/test_post.py test/test_paths/test_request_body_post_uniqueitems_false_with_an_array_of_items_request_body/__init__.py @@ -4201,6 +4191,14 @@ test/test_paths/test_response_body_post_unevaluateditems_with_items_response_bod test/test_paths/test_response_body_post_unevaluateditems_with_items_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_uniqueitems_false_validation_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_uniqueitems_false_validation_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 19595ce3e8e..d7cedd60c59 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -290,6 +290,10 @@ HTTP request | Method | Description /requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_request_body](docs/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | /requestBody/postUnevaluateditemsWithItemsRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_items_request_body](docs/paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | /requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_null_instance_elements_request_body](docs/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | +/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_request_body](docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_request_body](docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_request_body](docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_request_body](docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) | +/requestBody/postUnevaluatedpropertiesSchemaRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluatedproperties_schema_request_body](docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_schema_request_body](docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_schema_request_body](docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_schema_request_body](docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) | +/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) | +/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_request_body](docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) | /requestBody/postUniqueitemsFalseValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_validation_request_body](docs/paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | /requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_with_an_array_of_items_request_body](docs/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | /requestBody/postUniqueitemsValidationRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_validation_request_body](docs/paths/request_body_post_uniqueitems_validation_request_body/post.md) | @@ -418,6 +422,10 @@ HTTP request | Method | Description /responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | /responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_with_items_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | /responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes **post** | [UnevaluatedItemsApi](docs/apis/tags/unevaluated_items_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluateditems_with_null_instance_elements_response_body_for_content_types](docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | +/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) | +/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluatedproperties_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_schema_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) | +/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) | +/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) [UnevaluatedPropertiesApi](docs/apis/tags/unevaluated_properties_api.md).[post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types](docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | /responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_uniqueitems_false_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | /responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) | /responseBody/postUniqueitemsValidationResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) [UniqueItemsApi](docs/apis/tags/unique_items_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_uniqueitems_validation_response_body_for_content_types](docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) | @@ -551,6 +559,10 @@ Class | Description [UnevaluateditemsDependsOnMultipleNestedContains](docs/components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | [UnevaluateditemsWithItems](docs/components/schema/unevaluateditems_with_items.md) | [UnevaluateditemsWithNullInstanceElements](docs/components/schema/unevaluateditems_with_null_instance_elements.md) | +[UnevaluatedpropertiesNotAffectedByPropertynames](docs/components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | +[UnevaluatedpropertiesSchema](docs/components/schema/unevaluatedproperties_schema.md) | +[UnevaluatedpropertiesWithAdjacentAdditionalproperties](docs/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | +[UnevaluatedpropertiesWithNullValuedInstanceProperties](docs/components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | [UniqueitemsFalseValidation](docs/components/schema/uniqueitems_false_validation.md) | [UniqueitemsFalseWithAnArrayOfItems](docs/components/schema/uniqueitems_false_with_an_array_of_items.md) | [UniqueitemsValidation](docs/components/schema/uniqueitems_validation.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 2b606770de1..368f38c3233 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -249,6 +249,14 @@ Method | Description [**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | [**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | [**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_request_body**](../../paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_schema_request_body**](../../paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) | +[**post_unevaluatedproperties_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_uniqueitems_false_validation_request_body**](../../paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | [**post_uniqueitems_false_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | [**post_uniqueitems_false_with_an_array_of_items_request_body**](../../paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index d99530083d1..da212dbeb30 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -129,6 +129,10 @@ Method | Description [**post_unevaluateditems_depends_on_multiple_nested_contains_request_body**](../../paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post.md) | [**post_unevaluateditems_with_items_request_body**](../../paths/request_body_post_unevaluateditems_with_items_request_body/post.md) | [**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_request_body**](../../paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) | +[**post_unevaluatedproperties_schema_request_body**](../../paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) | [**post_uniqueitems_false_validation_request_body**](../../paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | [**post_uniqueitems_false_with_an_array_of_items_request_body**](../../paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | [**post_uniqueitems_validation_request_body**](../../paths/request_body_post_uniqueitems_validation_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index f2ec1e96624..c9b4283b43c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -249,6 +249,14 @@ Method | Description [**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | [**post_unevaluateditems_with_null_instance_elements_request_body**](../../paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post.md) | [**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_request_body**](../../paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_schema_request_body**](../../paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) | +[**post_unevaluatedproperties_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_uniqueitems_false_validation_request_body**](../../paths/request_body_post_uniqueitems_false_validation_request_body/post.md) | [**post_uniqueitems_false_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | [**post_uniqueitems_false_with_an_array_of_items_request_body**](../../paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index 87e0ebbcd16..fdd0bb98023 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -129,6 +129,10 @@ Method | Description [**post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post.md) | [**post_unevaluateditems_with_items_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post.md) | [**post_unevaluateditems_with_null_instance_elements_response_body_for_content_types**](../../paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | [**post_uniqueitems_false_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.md) | [**post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post.md) | [**post_uniqueitems_validation_response_body_for_content_types**](../../paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_properties_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_properties_api.md new file mode 100644 index 00000000000..8c9b70ce875 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/unevaluated_properties_api.md @@ -0,0 +1,21 @@ + +unit_test_api.apis.tags.unevaluated_properties_api +# UnevaluatedPropertiesApi + +All URIs are relative to the selected server +- The server is selected by passing in server_info and server_index into api_configuration.ApiConfiguration +- Code samples in endpoints documents show how to do this +- server_index can also be passed in to endpoint calls, see endpoint documentation + +Method | Description +------ | ------------- +[**post_unevaluatedproperties_not_affected_by_propertynames_request_body**](../../paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md) | +[**post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_schema_request_body**](../../paths/request_body_post_unevaluatedproperties_schema_request_body/post.md) | +[**post_unevaluatedproperties_schema_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md) | +[**post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_request_body**](../../paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md) | +[**post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types**](../../paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md) | + +[[Back to top]](#top) [[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_not_affected_by_propertynames.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_not_affected_by_propertynames.md new file mode 100644 index 00000000000..af2f9cb1723 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_not_affected_by_propertynames.md @@ -0,0 +1,12 @@ +# UnevaluatedpropertiesNotAffectedByPropertynames +unit_test_api.components.schema.unevaluatedproperties_not_affected_by_propertynames +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_schema.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_schema.md new file mode 100644 index 00000000000..93e9eb7c1d4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_schema.md @@ -0,0 +1,12 @@ +# UnevaluatedpropertiesSchema +unit_test_api.components.schema.unevaluatedproperties_schema +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict | schemas.immutabledict | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md new file mode 100644 index 00000000000..9b2e2686308 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md @@ -0,0 +1,43 @@ +# UnevaluatedpropertiesWithAdjacentAdditionalproperties +unit_test_api.components.schema.unevaluatedproperties_with_adjacent_additionalproperties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +[UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | + +## UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput +``` +type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] +``` +Key | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**foo** | str | | [optional] +**any_string_name** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] + +## UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict +``` +base class: schemas.immutabledict[str, str] + +``` +### __new__ method +Keyword Argument | Type | Description | Notes +---------------- | ---- | ----------- | ----- +**foo** | str, schemas.Unset | | [optional] +**kwargs** | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method + +### properties +Property | Type | Description | Notes +-------- | ---- | ----------- | ----- +**foo** | str, schemas.Unset | | [optional] + +### methods +Method | Input Type | Return Type | Notes +------ | ---------- | ----------- | ------ +from_dict_ | [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | a constructor +get_additional_property_ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO, schemas.Unset | provides type safety for additional properties + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_null_valued_instance_properties.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_null_valued_instance_properties.md new file mode 100644 index 00000000000..255a7e30e97 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/unevaluatedproperties_with_null_valued_instance_properties.md @@ -0,0 +1,12 @@ +# UnevaluatedpropertiesWithNullValuedInstanceProperties +unit_test_api.components.schema.unevaluatedproperties_with_null_valued_instance_properties +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md new file mode 100644 index 00000000000..6f27c351ecf --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_not_affected_by_propertynames_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluatedproperties_not_affected_by_propertynames_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_not_affected_by_propertynames_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_not_affected_by_propertynames_request_body | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody | This api is only for path=/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames**](../../components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames.validate(None) + try: + api_response = api_instance.post_unevaluatedproperties_not_affected_by_propertynames_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_unevaluatedproperties_not_affected_by_propertynames_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..b39e7a04313 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames**](../../../../../../components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md new file mode 100644 index 00000000000..d1f1b1236a2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_schema_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluatedproperties_schema_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_schema_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_schema_request_body | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluatedpropertiesSchemaRequestBody | This api is only for path=/requestBody/postUnevaluatedpropertiesSchemaRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluatedpropertiesSchemaRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_schema.UnevaluatedpropertiesSchema**](../../components/schema/unevaluatedproperties_schema.md) | dict, schemas.immutabledict | schemas.immutabledict + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluatedproperties_schema.UnevaluatedpropertiesSchema.validate(None) + try: + api_response = api_instance.post_unevaluatedproperties_schema_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_unevaluatedproperties_schema_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..62bea2882ea --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_schema.UnevaluatedpropertiesSchema**](../../../../../../components/schema/unevaluatedproperties_schema.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md new file mode 100644 index 00000000000..4d68a00a83a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post.md @@ -0,0 +1,118 @@ +unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_with_adjacent_additionalproperties_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluatedproperties_with_adjacent_additionalproperties_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_with_adjacent_additionalproperties_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_with_adjacent_additionalproperties_request_body | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody | This api is only for path=/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[[unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict)] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties**](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties.validate({ + "foo": None, + }) + try: + api_response = api_instance.post_unevaluatedproperties_with_adjacent_additionalproperties_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_unevaluatedproperties_with_adjacent_additionalproperties_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..9a11d9a8d98 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties**](../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md new file mode 100644 index 00000000000..b021c9a5e19 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_with_null_valued_instance_properties_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_unevaluatedproperties_with_null_valued_instance_properties_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_with_null_valued_instance_properties_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_with_null_valued_instance_properties_request_body | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody | This api is only for path=/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties**](../../components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties.validate(None) + try: + api_response = api_instance.post_unevaluatedproperties_with_null_valued_instance_properties_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_unevaluatedproperties_with_null_valued_instance_properties_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..68e1cefb7d3 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties**](../../../../../../components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md new file mode 100644 index 00000000000..48ff6c4a748 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames**](../../components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..6bdbbc92548 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames**](../../../../../../../../components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md new file mode 100644 index 00000000000..d41251711b9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_schema_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_schema_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_schema_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post_unevaluatedproperties_schema_response_body_for_content_types | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluatedpropertiesSchemaResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_schema.UnevaluatedpropertiesSchema**](../../components/schema/unevaluatedproperties_schema.md) | dict, schemas.immutabledict | schemas.immutabledict + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluatedproperties_schema_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_unevaluatedproperties_schema_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..565e15fd598 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_schema.UnevaluatedpropertiesSchema**](../../../../../../../../components/schema/unevaluatedproperties_schema.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md new file mode 100644 index 00000000000..1594d0285c4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties**](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..0e0fcd53470 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties**](../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md new file mode 100644 index 00000000000..723f2736ace --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types | [UnevaluatedPropertiesApi](../../apis/tags/unevaluated_properties_api.md) | This api is only for tag=unevaluatedProperties | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes | This api is only for path=/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties**](../../components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import path_post_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = path_post_api.PathPostApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling PathPostApi->post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to UnevaluatedPropertiesApi API]](../../apis/tags/unevaluated_properties_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..b9be51d37ed --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties**](../../../../../../../../components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 9cce35e0d97..12f228d0a8a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -121,6 +121,10 @@ from unit_test_api.apis.paths.request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body import RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody from unit_test_api.apis.paths.request_body_post_unevaluateditems_with_items_request_body import RequestBodyPostUnevaluateditemsWithItemsRequestBody from unit_test_api.apis.paths.request_body_post_unevaluateditems_with_null_instance_elements_request_body import RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body import RequestBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_schema_request_body import RequestBodyPostUnevaluatedpropertiesSchemaRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body import RequestBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody +from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body import RequestBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.apis.paths.request_body_post_uniqueitems_false_validation_request_body import RequestBodyPostUniqueitemsFalseValidationRequestBody from unit_test_api.apis.paths.request_body_post_uniqueitems_false_with_an_array_of_items_request_body import RequestBodyPostUniqueitemsFalseWithAnArrayOfItemsRequestBody from unit_test_api.apis.paths.request_body_post_uniqueitems_validation_request_body import RequestBodyPostUniqueitemsValidationRequestBody @@ -249,6 +253,10 @@ from unit_test_api.apis.paths.response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types import ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_unevaluateditems_with_items_response_body_for_content_types import ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types import ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesSchemaResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types import ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types import ResponseBodyPostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_uniqueitems_validation_response_body_for_content_types import ResponseBodyPostUniqueitemsValidationResponseBodyForContentTypes @@ -381,6 +389,10 @@ "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody": typing.Type[RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody], "/requestBody/postUnevaluateditemsWithItemsRequestBody": typing.Type[RequestBodyPostUnevaluateditemsWithItemsRequestBody], "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody": typing.Type[RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody], + "/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody": typing.Type[RequestBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody], + "/requestBody/postUnevaluatedpropertiesSchemaRequestBody": typing.Type[RequestBodyPostUnevaluatedpropertiesSchemaRequestBody], + "/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody": typing.Type[RequestBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody], + "/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody": typing.Type[RequestBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody], "/requestBody/postUniqueitemsFalseValidationRequestBody": typing.Type[RequestBodyPostUniqueitemsFalseValidationRequestBody], "/requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody": typing.Type[RequestBodyPostUniqueitemsFalseWithAnArrayOfItemsRequestBody], "/requestBody/postUniqueitemsValidationRequestBody": typing.Type[RequestBodyPostUniqueitemsValidationRequestBody], @@ -509,6 +521,10 @@ "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes], "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes], "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes], + "/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes], + "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluatedpropertiesSchemaResponseBodyForContentTypes], + "/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes], + "/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes], "/responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes], "/responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes": typing.Type[ResponseBodyPostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes], "/responseBody/postUniqueitemsValidationResponseBodyForContentTypes": typing.Type[ResponseBodyPostUniqueitemsValidationResponseBodyForContentTypes], @@ -642,6 +658,10 @@ "/requestBody/postUnevaluateditemsDependsOnMultipleNestedContainsRequestBody": RequestBodyPostUnevaluateditemsDependsOnMultipleNestedContainsRequestBody, "/requestBody/postUnevaluateditemsWithItemsRequestBody": RequestBodyPostUnevaluateditemsWithItemsRequestBody, "/requestBody/postUnevaluateditemsWithNullInstanceElementsRequestBody": RequestBodyPostUnevaluateditemsWithNullInstanceElementsRequestBody, + "/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody": RequestBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody, + "/requestBody/postUnevaluatedpropertiesSchemaRequestBody": RequestBodyPostUnevaluatedpropertiesSchemaRequestBody, + "/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody": RequestBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody, + "/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody": RequestBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody, "/requestBody/postUniqueitemsFalseValidationRequestBody": RequestBodyPostUniqueitemsFalseValidationRequestBody, "/requestBody/postUniqueitemsFalseWithAnArrayOfItemsRequestBody": RequestBodyPostUniqueitemsFalseWithAnArrayOfItemsRequestBody, "/requestBody/postUniqueitemsValidationRequestBody": RequestBodyPostUniqueitemsValidationRequestBody, @@ -770,6 +790,10 @@ "/responseBody/postUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsDependsOnMultipleNestedContainsResponseBodyForContentTypes, "/responseBody/postUnevaluateditemsWithItemsResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsWithItemsResponseBodyForContentTypes, "/responseBody/postUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes": ResponseBodyPostUnevaluateditemsWithNullInstanceElementsResponseBodyForContentTypes, + "/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes": ResponseBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes, + "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes": ResponseBodyPostUnevaluatedpropertiesSchemaResponseBodyForContentTypes, + "/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes": ResponseBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, + "/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes": ResponseBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, "/responseBody/postUniqueitemsFalseValidationResponseBodyForContentTypes": ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes, "/responseBody/postUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes": ResponseBodyPostUniqueitemsFalseWithAnArrayOfItemsResponseBodyForContentTypes, "/responseBody/postUniqueitemsValidationResponseBodyForContentTypes": ResponseBodyPostUniqueitemsValidationResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py new file mode 100644 index 00000000000..f5ba965a421 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py new file mode 100644 index 00000000000..b6c0611d749 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluatedpropertiesSchemaRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py new file mode 100644 index 00000000000..f3fbd14de1e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py new file mode 100644 index 00000000000..b0a4801c714 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.operation import ApiForPost + + +class RequestBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py new file mode 100644 index 00000000000..a1e2af6a36f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py new file mode 100644 index 00000000000..94d30f8ea86 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluatedpropertiesSchemaResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py new file mode 100644 index 00000000000..0b3aa8912f9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py new file mode 100644 index 00000000000..8e86f76a57f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py index 61072ff03d2..c3714df6fb3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tag_to_api.py @@ -33,6 +33,7 @@ from unit_test_api.apis.tags.properties_api import PropertiesApi from unit_test_api.apis.tags.content_type_json_api import ContentTypeJsonApi from unit_test_api.apis.tags.max_properties_api import MaxPropertiesApi +from unit_test_api.apis.tags.unevaluated_properties_api import UnevaluatedPropertiesApi from unit_test_api.apis.tags.const_api import ConstApi from unit_test_api.apis.tags.enum_api import EnumApi from unit_test_api.apis.tags.max_items_api import MaxItemsApi @@ -74,6 +75,7 @@ "properties": typing.Type[PropertiesApi], "contentType_json": typing.Type[ContentTypeJsonApi], "maxProperties": typing.Type[MaxPropertiesApi], + "unevaluatedProperties": typing.Type[UnevaluatedPropertiesApi], "const": typing.Type[ConstApi], "enum": typing.Type[EnumApi], "maxItems": typing.Type[MaxItemsApi], @@ -116,6 +118,7 @@ "properties": PropertiesApi, "contentType_json": ContentTypeJsonApi, "maxProperties": MaxPropertiesApi, + "unevaluatedProperties": UnevaluatedPropertiesApi, "const": ConstApi, "enum": EnumApi, "maxItems": MaxItemsApi, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index eba04af546c..235315702ad 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -34,6 +34,7 @@ from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_type_array_or_object_request_body.post.operation import PostTypeArrayOrObjectRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.operation import PostUnevaluatedpropertiesSchemaRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.operation import PostPropertyNamedRefThatIsNotAReferenceRequestBody @@ -56,6 +57,7 @@ from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody +from unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.operation import PostOneofWithRequiredRequestBody from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody @@ -74,6 +76,7 @@ from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes @@ -95,6 +98,7 @@ from unit_test_api.paths.request_body_post_maxitems_validation_request_body.post.operation import PostMaxitemsValidationRequestBody from unit_test_api.paths.request_body_post_uniqueitems_false_validation_request_body.post.operation import PostUniqueitemsFalseValidationRequestBody from unit_test_api.paths.request_body_post_pattern_is_not_anchored_request_body.post.operation import PostPatternIsNotAnchoredRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.response_body_post_idn_hostname_format_response_body_for_content_types.post.operation import PostIdnHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.operation import PostEnumWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody @@ -105,6 +109,7 @@ from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes @@ -161,6 +166,7 @@ from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody @@ -176,6 +182,7 @@ from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes @@ -189,6 +196,7 @@ from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import PostPropertynamesValidationRequestBody from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes @@ -293,6 +301,7 @@ class ContentTypeJsonApi( PostConstNulCharactersInStringsRequestBody, PostIdnEmailFormatResponseBodyForContentTypes, PostTypeArrayOrObjectRequestBody, + PostUnevaluatedpropertiesSchemaRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, PostEnumsInPropertiesResponseBodyForContentTypes, PostPropertyNamedRefThatIsNotAReferenceRequestBody, @@ -315,6 +324,7 @@ class ContentTypeJsonApi( PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, + PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes, PostSingleDependencyRequestBody, PostOneofWithRequiredRequestBody, PostIriFormatRequestBody, @@ -333,6 +343,7 @@ class ContentTypeJsonApi( PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, @@ -354,6 +365,7 @@ class ContentTypeJsonApi( PostMaxitemsValidationRequestBody, PostUniqueitemsFalseValidationRequestBody, PostPatternIsNotAnchoredRequestBody, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody, PostIdnHostnameFormatResponseBodyForContentTypes, PostEnumWithEscapedCharactersRequestBody, PostIpv6FormatRequestBody, @@ -364,6 +376,7 @@ class ContentTypeJsonApi( PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, + PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostMinimumValidationResponseBodyForContentTypes, @@ -420,6 +433,7 @@ class ContentTypeJsonApi( PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, @@ -435,6 +449,7 @@ class ContentTypeJsonApi( PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, @@ -448,6 +463,7 @@ class ContentTypeJsonApi( PostPropertynamesValidationRequestBody, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes, PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostPatternIsNotAnchoredResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index b886173379a..b941fbcd7e3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -29,6 +29,7 @@ from unit_test_api.paths.request_body_post_integer_type_matches_integers_request_body.post.operation import PostIntegerTypeMatchesIntegersRequestBody from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody from unit_test_api.paths.request_body_post_type_array_or_object_request_body.post.operation import PostTypeArrayOrObjectRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.operation import PostUnevaluatedpropertiesSchemaRequestBody from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.operation import PostPropertyNamedRefThatIsNotAReferenceRequestBody @@ -80,6 +81,7 @@ from unit_test_api.paths.request_body_post_a_schema_given_for_prefixitems_request_body.post.operation import PostASchemaGivenForPrefixitemsRequestBody from unit_test_api.paths.request_body_post_enum_with1_does_not_match_true_request_body.post.operation import PostEnumWith1DoesNotMatchTrueRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody from unit_test_api.paths.request_body_post_required_with_empty_array_request_body.post.operation import PostRequiredWithEmptyArrayRequestBody @@ -104,6 +106,7 @@ from unit_test_api.paths.request_body_post_uniqueitems_false_validation_request_body.post.operation import PostUniqueitemsFalseValidationRequestBody from unit_test_api.paths.request_body_post_pattern_is_not_anchored_request_body.post.operation import PostPatternIsNotAnchoredRequestBody from unit_test_api.paths.request_body_post_string_type_matches_strings_request_body.post.operation import PostStringTypeMatchesStringsRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.request_body_post_additionalproperties_does_not_look_in_applicators_request_body.post.operation import PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody from unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.operation import PostEnumWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody @@ -111,6 +114,7 @@ from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.post.operation import PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody from unit_test_api.paths.request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody @@ -160,6 +164,7 @@ class OperationRequestBodyApi( PostIntegerTypeMatchesIntegersRequestBody, PostConstNulCharactersInStringsRequestBody, PostTypeArrayOrObjectRequestBody, + PostUnevaluatedpropertiesSchemaRequestBody, PostIdnEmailFormatRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, PostPropertyNamedRefThatIsNotAReferenceRequestBody, @@ -211,6 +216,7 @@ class OperationRequestBodyApi( PostASchemaGivenForPrefixitemsRequestBody, PostEnumWith1DoesNotMatchTrueRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostNotMoreComplexSchemaRequestBody, PostRequiredWithEmptyArrayRequestBody, @@ -235,6 +241,7 @@ class OperationRequestBodyApi( PostUniqueitemsFalseValidationRequestBody, PostPatternIsNotAnchoredRequestBody, PostStringTypeMatchesStringsRequestBody, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody, PostAdditionalpropertiesDoesNotLookInApplicatorsRequestBody, PostEnumWithEscapedCharactersRequestBody, PostIpv6FormatRequestBody, @@ -242,6 +249,7 @@ class OperationRequestBodyApi( PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, + PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostPatternpropertiesValidatesPropertiesMatchingARegexRequestBody, PostPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 50577db3534..af444fa7278 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -34,6 +34,7 @@ from unit_test_api.paths.request_body_post_const_nul_characters_in_strings_request_body.post.operation import PostConstNulCharactersInStringsRequestBody from unit_test_api.paths.response_body_post_idn_email_format_response_body_for_content_types.post.operation import PostIdnEmailFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_type_array_or_object_request_body.post.operation import PostTypeArrayOrObjectRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.operation import PostUnevaluatedpropertiesSchemaRequestBody from unit_test_api.paths.request_body_post_maximum_validation_with_unsigned_integer_request_body.post.operation import PostMaximumValidationWithUnsignedIntegerRequestBody from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_property_named_ref_that_is_not_a_reference_request_body.post.operation import PostPropertyNamedRefThatIsNotAReferenceRequestBody @@ -56,6 +57,7 @@ from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes from unit_test_api.paths.request_body_post_ipv4_format_request_body.post.operation import PostIpv4FormatRequestBody +from unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_single_dependency_request_body.post.operation import PostSingleDependencyRequestBody from unit_test_api.paths.request_body_post_oneof_with_required_request_body.post.operation import PostOneofWithRequiredRequestBody from unit_test_api.paths.request_body_post_iri_format_request_body.post.operation import PostIriFormatRequestBody @@ -74,6 +76,7 @@ from unit_test_api.paths.request_body_post_anyof_with_base_schema_request_body.post.operation import PostAnyofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_object_type_matches_objects_request_body.post.operation import PostObjectTypeMatchesObjectsRequestBody from unit_test_api.paths.request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.post.operation import PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody from unit_test_api.paths.request_body_post_enum_with_false_does_not_match0_request_body.post.operation import PostEnumWithFalseDoesNotMatch0RequestBody from unit_test_api.paths.response_body_post_hostname_format_response_body_for_content_types.post.operation import PostHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_required_with_empty_array_response_body_for_content_types.post.operation import PostRequiredWithEmptyArrayResponseBodyForContentTypes @@ -95,6 +98,7 @@ from unit_test_api.paths.request_body_post_maxitems_validation_request_body.post.operation import PostMaxitemsValidationRequestBody from unit_test_api.paths.request_body_post_uniqueitems_false_validation_request_body.post.operation import PostUniqueitemsFalseValidationRequestBody from unit_test_api.paths.request_body_post_pattern_is_not_anchored_request_body.post.operation import PostPatternIsNotAnchoredRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody from unit_test_api.paths.response_body_post_idn_hostname_format_response_body_for_content_types.post.operation import PostIdnHostnameFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_enum_with_escaped_characters_request_body.post.operation import PostEnumWithEscapedCharactersRequestBody from unit_test_api.paths.request_body_post_ipv6_format_request_body.post.operation import PostIpv6FormatRequestBody @@ -105,6 +109,7 @@ from unit_test_api.paths.request_body_post_allof_with_two_empty_schemas_request_body.post.operation import PostAllofWithTwoEmptySchemasRequestBody from unit_test_api.paths.request_body_post_allof_simple_types_request_body.post.operation import PostAllofSimpleTypesRequestBody from unit_test_api.paths.request_body_post_required_validation_request_body.post.operation import PostRequiredValidationRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody from unit_test_api.paths.response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes from unit_test_api.paths.request_body_post_additionalproperties_are_allowed_by_default_request_body.post.operation import PostAdditionalpropertiesAreAllowedByDefaultRequestBody from unit_test_api.paths.response_body_post_minimum_validation_response_body_for_content_types.post.operation import PostMinimumValidationResponseBodyForContentTypes @@ -161,6 +166,7 @@ from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody @@ -176,6 +182,7 @@ from unit_test_api.paths.response_body_post_uniqueitems_validation_response_body_for_content_types.post.operation import PostUniqueitemsValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.post.operation import PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body.post.operation import PostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes @@ -189,6 +196,7 @@ from unit_test_api.paths.request_body_post_propertynames_validation_request_body.post.operation import PostPropertynamesValidationRequestBody from unit_test_api.paths.request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.post.operation import PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_duration_format_request_body.post.operation import PostDurationFormatRequestBody from unit_test_api.paths.request_body_post_regex_format_request_body.post.operation import PostRegexFormatRequestBody from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes @@ -293,6 +301,7 @@ class PathPostApi( PostConstNulCharactersInStringsRequestBody, PostIdnEmailFormatResponseBodyForContentTypes, PostTypeArrayOrObjectRequestBody, + PostUnevaluatedpropertiesSchemaRequestBody, PostMaximumValidationWithUnsignedIntegerRequestBody, PostEnumsInPropertiesResponseBodyForContentTypes, PostPropertyNamedRefThatIsNotAReferenceRequestBody, @@ -315,6 +324,7 @@ class PathPostApi( PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, PostIpv4FormatRequestBody, + PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes, PostSingleDependencyRequestBody, PostOneofWithRequiredRequestBody, PostIriFormatRequestBody, @@ -333,6 +343,7 @@ class PathPostApi( PostAnyofWithBaseSchemaRequestBody, PostObjectTypeMatchesObjectsRequestBody, PostPrefixitemsValidationAdjustsTheStartingIndexForItemsRequestBody, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody, PostEnumWithFalseDoesNotMatch0RequestBody, PostHostnameFormatResponseBodyForContentTypes, PostRequiredWithEmptyArrayResponseBodyForContentTypes, @@ -354,6 +365,7 @@ class PathPostApi( PostMaxitemsValidationRequestBody, PostUniqueitemsFalseValidationRequestBody, PostPatternIsNotAnchoredRequestBody, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody, PostIdnHostnameFormatResponseBodyForContentTypes, PostEnumWithEscapedCharactersRequestBody, PostIpv6FormatRequestBody, @@ -364,6 +376,7 @@ class PathPostApi( PostAllofWithTwoEmptySchemasRequestBody, PostAllofSimpleTypesRequestBody, PostRequiredValidationRequestBody, + PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootResponseBodyForContentTypes, PostAdditionalpropertiesAreAllowedByDefaultRequestBody, PostMinimumValidationResponseBodyForContentTypes, @@ -420,6 +433,7 @@ class PathPostApi( PostDateTimeFormatResponseBodyForContentTypes, PostIdnEmailFormatRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, @@ -435,6 +449,7 @@ class PathPostApi( PostUniqueitemsValidationResponseBodyForContentTypes, PostMultipleTypesCanBeSpecifiedInAnArrayResponseBodyForContentTypes, PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostNonAsciiPatternWithAdditionalpropertiesRequestBody, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, @@ -448,6 +463,7 @@ class PathPostApi( PostPropertynamesValidationRequestBody, PostRequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesRequestBody, PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes, PostDurationFormatRequestBody, PostRegexFormatRequestBody, PostPatternIsNotAnchoredResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 538131190b3..90445a84e47 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -38,6 +38,7 @@ from unit_test_api.paths.response_body_post_date_time_format_response_body_for_content_types.post.operation import PostDateTimeFormatResponseBodyForContentTypes from unit_test_api.paths.response_body_post_enums_in_properties_response_body_for_content_types.post.operation import PostEnumsInPropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes @@ -53,13 +54,16 @@ from unit_test_api.paths.response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.post.operation import PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.post.operation import PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_minitems_validation_response_body_for_content_types.post.operation import PostMinitemsValidationResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_simple_types_response_body_for_content_types.post.operation import PostAllofSimpleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.post.operation import PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_maximum_validation_response_body_for_content_types.post.operation import PostMaximumValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_oneof_with_base_schema_response_body_for_content_types.post.operation import PostOneofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_single_dependency_response_body_for_content_types.post.operation import PostSingleDependencyResponseBodyForContentTypes from unit_test_api.paths.response_body_post_object_properties_validation_response_body_for_content_types.post.operation import PostObjectPropertiesValidationResponseBodyForContentTypes from unit_test_api.paths.response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_allof_response_body_for_content_types.post.operation import PostAllofResponseBodyForContentTypes from unit_test_api.paths.response_body_post_pattern_is_not_anchored_response_body_for_content_types.post.operation import PostPatternIsNotAnchoredResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes @@ -169,6 +173,7 @@ class ResponseContentContentTypeSchemaApi( PostDateTimeFormatResponseBodyForContentTypes, PostEnumsInPropertiesResponseBodyForContentTypes, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, PostNestedItemsResponseBodyForContentTypes, PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, @@ -184,13 +189,16 @@ class ResponseContentContentTypeSchemaApi( PostAdditionalItemsAreAllowedByDefaultResponseBodyForContentTypes, PostMaxcontainsWithoutContainsIsIgnoredResponseBodyForContentTypes, PostMinitemsValidationResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, PostAllofSimpleTypesResponseBodyForContentTypes, PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes, + PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes, PostMaximumValidationResponseBodyForContentTypes, PostOneofWithBaseSchemaResponseBodyForContentTypes, PostSingleDependencyResponseBodyForContentTypes, PostObjectPropertiesValidationResponseBodyForContentTypes, PostPatternpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes, PostAllofResponseBodyForContentTypes, PostPatternIsNotAnchoredResponseBodyForContentTypes, PostAdditionalpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py new file mode 100644 index 00000000000..dd959df6da6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post.operation import PostUnevaluatedpropertiesSchemaRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes + + +class UnevaluatedPropertiesApi( + PostUnevaluatedpropertiesSchemaRequestBody, + PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody, + PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes, + PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes, + PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes, +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_not_affected_by_propertynames.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_not_affected_by_propertynames.py new file mode 100644 index 00000000000..34da1e6bf76 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_not_affected_by_propertynames.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class PropertyNames( + schemas.StrSchema +): + types: typing.FrozenSet[typing.Type] = frozenset({ + str, + }) + max_length: int = 1 +UnevaluatedProperties: typing_extensions.TypeAlias = schemas.NumberSchema + + +@dataclasses.dataclass(frozen=True) +class UnevaluatedpropertiesNotAffectedByPropertynames( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + property_names: typing.Type[PropertyNames] = dataclasses.field(default_factory=lambda: PropertyNames) # type: ignore + unevaluated_properties: typing.Type[UnevaluatedProperties] = dataclasses.field(default_factory=lambda: UnevaluatedProperties) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_schema.py new file mode 100644 index 00000000000..d5335f0d5a1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_schema.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class UnevaluatedProperties( + schemas.StrSchema +): + types: typing.FrozenSet[typing.Type] = frozenset({ + str, + }) + min_length: int = 3 + + +@dataclasses.dataclass(frozen=True) +class UnevaluatedpropertiesSchema( + schemas.Schema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], tuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + unevaluated_properties: typing.Type[UnevaluatedProperties] = dataclasses.field(default_factory=lambda: UnevaluatedProperties) # type: ignore + + @classmethod + def validate( + cls, + arg: typing.Mapping[str, schemas.INPUT_TYPES_ALL], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.py new file mode 100644 index 00000000000..d1a98562209 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_adjacent_additionalproperties.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +AdditionalProperties: typing_extensions.TypeAlias = schemas.AnyTypeSchema +Foo: typing_extensions.TypeAlias = schemas.StrSchema +Properties = typing.TypedDict( + 'Properties', + { + "foo": typing.Type[Foo], + } +) + + +class UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict(schemas.immutabledict[str, str]): + + __required_keys__: typing.FrozenSet[str] = frozenset({ + }) + __optional_keys__: typing.FrozenSet[str] = frozenset({ + "foo", + }) + + def __new__( + cls, + *, + foo: typing.Union[ + str, + schemas.Unset + ] = schemas.unset, + configuration_: typing.Optional[schema_configuration.SchemaConfiguration] = None, + **kwargs: schemas.INPUT_TYPES_ALL, + ): + arg_: typing.Dict[str, typing.Any] = {} + for key, val in ( + ("foo", foo), + ): + if isinstance(val, schemas.Unset): + continue + arg_[key] = val + arg_.update(kwargs) + used_arg_ = typing.cast(UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput, arg_) + return UnevaluatedpropertiesWithAdjacentAdditionalproperties.validate(used_arg_, configuration=configuration_) + + @staticmethod + def from_dict_( + arg: typing.Union[ + UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput, + UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict: + return UnevaluatedpropertiesWithAdjacentAdditionalproperties.validate(arg, configuration=configuration) + + @property + def foo(self) -> typing.Union[str, schemas.Unset]: + val = self.get("foo", schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + str, + val + ) + + def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]: + schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__) + val = self.get(name, schemas.unset) + if isinstance(val, schemas.Unset): + return val + return typing.cast( + schemas.OUTPUT_BASE_TYPES, + val + ) +UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput = typing.Mapping[str, schemas.INPUT_TYPES_ALL] +UnevaluatedProperties: typing_extensions.TypeAlias = schemas.NotAnyTypeSchema + + +@dataclasses.dataclass(frozen=True) +class UnevaluatedpropertiesWithAdjacentAdditionalproperties( + schemas.Schema[UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict, tuple] +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict}) + properties: Properties = dataclasses.field(default_factory=lambda: schemas.typed_dict_to_instance(Properties)) # type: ignore + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore + unevaluated_properties: typing.Type[UnevaluatedProperties] = dataclasses.field(default_factory=lambda: UnevaluatedProperties) # type: ignore + type_to_output_cls: typing.Mapping[ + typing.Type, + typing.Type + ] = dataclasses.field( + default_factory=lambda: { + schemas.immutabledict: UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict + } + ) + + @classmethod + def validate( + cls, + arg: typing.Union[ + UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput, + UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict, + ], + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict: + return super().validate_base( + arg, + configuration=configuration, + ) + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_null_valued_instance_properties.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_null_valued_instance_properties.py new file mode 100644 index 00000000000..7ff34ba00b9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/unevaluatedproperties_with_null_valued_instance_properties.py @@ -0,0 +1,27 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +UnevaluatedProperties: typing_extensions.TypeAlias = schemas.NoneSchema + + +@dataclasses.dataclass(frozen=True) +class UnevaluatedpropertiesWithNullValuedInstanceProperties( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + unevaluated_properties: typing.Type[UnevaluatedProperties] = dataclasses.field(default_factory=lambda: UnevaluatedProperties) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index cc1c4bc291c..d800feb130c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -131,6 +131,10 @@ from unit_test_api.components.schema.unevaluateditems_depends_on_multiple_nested_contains import UnevaluateditemsDependsOnMultipleNestedContains from unit_test_api.components.schema.unevaluateditems_with_items import UnevaluateditemsWithItems from unit_test_api.components.schema.unevaluateditems_with_null_instance_elements import UnevaluateditemsWithNullInstanceElements +from unit_test_api.components.schema.unevaluatedproperties_not_affected_by_propertynames import UnevaluatedpropertiesNotAffectedByPropertynames +from unit_test_api.components.schema.unevaluatedproperties_schema import UnevaluatedpropertiesSchema +from unit_test_api.components.schema.unevaluatedproperties_with_adjacent_additionalproperties import UnevaluatedpropertiesWithAdjacentAdditionalproperties +from unit_test_api.components.schema.unevaluatedproperties_with_null_valued_instance_properties import UnevaluatedpropertiesWithNullValuedInstanceProperties from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from unit_test_api.components.schema.uniqueitems_false_with_an_array_of_items import UniqueitemsFalseWithAnArrayOfItems from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py new file mode 100644 index 00000000000..594d2f10cf0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body import RequestBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody + +path = "/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py new file mode 100644 index 00000000000..3efc07a77fb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_not_affected_by_propertynames + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_not_affected_by_propertynames_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_not_affected_by_propertynames_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_not_affected_by_propertynames_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_not_affected_by_propertynames_request_body = BaseApi._post_unevaluatedproperties_not_affected_by_propertynames_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_not_affected_by_propertynames_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..9929fdde316 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_not_affected_by_propertynames +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/__init__.py new file mode 100644 index 00000000000..ea419353358 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_schema_request_body import RequestBodyPostUnevaluatedpropertiesSchemaRequestBody + +path = "/requestBody/postUnevaluatedpropertiesSchemaRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py new file mode 100644 index 00000000000..ec2dfd17c42 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_schema + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_schema_request_body( + self, + body: typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_schema_request_body( + self, + body: typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_schema_request_body( + self, + body: typing.Union[ + typing.Mapping[str, schemas.INPUT_TYPES_ALL], + schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesSchemaRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_schema_request_body = BaseApi._post_unevaluatedproperties_schema_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_schema_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..1b38bacdb8b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_schema +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_schema.UnevaluatedpropertiesSchema diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py new file mode 100644 index 00000000000..3bfaf1e6deb --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body import RequestBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody + +path = "/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py new file mode 100644 index 00000000000..0748058e43f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_with_adjacent_additionalproperties + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_with_adjacent_additionalproperties_request_body( + self, + body: typing.Union[ + unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput, + unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict, + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_with_adjacent_additionalproperties_request_body( + self, + body: typing.Union[ + unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput, + unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict, + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_with_adjacent_additionalproperties_request_body( + self, + body: typing.Union[ + unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput, + unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict, + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_with_adjacent_additionalproperties_request_body = BaseApi._post_unevaluatedproperties_with_adjacent_additionalproperties_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_with_adjacent_additionalproperties_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..6c629cf60b7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_with_adjacent_additionalproperties +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py new file mode 100644 index 00000000000..4b7d1df490e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body import RequestBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody + +path = "/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py new file mode 100644 index 00000000000..332b1e3f331 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_with_null_valued_instance_properties + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_with_null_valued_instance_properties_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_with_null_valued_instance_properties_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_with_null_valued_instance_properties_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_with_null_valued_instance_properties_request_body = BaseApi._post_unevaluatedproperties_with_null_valued_instance_properties_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_with_null_valued_instance_properties_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..06d2e715a9f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_with_null_valued_instance_properties +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..680d8d1ab7d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes + +path = "/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..a764edcd841 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types = BaseApi._post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..9929fdde316 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_not_affected_by_propertynames +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..80bc2ffaf66 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesSchemaResponseBodyForContentTypes + +path = "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..67f2012e30b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_schema_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_schema_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_schema_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesSchemaResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_schema_response_body_for_content_types = BaseApi._post_unevaluatedproperties_schema_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_schema_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..36988c11f59 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..1b38bacdb8b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_schema +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_schema.UnevaluatedpropertiesSchema diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..1bb87cf69f4 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes + +path = "/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..19b2e351702 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types = BaseApi._post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..4a755c9d632 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: application_json_schema.unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..6c629cf60b7 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_with_adjacent_additionalproperties +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..c24df3d509e --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types import ResponseBodyPostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes + +path = "/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..53c3cc7a89c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types = BaseApi._post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..06d2e715a9f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import unevaluatedproperties_with_null_valued_instance_properties +Schema2: typing_extensions.TypeAlias = unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_not_affected_by_propertynames.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_not_affected_by_propertynames.py new file mode 100644 index 00000000000..0aab6c0c0f9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_not_affected_by_propertynames.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluatedproperties_not_affected_by_propertynames import UnevaluatedpropertiesNotAffectedByPropertynames +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluatedpropertiesNotAffectedByPropertynames(unittest.TestCase): + """UnevaluatedpropertiesNotAffectedByPropertynames unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_string_property_is_invalid_fails(self): + # string property is invalid + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + UnevaluatedpropertiesNotAffectedByPropertynames.validate( + { + "a": + "b", + }, + configuration=self.configuration + ) + + def test_allows_only_number_properties_passes(self): + # allows only number properties + UnevaluatedpropertiesNotAffectedByPropertynames.validate( + { + "a": + 1, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_schema.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_schema.py new file mode 100644 index 00000000000..56678710341 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_schema.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluatedproperties_schema import UnevaluatedpropertiesSchema +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluatedpropertiesSchema(unittest.TestCase): + """UnevaluatedpropertiesSchema unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_with_no_unevaluated_properties_passes(self): + # with no unevaluated properties + UnevaluatedpropertiesSchema.validate( + { + }, + configuration=self.configuration + ) + + def test_with_invalid_unevaluated_properties_fails(self): + # with invalid unevaluated properties + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + UnevaluatedpropertiesSchema.validate( + { + "foo": + "fo", + }, + configuration=self.configuration + ) + + def test_with_valid_unevaluated_properties_passes(self): + # with valid unevaluated properties + UnevaluatedpropertiesSchema.validate( + { + "foo": + "foo", + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_adjacent_additionalproperties.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_adjacent_additionalproperties.py new file mode 100644 index 00000000000..c5792ad1cd0 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_adjacent_additionalproperties.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluatedproperties_with_adjacent_additionalproperties import UnevaluatedpropertiesWithAdjacentAdditionalproperties +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluatedpropertiesWithAdjacentAdditionalproperties(unittest.TestCase): + """UnevaluatedpropertiesWithAdjacentAdditionalproperties unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_with_additional_properties_passes(self): + # with additional properties + UnevaluatedpropertiesWithAdjacentAdditionalproperties.validate( + { + "foo": + "foo", + "bar": + "bar", + }, + configuration=self.configuration + ) + + def test_with_no_additional_properties_passes(self): + # with no additional properties + UnevaluatedpropertiesWithAdjacentAdditionalproperties.validate( + { + "foo": + "foo", + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_null_valued_instance_properties.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_null_valued_instance_properties.py new file mode 100644 index 00000000000..7870c82bf63 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_unevaluatedproperties_with_null_valued_instance_properties.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.unevaluatedproperties_with_null_valued_instance_properties import UnevaluatedpropertiesWithNullValuedInstanceProperties +from unit_test_api.configurations import schema_configuration + + +class TestUnevaluatedpropertiesWithNullValuedInstanceProperties(unittest.TestCase): + """UnevaluatedpropertiesWithNullValuedInstanceProperties unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_allows_null_valued_properties_passes(self): + # allows null valued properties + UnevaluatedpropertiesWithNullValuedInstanceProperties.validate( + { + "foo": + None, + }, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/test_post.py new file mode 100644 index 00000000000..6175aeb9e33 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/test_post.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_string_property_is_invalid_fails(self): + content_type = 'application/json' + # string property is invalid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + "b", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_allows_only_number_properties_passes(self): + content_type = 'application/json' + # allows only number properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + 1, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluatedpropertiesNotAffectedByPropertynamesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/test_post.py new file mode 100644 index 00000000000..91da253025d --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_schema_request_body/test_post.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluatedproperties_schema_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_with_no_unevaluated_properties_passes(self): + content_type = 'application/json' + # with no unevaluated properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluatedpropertiesSchemaRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_with_invalid_unevaluated_properties_fails(self): + content_type = 'application/json' + # with invalid unevaluated properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "fo", + } + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_with_valid_unevaluated_properties_passes(self): + content_type = 'application/json' + # with valid unevaluated properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "foo", + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluatedpropertiesSchemaRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/test_post.py new file mode 100644 index 00000000000..7c5cc2b7102 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/test_post.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_with_additional_properties_passes(self): + content_type = 'application/json' + # with additional properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "foo", + "bar": + "bar", + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_with_no_additional_properties_passes(self): + content_type = 'application/json' + # with no additional properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "foo", + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/test_post.py new file mode 100644 index 00000000000..1d737087cb9 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/test_post.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_allows_null_valued_properties_passes(self): + content_type = 'application/json' + # allows null valued properties + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + None, + } + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..a0db36b931a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/test_post.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_string_property_is_invalid_fails(self): + # string property is invalid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + "b", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_allows_only_number_properties_passes(self): + # allows only number properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "a": + 1, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesNotAffectedByPropertynamesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..df8c3895c97 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_schema_response_body_for_content_types/test_post.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluatedproperties_schema_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_with_no_unevaluated_properties_passes(self): + # with no unevaluated properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_with_invalid_unevaluated_properties_fails(self): + # with invalid unevaluated properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "fo", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_with_valid_unevaluated_properties_passes(self): + # with valid unevaluated properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "foo", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesSchemaResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..1b6c79012c8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/test_post.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_with_additional_properties_passes(self): + # with additional properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "foo", + "bar": + "bar", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_with_no_additional_properties_passes(self): + # with no additional properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + "foo", + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..7e58ec5d1ba --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/test_post.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_allows_null_valued_properties_passes(self): + # allows null valued properties + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + { + "foo": + None, + } + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs b/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs index 50b11d9e66b..53711e45069 100644 --- a/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs +++ b/src/main/resources/python/components/schemas/schema_cls/_schema_dict.hbs @@ -55,12 +55,12 @@ class {{jsonPathPiece.camelCase}}( {{#if patternProperties}} {{> components/schemas/schema_cls/_pattern_properties }} {{/if}} - {{#if unevaluatedProperties}} - {{> components/schemas/schema_cls/_unevaluated_properties }} - {{/if}} {{#if additionalProperties}} {{> components/schemas/schema_cls/_additional_properties }} {{/if}} + {{#if unevaluatedProperties}} + {{> components/schemas/schema_cls/_unevaluated_properties }} + {{/if}} {{#if mapOutputJsonPathPiece}} type_to_output_cls: typing.Mapping[ typing.Type, diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index 91a07d888ff..e0021577957 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -4582,114 +4582,6 @@ paths: - path.post - contentType_json - unevaluatedProperties - /requestBody/postUnevaluatedpropertiesWithOneofRequestBody: - post: - operationId: postUnevaluatedpropertiesWithOneofRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithOneof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithOneof' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postUnevaluatedpropertiesWithOneofResponseBodyForContentTypes: - post: - operationId: postUnevaluatedpropertiesWithOneofResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UnevaluatedpropertiesWithOneof' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/UnevaluatedpropertiesWithOneof' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody: - post: - operationId: postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesResponseBodyForContentTypes: - post: - operationId: postCousinUnevaluatedpropertiesTrueAndFalseTrueWithPropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties - /requestBody/postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesRequestBody: - post: - operationId: postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesRequestBody - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' - required: true - responses: - '200': - description: success - tags: - - operation.requestBody - - path.post - - contentType_json - - unevaluatedProperties - /responseBody/postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesResponseBodyForContentTypes: - post: - operationId: postPropertyIsEvaluatedInAnUncleSchemaToUnevaluatedpropertiesResponseBodyForContentTypes - responses: - '200': - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' - x-schema-test-examples: - $ref: '#/components/x-schema-test-examples/PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties' - tags: - - response.content.contentType.schema - - path.post - - contentType_json - - unevaluatedProperties /requestBody/postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody: post: operationId: postUnevaluatedpropertiesWithNullValuedInstancePropertiesRequestBody @@ -5561,49 +5453,6 @@ components: type: string additionalProperties: true unevaluatedProperties: false - UnevaluatedpropertiesWithOneof: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: string - oneOf: - - properties: - bar: - const: bar - required: - - bar - - properties: - baz: - const: baz - required: - - baz - unevaluatedProperties: false - CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - allOf: - - properties: - foo: - type: string - unevaluatedProperties: true - - unevaluatedProperties: false - PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties: - $schema: https://json-schema.org/draft/2020-12/schema - type: object - properties: - foo: - type: object - properties: - bar: - type: string - unevaluatedProperties: false - anyOf: - - properties: - foo: - properties: - faz: - type: string UnevaluatedpropertiesWithNullValuedInstanceProperties: $schema: https://json-schema.org/draft/2020-12/schema unevaluatedProperties: @@ -8753,52 +8602,6 @@ components: bar: bar valid: true comment: null - UnevaluatedpropertiesWithOneof: - WithNoUnevaluatedProperties: - description: with no unevaluated properties - data: - foo: foo - bar: bar - valid: true - comment: null - WithUnevaluatedProperties: - description: with unevaluated properties - data: - foo: foo - bar: bar - quux: quux - valid: false - comment: null - CousinUnevaluatedpropertiesTrueAndFalseTrueWithProperties: - WithNoNestedUnevaluatedProperties: - description: with no nested unevaluated properties - data: - foo: foo - valid: false - comment: null - WithNestedUnevaluatedProperties: - description: with nested unevaluated properties - data: - foo: foo - bar: bar - valid: false - comment: null - PropertyIsEvaluatedInAnUncleSchemaToUnevaluatedproperties: - NoExtraProperties: - description: no extra properties - data: - foo: - bar: test - valid: true - comment: null - UncleKeywordEvaluationIsNotSignificant: - description: uncle keyword evaluation is not significant - data: - foo: - bar: test - faz: test - valid: false - comment: null UnevaluatedpropertiesWithNullValuedInstanceProperties: AllowsNullValuedProperties: description: allows null valued properties diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 0a2877556a2..174a19a1044 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -339,6 +339,9 @@ class ExclusionReason: "unevaluatedProperties with nested unevaluatedProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with not": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, "unevaluatedProperties with nested additionalProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "unevaluatedProperties with oneOf": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "cousin unevaluatedProperties, true and false, true with properties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, + "property is evaluated in an uncle schema to unevaluatedProperties": ExclusionReason.bug_does_not_support_boolean_schemas_in_location, } } FILEPATH_TO_EXCLUDE_REASON = { From 41b48e69019503422fcad9acf335e13f92b921b9 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 28 Sep 2023 12:50:50 -0700 Subject: [PATCH 32/34] All tests passing --- .../python/.openapi-generator/FILES | 132 ++++++++++++++++++ .../3_1/unit_test_spec/spec_writer.py | 8 +- 2 files changed, 138 insertions(+), 2 deletions(-) diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index bbe2467a1eb..f3b92b8f1a4 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -3423,6 +3423,138 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py +test/components/schema/test__not.py +test/components/schema/test_a_schema_given_for_prefixitems.py +test/components/schema/test_additional_items_are_allowed_by_default.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_does_not_look_in_applicators.py +test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py +test/components/schema/test_additionalproperties_with_schema.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py +test/components/schema/test_const_nul_characters_in_strings.py +test/components/schema/test_contains_keyword_validation.py +test/components/schema/test_contains_with_null_instance_elements.py +test/components/schema/test_date_format.py +test/components/schema/test_date_time_format.py +test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py +test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py +test/components/schema/test_dependent_schemas_single_dependency.py +test/components/schema/test_duration_format.py +test/components/schema/test_email_format.py +test/components/schema/test_empty_dependents.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_float_division_inf.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_idn_email_format.py +test/components/schema/test_idn_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_iri_format.py +test/components/schema/test_iri_reference_format.py +test/components/schema/test_items_contains.py +test/components/schema/test_items_does_not_look_in_applicators_valid_case.py +test/components/schema/test_items_with_null_instance_elements.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maxcontains_without_contains_is_ignored.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_mincontains_without_contains_is_ignored.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py +test/components/schema/test_multiple_dependents_required.py +test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py +test/components/schema/test_multiple_types_can_be_specified_in_an_array.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_non_ascii_pattern_with_additionalproperties.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py +test/components/schema/test_patternproperties_with_null_valued_instance_properties.py +test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py +test/components/schema/test_prefixitems_with_null_instance_elements.py +test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py +test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_properties_with_null_valued_instance_properties.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py +test/components/schema/test_propertynames_validation.py +test/components/schema/test_regex_format.py +test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py +test/components/schema/test_relative_json_pointer_format.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py +test/components/schema/test_single_dependency.py +test/components/schema/test_small_multiple_of_large_integer.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_time_format.py +test/components/schema/test_type_array_object_or_null.py +test/components/schema/test_type_array_or_object.py +test/components/schema/test_type_as_array_with_one_item.py +test/components/schema/test_unevaluateditems_as_schema.py +test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py +test/components/schema/test_unevaluateditems_with_items.py +test/components/schema/test_unevaluateditems_with_null_instance_elements.py +test/components/schema/test_unevaluatedproperties_not_affected_by_propertynames.py +test/components/schema/test_unevaluatedproperties_schema.py +test/components/schema/test_unevaluatedproperties_with_adjacent_additionalproperties.py +test/components/schema/test_unevaluatedproperties_with_null_valued_instance_properties.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_false_with_an_array_of_items.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uniqueitems_with_an_array_of_items.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py +test/components/schema/test_uuid_format.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 174a19a1044..5ac4270e0f9 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -160,6 +160,12 @@ class ExclusionReason: 'heterogeneous enum validation': ExclusionReason.swagger_parser_enum_type_bug, 'heterogeneous enum-with-null validation': ExclusionReason.swagger_parser_enum_type_bug, }, + (json_schema_test_draft, 'exclusiveMaximum.json'): { + "exclusiveMaximum validation": ExclusionReason.swagger_parser_validation_missing_bug, + }, + (json_schema_test_draft, 'exclusiveMinimum.json'): { + "exclusiveMinimum validation": ExclusionReason.swagger_parser_validation_missing_bug, + }, (json_schema_test_draft, 'items.json'): { 'an array of schemas for items': ExclusionReason.v303_does_not_support_array_of_types, 'items and subitems': ExclusionReason.bug_does_not_support_definitions, @@ -346,8 +352,6 @@ class ExclusionReason: } FILEPATH_TO_EXCLUDE_REASON = { (json_schema_test_draft, 'boolean_schema.json'): ExclusionReason.bug_does_not_support_boolean_schemas_in_location, - (json_schema_test_draft, 'exclusiveMaximum.json'): ExclusionReason.swagger_parser_validation_missing_bug, - (json_schema_test_draft, 'exclusiveMinimum.json'): ExclusionReason.swagger_parser_validation_missing_bug, (json_schema_test_draft, 'id.json'): ExclusionReason.v303_does_not_support_id, (json_schema_test_draft, 'refRemote.json'): ExclusionReason.ref_not_resolved, (json_schema_test_draft, 'unknownKeyword.json'): ExclusionReason.bug_does_not_support_definitions, From ccc77d2cf02d1819f0ec2605fa7484906d18299c Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 28 Sep 2023 13:04:26 -0700 Subject: [PATCH 33/34] Turns on tests that were turned off because of 303 not supporting type arrays --- .../python/.openapi-generator/FILES | 164 ++++-------------- .../client/3_1_0_unit_test/python/README.md | 3 + .../python/docs/apis/tags/_not_api.md | 2 + .../docs/apis/tags/content_type_json_api.md | 2 + .../apis/tags/operation_request_body_api.md | 1 + .../python/docs/apis/tags/path_post_api.md | 2 + ...esponse_content_content_type_schema_api.md | 1 + .../components/schema/not_multiple_types.md | 28 +++ .../post.md | 116 +++++++++++++ .../content/application_json/schema.md | 10 ++ .../post.md | 111 ++++++++++++ .../content/application_json/schema.md | 10 ++ .../src/unit_test_api/apis/path_to_api.py | 6 + ...dy_post_not_multiple_types_request_body.py | 13 ++ ...e_types_response_body_for_content_types.py | 13 ++ .../src/unit_test_api/apis/tags/_not_api.py | 4 + .../apis/tags/content_type_json_api.py | 4 + .../apis/tags/operation_request_body_api.py | 2 + .../unit_test_api/apis/tags/path_post_api.py | 4 + ...esponse_content_content_type_schema_api.py | 2 + .../components/schema/not_multiple_types.py | 63 +++++++ .../components/schemas/__init__.py | 1 + .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 132 ++++++++++++++ .../post/request_body/__init__.py | 20 +++ .../post/request_body/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 20 +++ .../__init__.py | 5 + .../post/__init__.py | 0 .../post/operation.py | 113 ++++++++++++ .../post/responses/__init__.py | 0 .../post/responses/response_200/__init__.py | 29 ++++ .../response_200/content/__init__.py | 0 .../content/application_json/__init__.py | 0 .../content/application_json/schema.py | 13 ++ .../schema/test_not_multiple_types.py | 48 +++++ .../__init__.py | 0 .../test_post.py | 93 ++++++++++ .../__init__.py | 0 .../test_post.py | 114 ++++++++++++ .../unit_test_spec/3_1_0_unit_test_spec.yaml | 58 +++++++ .../3_1/unit_test_spec/spec_writer.py | 9 - 46 files changed, 1093 insertions(+), 141 deletions(-) create mode 100644 samples/client/3_1_0_unit_test/python/docs/components/schema/not_multiple_types.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md create mode 100644 samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/not_multiple_types.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py create mode 100644 samples/client/3_1_0_unit_test/python/test/components/schema/test_not_multiple_types.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/test_post.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/__init__.py create mode 100644 samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/test_post.py diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index f3b92b8f1a4..cfbf4e7e292 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -118,6 +118,7 @@ docs/components/schema/nested_items.md docs/components/schema/nested_oneof_to_check_validation_semantics.md docs/components/schema/non_ascii_pattern_with_additionalproperties.md docs/components/schema/not_more_complex_schema.md +docs/components/schema/not_multiple_types.md docs/components/schema/nul_characters_in_strings.md docs/components/schema/null_type_matches_only_the_null_object.md docs/components/schema/number_type_matches_numbers.md @@ -326,6 +327,8 @@ docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_not_more_complex_schema_request_body/post.md docs/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.md +docs/paths/request_body_post_not_multiple_types_request_body/post.md +docs/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_not_request_body/post.md docs/paths/request_body_post_not_request_body/post/request_body/content/application_json/schema.md docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md @@ -590,6 +593,8 @@ docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_respon docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md +docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_not_response_body_for_content_types/post.md docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md @@ -789,6 +794,7 @@ src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py +src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py src/unit_test_api/apis/paths/request_body_post_not_request_body.py src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py @@ -921,6 +927,7 @@ src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_c src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py +src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py @@ -1096,6 +1103,7 @@ src/unit_test_api/components/schema/nested_items.py src/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py src/unit_test_api/components/schema/non_ascii_pattern_with_additionalproperties.py src/unit_test_api/components/schema/not_more_complex_schema.py +src/unit_test_api/components/schema/not_multiple_types.py src/unit_test_api/components/schema/nul_characters_in_strings.py src/unit_test_api/components/schema/null_type_matches_only_the_null_object.py src/unit_test_api/components/schema/number_type_matches_numbers.py @@ -1849,6 +1857,15 @@ src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/p src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/content/application_json/schema.py src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/__init__.py src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/__init__.py +src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py src/unit_test_api/paths/request_body_post_not_request_body/__init__.py src/unit_test_api/paths/request_body_post_not_request_body/post/__init__.py src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -2960,6 +2977,14 @@ src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/__init__.py src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/__init__.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/__init__.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/__init__.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/__init__.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py +src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/__init__.py src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/__init__.py src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -3423,138 +3448,9 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test__not.py -test/components/schema/test_a_schema_given_for_prefixitems.py -test/components/schema/test_additional_items_are_allowed_by_default.py -test/components/schema/test_additionalproperties_are_allowed_by_default.py -test/components/schema/test_additionalproperties_can_exist_by_itself.py -test/components/schema/test_additionalproperties_does_not_look_in_applicators.py -test/components/schema/test_additionalproperties_with_null_valued_instance_properties.py -test/components/schema/test_additionalproperties_with_schema.py -test/components/schema/test_allof.py -test/components/schema/test_allof_combined_with_anyof_oneof.py -test/components/schema/test_allof_simple_types.py -test/components/schema/test_allof_with_base_schema.py -test/components/schema/test_allof_with_one_empty_schema.py -test/components/schema/test_allof_with_the_first_empty_schema.py -test/components/schema/test_allof_with_the_last_empty_schema.py -test/components/schema/test_allof_with_two_empty_schemas.py -test/components/schema/test_anyof.py -test/components/schema/test_anyof_complex_types.py -test/components/schema/test_anyof_with_base_schema.py -test/components/schema/test_anyof_with_one_empty_schema.py -test/components/schema/test_array_type_matches_arrays.py -test/components/schema/test_boolean_type_matches_booleans.py -test/components/schema/test_by_int.py -test/components/schema/test_by_number.py -test/components/schema/test_by_small_number.py -test/components/schema/test_const_nul_characters_in_strings.py -test/components/schema/test_contains_keyword_validation.py -test/components/schema/test_contains_with_null_instance_elements.py -test/components/schema/test_date_format.py -test/components/schema/test_date_time_format.py -test/components/schema/test_dependent_schemas_dependencies_with_escaped_characters.py -test/components/schema/test_dependent_schemas_dependent_subschema_incompatible_with_root.py -test/components/schema/test_dependent_schemas_single_dependency.py -test/components/schema/test_duration_format.py -test/components/schema/test_email_format.py -test/components/schema/test_empty_dependents.py -test/components/schema/test_enum_with0_does_not_match_false.py -test/components/schema/test_enum_with1_does_not_match_true.py -test/components/schema/test_enum_with_escaped_characters.py -test/components/schema/test_enum_with_false_does_not_match0.py -test/components/schema/test_enum_with_true_does_not_match1.py -test/components/schema/test_enums_in_properties.py -test/components/schema/test_float_division_inf.py -test/components/schema/test_forbidden_property.py -test/components/schema/test_hostname_format.py -test/components/schema/test_idn_email_format.py -test/components/schema/test_idn_hostname_format.py -test/components/schema/test_integer_type_matches_integers.py -test/components/schema/test_ipv4_format.py -test/components/schema/test_ipv6_format.py -test/components/schema/test_iri_format.py -test/components/schema/test_iri_reference_format.py -test/components/schema/test_items_contains.py -test/components/schema/test_items_does_not_look_in_applicators_valid_case.py -test/components/schema/test_items_with_null_instance_elements.py -test/components/schema/test_json_pointer_format.py -test/components/schema/test_maxcontains_without_contains_is_ignored.py -test/components/schema/test_maximum_validation.py -test/components/schema/test_maximum_validation_with_unsigned_integer.py -test/components/schema/test_maxitems_validation.py -test/components/schema/test_maxlength_validation.py -test/components/schema/test_maxproperties0_means_the_object_is_empty.py -test/components/schema/test_maxproperties_validation.py -test/components/schema/test_mincontains_without_contains_is_ignored.py -test/components/schema/test_minimum_validation.py -test/components/schema/test_minimum_validation_with_signed_integer.py -test/components/schema/test_minitems_validation.py -test/components/schema/test_minlength_validation.py -test/components/schema/test_minproperties_validation.py -test/components/schema/test_multiple_dependents_required.py -test/components/schema/test_multiple_simultaneous_patternproperties_are_validated.py -test/components/schema/test_multiple_types_can_be_specified_in_an_array.py -test/components/schema/test_nested_allof_to_check_validation_semantics.py -test/components/schema/test_nested_anyof_to_check_validation_semantics.py -test/components/schema/test_nested_items.py -test/components/schema/test_nested_oneof_to_check_validation_semantics.py -test/components/schema/test_non_ascii_pattern_with_additionalproperties.py -test/components/schema/test_not_more_complex_schema.py -test/components/schema/test_nul_characters_in_strings.py -test/components/schema/test_null_type_matches_only_the_null_object.py -test/components/schema/test_number_type_matches_numbers.py -test/components/schema/test_object_properties_validation.py -test/components/schema/test_object_type_matches_objects.py -test/components/schema/test_oneof.py -test/components/schema/test_oneof_complex_types.py -test/components/schema/test_oneof_with_base_schema.py -test/components/schema/test_oneof_with_empty_schema.py -test/components/schema/test_oneof_with_required.py -test/components/schema/test_pattern_is_not_anchored.py -test/components/schema/test_pattern_validation.py -test/components/schema/test_patternproperties_validates_properties_matching_a_regex.py -test/components/schema/test_patternproperties_with_null_valued_instance_properties.py -test/components/schema/test_prefixitems_validation_adjusts_the_starting_index_for_items.py -test/components/schema/test_prefixitems_with_null_instance_elements.py -test/components/schema/test_properties_patternproperties_additionalproperties_interaction.py -test/components/schema/test_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_properties_with_escaped_characters.py -test/components/schema/test_properties_with_null_valued_instance_properties.py -test/components/schema/test_property_named_ref_that_is_not_a_reference.py -test/components/schema/test_propertynames_validation.py -test/components/schema/test_regex_format.py -test/components/schema/test_regexes_are_not_anchored_by_default_and_are_case_sensitive.py -test/components/schema/test_relative_json_pointer_format.py -test/components/schema/test_required_default_validation.py -test/components/schema/test_required_properties_whose_names_are_javascript_object_property_names.py -test/components/schema/test_required_validation.py -test/components/schema/test_required_with_empty_array.py -test/components/schema/test_required_with_escaped_characters.py -test/components/schema/test_simple_enum_validation.py -test/components/schema/test_single_dependency.py -test/components/schema/test_small_multiple_of_large_integer.py -test/components/schema/test_string_type_matches_strings.py -test/components/schema/test_time_format.py -test/components/schema/test_type_array_object_or_null.py -test/components/schema/test_type_array_or_object.py -test/components/schema/test_type_as_array_with_one_item.py -test/components/schema/test_unevaluateditems_as_schema.py -test/components/schema/test_unevaluateditems_depends_on_multiple_nested_contains.py -test/components/schema/test_unevaluateditems_with_items.py -test/components/schema/test_unevaluateditems_with_null_instance_elements.py -test/components/schema/test_unevaluatedproperties_not_affected_by_propertynames.py -test/components/schema/test_unevaluatedproperties_schema.py -test/components/schema/test_unevaluatedproperties_with_adjacent_additionalproperties.py -test/components/schema/test_unevaluatedproperties_with_null_valued_instance_properties.py -test/components/schema/test_uniqueitems_false_validation.py -test/components/schema/test_uniqueitems_false_with_an_array_of_items.py -test/components/schema/test_uniqueitems_validation.py -test/components/schema/test_uniqueitems_with_an_array_of_items.py -test/components/schema/test_uri_format.py -test/components/schema/test_uri_reference_format.py -test/components/schema/test_uri_template_format.py -test/components/schema/test_uuid_format.py +test/components/schema/test_not_multiple_types.py +test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py @@ -3973,6 +3869,8 @@ test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperti test/test_paths/test_request_body_post_non_ascii_pattern_with_additionalproperties_request_body/test_post.py test/test_paths/test_request_body_post_not_more_complex_schema_request_body/__init__.py test/test_paths/test_request_body_post_not_more_complex_schema_request_body/test_post.py +test/test_paths/test_request_body_post_not_multiple_types_request_body/__init__.py +test/test_paths/test_request_body_post_not_multiple_types_request_body/test_post.py test/test_paths/test_request_body_post_not_request_body/__init__.py test/test_paths/test_request_body_post_not_request_body/test_post.py test/test_paths/test_request_body_post_nul_characters_in_strings_request_body/__init__.py @@ -4237,6 +4135,8 @@ test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalpropert test/test_paths/test_response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_not_more_complex_schema_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_not_more_complex_schema_response_body_for_content_types/test_post.py +test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/__init__.py +test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_not_response_body_for_content_types/__init__.py test/test_paths/test_response_body_post_not_response_body_for_content_types/test_post.py test/test_paths/test_response_body_post_nul_characters_in_strings_response_body_for_content_types/__init__.py diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index d7cedd60c59..4b357873b22 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -247,6 +247,7 @@ HTTP request | Method | Description /requestBody/postNestedOneofToCheckValidationSemanticsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) [OneOfApi](docs/apis/tags/one_of_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_oneof_to_check_validation_semantics_request_body](docs/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) | /requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_non_ascii_pattern_with_additionalproperties_request_body](docs/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | /requestBody/postNotMoreComplexSchemaRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) [_NotApi](docs/apis/tags/_not_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_more_complex_schema_request_body](docs/paths/request_body_post_not_more_complex_schema_request_body/post.md) | +/requestBody/postNotMultipleTypesRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_not_multiple_types_request_body](docs/paths/request_body_post_not_multiple_types_request_body/post.md) [_NotApi](docs/apis/tags/_not_api.md).[post_not_multiple_types_request_body](docs/paths/request_body_post_not_multiple_types_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_multiple_types_request_body](docs/paths/request_body_post_not_multiple_types_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_multiple_types_request_body](docs/paths/request_body_post_not_multiple_types_request_body/post.md) | /requestBody/postNotRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) [_NotApi](docs/apis/tags/_not_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_request_body](docs/paths/request_body_post_not_request_body/post.md) | /requestBody/postNulCharactersInStringsRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_nul_characters_in_strings_request_body](docs/paths/request_body_post_nul_characters_in_strings_request_body/post.md) | /requestBody/postNullTypeMatchesOnlyTheNullObjectRequestBody **post** | [OperationRequestBodyApi](docs/apis/tags/operation_request_body_api.md).[post_null_type_matches_only_the_null_object_request_body](docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_null_type_matches_only_the_null_object_request_body](docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_null_type_matches_only_the_null_object_request_body](docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_null_type_matches_only_the_null_object_request_body](docs/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md) | @@ -379,6 +380,7 @@ HTTP request | Method | Description /responseBody/postNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes **post** | [OneOfApi](docs/apis/tags/one_of_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nested_oneof_to_check_validation_semantics_response_body_for_content_types](docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) | /responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) [AdditionalPropertiesApi](docs/apis/tags/additional_properties_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types](docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | /responseBody/postNotMoreComplexSchemaResponseBodyForContentTypes **post** | [_NotApi](docs/apis/tags/_not_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_not_more_complex_schema_response_body_for_content_types](docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | +/responseBody/postNotMultipleTypesResponseBodyForContentTypes **post** | [_NotApi](docs/apis/tags/_not_api.md).[post_not_multiple_types_response_body_for_content_types](docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_multiple_types_response_body_for_content_types](docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_multiple_types_response_body_for_content_types](docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_not_multiple_types_response_body_for_content_types](docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) | /responseBody/postNotResponseBodyForContentTypes **post** | [_NotApi](docs/apis/tags/_not_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) [PathPostApi](docs/apis/tags/path_post_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_not_response_body_for_content_types](docs/paths/response_body_post_not_response_body_for_content_types/post.md) | /responseBody/postNulCharactersInStringsResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) [EnumApi](docs/apis/tags/enum_api.md).[post_nul_characters_in_strings_response_body_for_content_types](docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) | /responseBody/postNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes **post** | [PathPostApi](docs/apis/tags/path_post_api.md).[post_null_type_matches_only_the_null_object_response_body_for_content_types](docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md) [ContentTypeJsonApi](docs/apis/tags/content_type_json_api.md).[post_null_type_matches_only_the_null_object_response_body_for_content_types](docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md) [TypeApi](docs/apis/tags/type_api.md).[post_null_type_matches_only_the_null_object_response_body_for_content_types](docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md) [ResponseContentContentTypeSchemaApi](docs/apis/tags/response_content_content_type_schema_api.md).[post_null_type_matches_only_the_null_object_response_body_for_content_types](docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md) | @@ -517,6 +519,7 @@ Class | Description [NonAsciiPatternWithAdditionalproperties](docs/components/schema/non_ascii_pattern_with_additionalproperties.md) | [_Not](docs/components/schema/_not.md) | [NotMoreComplexSchema](docs/components/schema/not_more_complex_schema.md) | +[NotMultipleTypes](docs/components/schema/not_multiple_types.md) | [NulCharactersInStrings](docs/components/schema/nul_characters_in_strings.md) | [NullTypeMatchesOnlyTheNullObject](docs/components/schema/null_type_matches_only_the_null_object.md) | [NumberTypeMatchesNumbers](docs/components/schema/number_type_matches_numbers.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/_not_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/_not_api.md index 0ba33ace170..1235660e1e0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/_not_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/_not_api.md @@ -13,6 +13,8 @@ Method | Description [**post_forbidden_property_response_body_for_content_types**](../../paths/response_body_post_forbidden_property_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | +[**post_not_multiple_types_request_body**](../../paths/request_body_post_not_multiple_types_request_body/post.md) | +[**post_not_multiple_types_response_body_for_content_types**](../../paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | [**post_not_response_body_for_content_types**](../../paths/response_body_post_not_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md index 368f38c3233..9d8e3f9a616 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/content_type_json_api.md @@ -163,6 +163,8 @@ Method | Description [**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | +[**post_not_multiple_types_request_body**](../../paths/request_body_post_not_multiple_types_request_body/post.md) | +[**post_not_multiple_types_response_body_for_content_types**](../../paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | [**post_not_response_body_for_content_types**](../../paths/response_body_post_not_response_body_for_content_types/post.md) | [**post_nul_characters_in_strings_request_body**](../../paths/request_body_post_nul_characters_in_strings_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md index da212dbeb30..05ed2df4b6f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/operation_request_body_api.md @@ -86,6 +86,7 @@ Method | Description [**post_nested_oneof_to_check_validation_semantics_request_body**](../../paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.md) | [**post_non_ascii_pattern_with_additionalproperties_request_body**](../../paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | +[**post_not_multiple_types_request_body**](../../paths/request_body_post_not_multiple_types_request_body/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | [**post_nul_characters_in_strings_request_body**](../../paths/request_body_post_nul_characters_in_strings_request_body/post.md) | [**post_null_type_matches_only_the_null_object_request_body**](../../paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md index c9b4283b43c..f9b06aa1016 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/path_post_api.md @@ -163,6 +163,8 @@ Method | Description [**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_request_body**](../../paths/request_body_post_not_more_complex_schema_request_body/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | +[**post_not_multiple_types_request_body**](../../paths/request_body_post_not_multiple_types_request_body/post.md) | +[**post_not_multiple_types_response_body_for_content_types**](../../paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) | [**post_not_request_body**](../../paths/request_body_post_not_request_body/post.md) | [**post_not_response_body_for_content_types**](../../paths/response_body_post_not_response_body_for_content_types/post.md) | [**post_nul_characters_in_strings_request_body**](../../paths/request_body_post_nul_characters_in_strings_request_body/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md index fdd0bb98023..84163cb78a8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md +++ b/samples/client/3_1_0_unit_test/python/docs/apis/tags/response_content_content_type_schema_api.md @@ -86,6 +86,7 @@ Method | Description [**post_nested_oneof_to_check_validation_semantics_response_body_for_content_types**](../../paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.md) | [**post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types**](../../paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post.md) | [**post_not_more_complex_schema_response_body_for_content_types**](../../paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.md) | +[**post_not_multiple_types_response_body_for_content_types**](../../paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md) | [**post_not_response_body_for_content_types**](../../paths/response_body_post_not_response_body_for_content_types/post.md) | [**post_nul_characters_in_strings_response_body_for_content_types**](../../paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.md) | [**post_null_type_matches_only_the_null_object_response_body_for_content_types**](../../paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.md) | diff --git a/samples/client/3_1_0_unit_test/python/docs/components/schema/not_multiple_types.md b/samples/client/3_1_0_unit_test/python/docs/components/schema/not_multiple_types.md new file mode 100644 index 00000000000..1b37e5c4b35 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/components/schema/not_multiple_types.md @@ -0,0 +1,28 @@ +# NotMultipleTypes +unit_test_api.components.schema.not_multiple_types +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | + +## Composed Schemas (allOf/anyOf/oneOf/not) +## not +Schema Class | Input Type | Return Type +------------ | ---------- | ----------- +[_Not](#_not) | int, bool | int, bool + +# _Not +``` +type: schemas.Schema +``` + +## validate method +Input Type | Return Type | Notes +------------ | ------------- | ------------- +int, bool | int, bool | + +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md new file mode 100644 index 00000000000..44d5344fe04 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post.md @@ -0,0 +1,116 @@ +unit_test_api.paths.request_body_post_not_multiple_types_request_body.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_not_multiple_types_request_body | [OperationRequestBodyApi](../../apis/tags/operation_request_body_api.md) | This api is only for tag=operation.requestBody | +| post_not_multiple_types_request_body | [_NotApi](../../apis/tags/_not_api.md) | This api is only for tag=not | +| post_not_multiple_types_request_body | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_not_multiple_types_request_body | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post | ApiForPost | This api is only for this endpoint | +| post | RequestBodyPostNotMultipleTypesRequestBody | This api is only for path=/requestBody/postNotMultipleTypesRequestBody | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/requestBody/postNotMultipleTypesRequestBody" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +[body](#requestbody) | typing.Union[dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader] | required | +content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body. value must be one of ['application/json'] +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +### RequestBody + +#### Content Type To Schema +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#requestbody-content-applicationjson-schema2) + +#### RequestBody content ApplicationJson Schema2 +unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_multiple_types.NotMultipleTypes**](../../components/schema/not_multiple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import operation_request_body_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = operation_request_body_api.OperationRequestBodyApi(api_client) + + # example passing only required values which don't have defaults set + body = not_multiple_types.NotMultipleTypes.validate(None) + try: + api_response = api_instance.post_not_multiple_types_request_body( + body=body, + ) + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling OperationRequestBodyApi->post_not_multiple_types_request_body: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to OperationRequestBodyApi API]](../../apis/tags/operation_request_body_api.md) +[[Back to _NotApi API]](../../apis/tags/_not_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.md new file mode 100644 index 00000000000..407c50fc2ac --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.request_body.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_multiple_types.NotMultipleTypes**](../../../../../../components/schema/not_multiple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md new file mode 100644 index 00000000000..a36f8ed3831 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post.md @@ -0,0 +1,111 @@ +unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| post_not_multiple_types_response_body_for_content_types | [_NotApi](../../apis/tags/_not_api.md) | This api is only for tag=not | +| post_not_multiple_types_response_body_for_content_types | [PathPostApi](../../apis/tags/path_post_api.md) | This api is only for tag=path.post | +| post_not_multiple_types_response_body_for_content_types | [ContentTypeJsonApi](../../apis/tags/content_type_json_api.md) | This api is only for tag=contentType_json | +| post_not_multiple_types_response_body_for_content_types | [ResponseContentContentTypeSchemaApi](../../apis/tags/response_content_content_type_schema_api.md) | This api is only for tag=response.content.contentType.schema | +| post | ApiForPost | This api is only for this endpoint | +| post | ResponseBodyPostNotMultipleTypesResponseBodyForContentTypes | This api is only for path=/responseBody/postNotMultipleTypesResponseBodyForContentTypes | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Path | "/responseBody/postNotMultipleTypesResponseBodyForContentTypes" | +| HTTP Method | post | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +accept_content_types | typing.Tuple[str] | default is ("application/json", ) | Tells the server the content type(s) that are accepted by the client +server_index | typing.Optional[int] | default is None | Allows one to select a different [server](#servers). If not None, must be one of [0] +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_response.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_response.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +200 | [ResponseFor200.ApiResponse](#responsefor200-apiresponse) | success + +## ResponseFor200 + +### Description +success + +### ResponseFor200 ApiResponse +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +[body](#responsefor200-body) | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | | +headers | Unset | headers were not defined | + +### ResponseFor200 Body +Content-Type | Schema +------------ | ------- +"application/json" | [content.application_json.Schema2](#responsefor200-content-applicationjson-schema2) + +### Body Details +#### ResponseFor200 content ApplicationJson Schema2 +unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +##### Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_multiple_types.NotMultipleTypes**](../../components/schema/not_multiple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = https://someserver.com/v1 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../servers/server_0.md) | + +## Code Sample + +```python +import unit_test_api +from unit_test_api.configurations import api_configuration +from unit_test_api.apis.tags import _not_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with unit_test_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = _not_api._NotApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.post_not_multiple_types_response_body_for_content_types() + pprint(api_response) + except unit_test_api.ApiException as e: + print("Exception when calling _NotApi->post_not_multiple_types_response_body_for_content_types: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to _NotApi API]](../../apis/tags/_not_api.md) +[[Back to PathPostApi API]](../../apis/tags/path_post_api.md) +[[Back to ContentTypeJsonApi API]](../../apis/tags/content_type_json_api.md) +[[Back to ResponseContentContentTypeSchemaApi API]](../../apis/tags/response_content_content_type_schema_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md new file mode 100644 index 00000000000..cb3a7fd6400 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -0,0 +1,10 @@ +# Schema2 +unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.responses.response_200.content.application_json.schema +``` +type: schemas.Schema +``` + +## Ref Schema Info +Ref Schema | Input Type | Output Type +---------- | ---------- | ----------- +[**not_multiple_types.NotMultipleTypes**](../../../../../../../../components/schema/not_multiple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py index 12f228d0a8a..7e954e258fd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/path_to_api.py @@ -78,6 +78,7 @@ from unit_test_api.apis.paths.request_body_post_nested_oneof_to_check_validation_semantics_request_body import RequestBodyPostNestedOneofToCheckValidationSemanticsRequestBody from unit_test_api.apis.paths.request_body_post_non_ascii_pattern_with_additionalproperties_request_body import RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody from unit_test_api.apis.paths.request_body_post_not_more_complex_schema_request_body import RequestBodyPostNotMoreComplexSchemaRequestBody +from unit_test_api.apis.paths.request_body_post_not_multiple_types_request_body import RequestBodyPostNotMultipleTypesRequestBody from unit_test_api.apis.paths.request_body_post_not_request_body import RequestBodyPostNotRequestBody from unit_test_api.apis.paths.request_body_post_nul_characters_in_strings_request_body import RequestBodyPostNulCharactersInStringsRequestBody from unit_test_api.apis.paths.request_body_post_null_type_matches_only_the_null_object_request_body import RequestBodyPostNullTypeMatchesOnlyTheNullObjectRequestBody @@ -210,6 +211,7 @@ from unit_test_api.apis.paths.response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types import ResponseBodyPostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types import ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_not_more_complex_schema_response_body_for_content_types import ResponseBodyPostNotMoreComplexSchemaResponseBodyForContentTypes +from unit_test_api.apis.paths.response_body_post_not_multiple_types_response_body_for_content_types import ResponseBodyPostNotMultipleTypesResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_not_response_body_for_content_types import ResponseBodyPostNotResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_nul_characters_in_strings_response_body_for_content_types import ResponseBodyPostNulCharactersInStringsResponseBodyForContentTypes from unit_test_api.apis.paths.response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types import ResponseBodyPostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes @@ -346,6 +348,7 @@ "/requestBody/postNestedOneofToCheckValidationSemanticsRequestBody": typing.Type[RequestBodyPostNestedOneofToCheckValidationSemanticsRequestBody], "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody": typing.Type[RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody], "/requestBody/postNotMoreComplexSchemaRequestBody": typing.Type[RequestBodyPostNotMoreComplexSchemaRequestBody], + "/requestBody/postNotMultipleTypesRequestBody": typing.Type[RequestBodyPostNotMultipleTypesRequestBody], "/requestBody/postNotRequestBody": typing.Type[RequestBodyPostNotRequestBody], "/requestBody/postNulCharactersInStringsRequestBody": typing.Type[RequestBodyPostNulCharactersInStringsRequestBody], "/requestBody/postNullTypeMatchesOnlyTheNullObjectRequestBody": typing.Type[RequestBodyPostNullTypeMatchesOnlyTheNullObjectRequestBody], @@ -478,6 +481,7 @@ "/responseBody/postNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes], "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes": typing.Type[ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes], "/responseBody/postNotMoreComplexSchemaResponseBodyForContentTypes": typing.Type[ResponseBodyPostNotMoreComplexSchemaResponseBodyForContentTypes], + "/responseBody/postNotMultipleTypesResponseBodyForContentTypes": typing.Type[ResponseBodyPostNotMultipleTypesResponseBodyForContentTypes], "/responseBody/postNotResponseBodyForContentTypes": typing.Type[ResponseBodyPostNotResponseBodyForContentTypes], "/responseBody/postNulCharactersInStringsResponseBodyForContentTypes": typing.Type[ResponseBodyPostNulCharactersInStringsResponseBodyForContentTypes], "/responseBody/postNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes": typing.Type[ResponseBodyPostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes], @@ -615,6 +619,7 @@ "/requestBody/postNestedOneofToCheckValidationSemanticsRequestBody": RequestBodyPostNestedOneofToCheckValidationSemanticsRequestBody, "/requestBody/postNonAsciiPatternWithAdditionalpropertiesRequestBody": RequestBodyPostNonAsciiPatternWithAdditionalpropertiesRequestBody, "/requestBody/postNotMoreComplexSchemaRequestBody": RequestBodyPostNotMoreComplexSchemaRequestBody, + "/requestBody/postNotMultipleTypesRequestBody": RequestBodyPostNotMultipleTypesRequestBody, "/requestBody/postNotRequestBody": RequestBodyPostNotRequestBody, "/requestBody/postNulCharactersInStringsRequestBody": RequestBodyPostNulCharactersInStringsRequestBody, "/requestBody/postNullTypeMatchesOnlyTheNullObjectRequestBody": RequestBodyPostNullTypeMatchesOnlyTheNullObjectRequestBody, @@ -747,6 +752,7 @@ "/responseBody/postNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes": ResponseBodyPostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes, "/responseBody/postNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes": ResponseBodyPostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, "/responseBody/postNotMoreComplexSchemaResponseBodyForContentTypes": ResponseBodyPostNotMoreComplexSchemaResponseBodyForContentTypes, + "/responseBody/postNotMultipleTypesResponseBodyForContentTypes": ResponseBodyPostNotMultipleTypesResponseBodyForContentTypes, "/responseBody/postNotResponseBodyForContentTypes": ResponseBodyPostNotResponseBodyForContentTypes, "/responseBody/postNulCharactersInStringsResponseBodyForContentTypes": ResponseBodyPostNulCharactersInStringsResponseBodyForContentTypes, "/responseBody/postNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes": ResponseBodyPostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py new file mode 100644 index 00000000000..0b700fad3b1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.operation import ApiForPost + + +class RequestBodyPostNotMultipleTypesRequestBody( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py new file mode 100644 index 00000000000..4dcffd9ce5c --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.operation import ApiForPost + + +class ResponseBodyPostNotMultipleTypesResponseBodyForContentTypes( + ApiForPost, +): + pass diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py index 290688f5361..bcb7bceab5a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py @@ -7,6 +7,8 @@ from unit_test_api.paths.request_body_post_not_request_body.post.operation import PostNotRequestBody from unit_test_api.paths.response_body_post_not_more_complex_schema_response_body_for_content_types.post.operation import PostNotMoreComplexSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_not_more_complex_schema_request_body.post.operation import PostNotMoreComplexSchemaRequestBody +from unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.operation import PostNotMultipleTypesRequestBody +from unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.operation import PostNotMultipleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_not_response_body_for_content_types.post.operation import PostNotResponseBodyForContentTypes from unit_test_api.paths.response_body_post_forbidden_property_response_body_for_content_types.post.operation import PostForbiddenPropertyResponseBodyForContentTypes from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody @@ -16,6 +18,8 @@ class _NotApi( PostNotRequestBody, PostNotMoreComplexSchemaResponseBodyForContentTypes, PostNotMoreComplexSchemaRequestBody, + PostNotMultipleTypesRequestBody, + PostNotMultipleTypesResponseBodyForContentTypes, PostNotResponseBodyForContentTypes, PostForbiddenPropertyResponseBodyForContentTypes, PostForbiddenPropertyRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index 235315702ad..5c96194db47 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -134,6 +134,7 @@ from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody +from unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.operation import PostNotMultipleTypesRequestBody from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody from unit_test_api.paths.request_body_post_uniqueitems_with_an_array_of_items_request_body.post.operation import PostUniqueitemsWithAnArrayOfItemsRequestBody from unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.operation import PostUriFormatResponseBodyForContentTypes @@ -167,6 +168,7 @@ from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.operation import PostNotMultipleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody @@ -401,6 +403,7 @@ class ContentTypeJsonApi( PostJsonPointerFormatRequestBody, PostAnyofComplexTypesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, + PostNotMultipleTypesRequestBody, PostForbiddenPropertyRequestBody, PostUniqueitemsWithAnArrayOfItemsRequestBody, PostUriFormatResponseBodyForContentTypes, @@ -434,6 +437,7 @@ class ContentTypeJsonApi( PostIdnEmailFormatRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, + PostNotMultipleTypesResponseBodyForContentTypes, PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index b941fbcd7e3..bbf0353ea31 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -132,6 +132,7 @@ from unit_test_api.paths.request_body_post_oneof_request_body.post.operation import PostOneofRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody +from unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.operation import PostNotMultipleTypesRequestBody from unit_test_api.paths.request_body_post_oneof_with_base_schema_request_body.post.operation import PostOneofWithBaseSchemaRequestBody from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody from unit_test_api.paths.request_body_post_uniqueitems_with_an_array_of_items_request_body.post.operation import PostUniqueitemsWithAnArrayOfItemsRequestBody @@ -267,6 +268,7 @@ class OperationRequestBodyApi( PostOneofRequestBody, PostAnyofComplexTypesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, + PostNotMultipleTypesRequestBody, PostOneofWithBaseSchemaRequestBody, PostForbiddenPropertyRequestBody, PostUniqueitemsWithAnArrayOfItemsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index af444fa7278..93e8a85def2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -134,6 +134,7 @@ from unit_test_api.paths.request_body_post_json_pointer_format_request_body.post.operation import PostJsonPointerFormatRequestBody from unit_test_api.paths.request_body_post_anyof_complex_types_request_body.post.operation import PostAnyofComplexTypesRequestBody from unit_test_api.paths.request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.post.operation import PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody +from unit_test_api.paths.request_body_post_not_multiple_types_request_body.post.operation import PostNotMultipleTypesRequestBody from unit_test_api.paths.request_body_post_forbidden_property_request_body.post.operation import PostForbiddenPropertyRequestBody from unit_test_api.paths.request_body_post_uniqueitems_with_an_array_of_items_request_body.post.operation import PostUniqueitemsWithAnArrayOfItemsRequestBody from unit_test_api.paths.response_body_post_uri_format_response_body_for_content_types.post.operation import PostUriFormatResponseBodyForContentTypes @@ -167,6 +168,7 @@ from unit_test_api.paths.request_body_post_idn_email_format_request_body.post.operation import PostIdnEmailFormatRequestBody from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.operation import PostNotMultipleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.request_body_post_nul_characters_in_strings_request_body.post.operation import PostNulCharactersInStringsRequestBody @@ -401,6 +403,7 @@ class PathPostApi( PostJsonPointerFormatRequestBody, PostAnyofComplexTypesRequestBody, PostDependentSchemasDependentSubschemaIncompatibleWithRootRequestBody, + PostNotMultipleTypesRequestBody, PostForbiddenPropertyRequestBody, PostUniqueitemsWithAnArrayOfItemsRequestBody, PostUriFormatResponseBodyForContentTypes, @@ -434,6 +437,7 @@ class PathPostApi( PostIdnEmailFormatRequestBody, PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, + PostNotMultipleTypesResponseBodyForContentTypes, PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostNulCharactersInStringsRequestBody, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 90445a84e47..e48b3218e83 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -40,6 +40,7 @@ from unit_test_api.paths.response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.post.operation import PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.post.operation import PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_nested_items_response_body_for_content_types.post.operation import PostNestedItemsResponseBodyForContentTypes +from unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post.operation import PostNotMultipleTypesResponseBodyForContentTypes from unit_test_api.paths.response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.post.operation import PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes from unit_test_api.paths.response_body_post_anyof_with_base_schema_response_body_for_content_types.post.operation import PostAnyofWithBaseSchemaResponseBodyForContentTypes from unit_test_api.paths.response_body_post_additionalproperties_with_schema_response_body_for_content_types.post.operation import PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes @@ -175,6 +176,7 @@ class ResponseContentContentTypeSchemaApi( PostNonAsciiPatternWithAdditionalpropertiesResponseBodyForContentTypes, PostUnevaluatedpropertiesWithAdjacentAdditionalpropertiesResponseBodyForContentTypes, PostNestedItemsResponseBodyForContentTypes, + PostNotMultipleTypesResponseBodyForContentTypes, PostPrefixitemsWithNullInstanceElementsResponseBodyForContentTypes, PostAnyofWithBaseSchemaResponseBodyForContentTypes, PostAdditionalpropertiesWithSchemaResponseBodyForContentTypes, diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/not_multiple_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/not_multiple_types.py new file mode 100644 index 00000000000..380e4ad932f --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schema/not_multiple_types.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from __future__ import annotations +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + + +@dataclasses.dataclass(frozen=True) +class _Not( + schemas.Schema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + types: typing.FrozenSet[typing.Type] = frozenset({ + int, + schemas.Bool, + }) + format: str = 'int' + + @typing.overload + @classmethod + def validate( + cls, + arg: int, + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> int: ... + @typing.overload + @classmethod + def validate( + cls, + arg: bool, + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ) -> bool: ... + @classmethod + def validate( + cls, + arg, + configuration: typing.Optional[schema_configuration.SchemaConfiguration] = None + ): + return super().validate_base( + arg, + configuration=configuration, + ) + + + +@dataclasses.dataclass(frozen=True) +class NotMultipleTypes( + schemas.AnyTypeSchema[schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES], typing.Tuple[schemas.OUTPUT_BASE_TYPES, ...]], +): + """NOTE: This class is auto generated by OpenAPI JSON Schema Generator. + Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator + + Do not edit the class manually. + """ + # any type + not_: typing.Type[_Not] = dataclasses.field(default_factory=lambda: _Not) # type: ignore + diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py index d800feb130c..060a9ddbee6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/components/schemas/__init__.py @@ -89,6 +89,7 @@ from unit_test_api.components.schema.non_ascii_pattern_with_additionalproperties import NonAsciiPatternWithAdditionalproperties from unit_test_api.components.schema._not import _Not from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_multiple_types import NotMultipleTypes from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/__init__.py new file mode 100644 index 00000000000..f523922c84a --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.request_body_post_not_multiple_types_request_body import RequestBodyPostNotMultipleTypesRequestBody + +path = "/requestBody/postNotMultipleTypesRequestBody" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py new file mode 100644 index 00000000000..813d5df443b --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import not_multiple_types + +from .. import path +from .responses import response_200 +from . import request_body + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_not_multiple_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[False] = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_not_multiple_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: typing.Literal[True], + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_not_multiple_types_request_body( + self, + body: typing.Union[ + schemas.INPUT_TYPES_ALL, + schemas.OUTPUT_BASE_TYPES + ], + *, + skip_deserialization: bool = False, + content_type: typing.Literal["application/json"] = "application/json", + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers() + # TODO add cookie handling + + fields, serialized_body = self._get_fields_and_body( + request_body=request_body.RequestBody, + body=body, + content_type=content_type, + headers=headers + ) + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + fields=fields, + body=serialized_body, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostNotMultipleTypesRequestBody(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_not_multiple_types_request_body = BaseApi._post_not_multiple_types_request_body + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_not_multiple_types_request_body diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py new file mode 100644 index 00000000000..499cda37855 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.header_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +class RequestBody(api_client.RequestBody): + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } + required = True diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.py new file mode 100644 index 00000000000..1c8fe228699 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import not_multiple_types +Schema2: typing_extensions.TypeAlias = not_multiple_types.NotMultipleTypes diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..a7f4db2e0de --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..2c312325ab1 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from unit_test_api.apis.paths.response_body_post_not_multiple_types_response_body_for_content_types import ResponseBodyPostNotMultipleTypesResponseBodyForContentTypes + +path = "/responseBody/postNotMultipleTypesResponseBodyForContentTypes" \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py new file mode 100644 index 00000000000..a85a9f51f05 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api import api_client +from unit_test_api.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 + + +__StatusCodeToResponse = typing.TypedDict( + '__StatusCodeToResponse', + { + '200': typing.Type[response_200.ResponseFor200], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '200': response_200.ResponseFor200, +} +_non_error_status_codes = frozenset({ + '200', +}) + +_all_accept_content_types = ( + "application/json", +) + + +class BaseApi(api_client.Api): + @typing.overload + def _post_not_multiple_types_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[False] = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> response_200.ApiResponse: ... + + @typing.overload + def _post_not_multiple_types_response_body_for_content_types( + self, + *, + skip_deserialization: typing.Literal[True], + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ) -> api_response.ApiResponseWithoutDeserialization: ... + + def _post_not_multiple_types_response_body_for_content_types( + self, + *, + skip_deserialization: bool = False, + accept_content_types: typing.Tuple[str, ...] = _all_accept_content_types, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + ): + """ + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + headers = self._get_headers(accept_content_types=accept_content_types) + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + "servers", server_index + ) + + raw_response = self.api_client.call_api( + resource_path=used_path, + method='post', + host=host, + headers=headers, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + skip_deser_response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(skip_deser_response) + return skip_deser_response + + status = str(raw_response.status) + if status in _non_error_status_codes: + status_code = typing.cast( + typing.Literal[ + '200', + ], + status + ) + return _status_code_to_response[status_code].deserialize( + raw_response, self.api_client.schema_configuration) + + response = api_response.ApiResponseWithoutDeserialization(response=raw_response) + self._verify_response_status(response) + return response + + +class PostNotMultipleTypesResponseBodyForContentTypes(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + post_not_multiple_types_response_body_for_content_types = BaseApi._post_not_multiple_types_response_body_for_content_types + + +class ApiForPost(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + post = BaseApi._post_not_multiple_types_response_body_for_content_types diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py new file mode 100644 index 00000000000..aef0998dced --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -0,0 +1,29 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from unit_test_api.shared_imports.response_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .content.application_json import schema as application_json_schema + + +@dataclasses.dataclass +class ApiResponse(api_response.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.OUTPUT_BASE_TYPES + headers: schemas.Unset = schemas.unset + + +class ResponseFor200(api_client.OpenApiResponse[ApiResponse]): + @classmethod + def get_response(cls, response, headers, body) -> ApiResponse: + return ApiResponse(response=response, body=body, headers=headers) + + + class ApplicationJsonMediaType(api_client.MediaType): + schema: typing_extensions.TypeAlias = application_json_schema.Schema2 + content = { + 'application/json': ApplicationJsonMediaType, + } diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py new file mode 100644 index 00000000000..1c8fe228699 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + + +from unit_test_api.shared_imports.schema_imports import * # pyright: ignore [reportWildcardImportFromLibrary] +from unit_test_api.components.schema import not_multiple_types +Schema2: typing_extensions.TypeAlias = not_multiple_types.NotMultipleTypes diff --git a/samples/client/3_1_0_unit_test/python/test/components/schema/test_not_multiple_types.py b/samples/client/3_1_0_unit_test/python/test/components/schema/test_not_multiple_types.py new file mode 100644 index 00000000000..1834b9ea7ed --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/components/schema/test_not_multiple_types.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest + +import unit_test_api +from unit_test_api.components.schema.not_multiple_types import NotMultipleTypes +from unit_test_api.configurations import schema_configuration + + +class TestNotMultipleTypes(unittest.TestCase): + """NotMultipleTypes unit test stubs""" + configuration = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + + def test_valid_passes(self): + # valid + NotMultipleTypes.validate( + "foo", + configuration=self.configuration + ) + + def test_mismatch_fails(self): + # mismatch + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + NotMultipleTypes.validate( + 1, + configuration=self.configuration + ) + + def test_other_mismatch_fails(self): + # other mismatch + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + NotMultipleTypes.validate( + True, + configuration=self.configuration + ) + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/test_post.py new file mode 100644 index 00000000000..91b503535b2 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_request_body_post_not_multiple_types_request_body/test_post.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.request_body_post_not_multiple_types_request_body.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body = '' + + def test_valid_passes(self): + content_type = 'application/json' + # valid + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foo" + ) + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + mock_request.return_value = self.response( + self.json_bytes(self.response_body), + status=self.response_status + ) + api_response = self.api.post( + body=body, + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/requestBody/postNotMultipleTypesRequestBody", + method='post'.upper(), + body=self.json_bytes(payload), + content_type=content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + + def test_mismatch_fails(self): + content_type = 'application/json' + # mismatch + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1 + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + + def test_other_mismatch_fails(self): + content_type = 'application/json' + # other mismatch + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + True + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + body = post.request_body.RequestBody.content["application/json"].schema.validate( + payload, + configuration=self.schema_config + ) + self.api.post(body=body) + +if __name__ == '__main__': + unittest.main() diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/__init__.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/test_post.py b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/test_post.py new file mode 100644 index 00000000000..177215c3be6 --- /dev/null +++ b/samples/client/3_1_0_unit_test/python/test/test_paths/test_response_body_post_not_multiple_types_response_body_for_content_types/test_post.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 +import typing_extensions + +import unit_test_api +from unit_test_api.paths.response_body_post_not_multiple_types_response_body_for_content_types.post import operation as post # noqa: E501 +from unit_test_api import schemas, api_client +from unit_test_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestPost(ApiTestMixin, unittest.TestCase): + """ + Post unit test stubs + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration( + disabled_json_schema_keywords={'format'} + ) + used_api_client = api_client.ApiClient(configuration=api_config, schema_configuration=schema_config) + api = post.ApiForPost(api_client=used_api_client) # noqa: E501 + + response_status = 200 + response_body_schema = post.response_200.ResponseFor200.content["application/json"].schema + assert response_body_schema is not None + + def test_valid_passes(self): + # valid + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + "foo" + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + api_response = self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postNotMultipleTypesResponseBodyForContentTypes", + method='post'.upper(), + accept_content_type=accept_content_type, + ) + + assert isinstance(api_response.response, urllib3.HTTPResponse) + deserialized_response_body = self.response_body_schema.validate( + payload, + configuration=self.schema_config + ) + assert api_response.body == deserialized_response_body + + def test_mismatch_fails(self): + # mismatch + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + 1 + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postNotMultipleTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + + def test_other_mismatch_fails(self): + # other mismatch + accept_content_type = 'application/json' + + with patch.object(urllib3.PoolManager, 'request') as mock_request: + payload = ( + True + ) + mock_request.return_value = self.response( + self.json_bytes(payload), + status=self.response_status + ) + with self.assertRaises((unit_test_api.ApiValueError, unit_test_api.ApiTypeError)): + self.api.post( + accept_content_types=(accept_content_type,) + ) + self.assert_pool_manager_request_called_with( + mock_request, + self.api_config.get_server_url('servers', None) + "/responseBody/postNotMultipleTypesResponseBodyForContentTypes", + method='post'.upper(), + content_type=None, + accept_content_type=accept_content_type, + ) + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml index e0021577957..119b8501261 100644 --- a/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml +++ b/src/test/resources/3_1/unit_test_spec/3_1_0_unit_test_spec.yaml @@ -2926,6 +2926,42 @@ paths: - path.post - contentType_json - not + /requestBody/postNotMultipleTypesRequestBody: + post: + operationId: postNotMultipleTypesRequestBody + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotMultipleTypes' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NotMultipleTypes' + required: true + responses: + '200': + description: success + tags: + - operation.requestBody + - path.post + - contentType_json + - not + /responseBody/postNotMultipleTypesResponseBodyForContentTypes: + post: + operationId: postNotMultipleTypesResponseBodyForContentTypes + responses: + '200': + description: success + content: + application/json: + schema: + $ref: '#/components/schemas/NotMultipleTypes' + x-schema-test-examples: + $ref: '#/components/x-schema-test-examples/NotMultipleTypes' + tags: + - response.content.contentType.schema + - path.post + - contentType_json + - not /requestBody/postNotMoreComplexSchemaRequestBody: post: operationId: postNotMoreComplexSchemaRequestBody @@ -5181,6 +5217,12 @@ components: $schema: https://json-schema.org/draft/2020-12/schema not: type: integer + NotMultipleTypes: + $schema: https://json-schema.org/draft/2020-12/schema + not: + type: + - integer + - boolean NotMoreComplexSchema: $schema: https://json-schema.org/draft/2020-12/schema not: @@ -7381,6 +7423,22 @@ components: data: 1 valid: false comment: null + NotMultipleTypes: + Valid: + description: valid + data: foo + valid: true + comment: null + Mismatch: + description: mismatch + data: 1 + valid: false + comment: null + OtherMismatch: + description: other mismatch + data: true + valid: false + comment: null NotMoreComplexSchema: Match: description: match diff --git a/src/test/resources/3_1/unit_test_spec/spec_writer.py b/src/test/resources/3_1/unit_test_spec/spec_writer.py index 5ac4270e0f9..8ed702445b4 100644 --- a/src/test/resources/3_1/unit_test_spec/spec_writer.py +++ b/src/test/resources/3_1/unit_test_spec/spec_writer.py @@ -80,24 +80,17 @@ class JsonSchemaTestSchema: class ExclusionReason: - v303_does_not_support_array_of_types = 'v3.0.3 does not support type with array of values' - v303_requires_array_have_items = 'v3.0.3 requires that items MUST be present if the type is array' - v303_does_not_support_additionalItems = 'v3.0.3 does not support the additionalItems keyword' bug_does_not_support_boolean_schemas_in_location = 'v3.1.0 does not support boolean schemas in location, https://github.com/swagger-api/swagger-parser/issues/1770' - v303_does_not_support_contains = 'v3.0.3 does not support the contains keyword' bug_does_not_support_definitions = 'swagger-parser does not support the $defs keyword, https://github.com/swagger-api/swagger-parser/issues/1970' - v303_does_not_support_dependencies = 'v3.0.3 does not support the dependencies keyword' swagger_parser_enum_type_bug = "swagger-parser has a bug where schema type is incorrectly set for an enum, https://github.com/swagger-api/swagger-parser/issues/1761" swagger_parser_validation_missing_bug = 'swagger-parser has a bug where validations are unset, https://github.com/swagger-api/swagger-parser/issues/1762' swagger_parser_items_type_bug = "swagger-parser has a bug where schema type is incorrectly set with items, https://github.com/swagger-api/swagger-parser/issues/1763" v303_does_not_support_id = 'v3.0.3 does not support the $id keyword' - v303_does_not_support_propertyNames = 'v3.0.3 does not support the propertyNames keyword' v303_does_not_support_items_schema_array = 'v3.0.3 does not support an array of schemas for items' swagger_parser_exception = 'swagger-parser threw and exception for this test case' ref_location_not_the_same_for_json_and_openapi = 'the location referenced is not the same going from json schema to openapi' ref_to_adjacent_property_bug = 'Refing an adjacent property does not work, issue at https://github.com/OpenAPITools/openapi-generator/issues/12729' swagger_parser_anytype_bug = 'Swagger parser sets type incorrectly for this anyType schema https://github.com/swagger-api/swagger-parser/issues/1603' - component_ref_component_bug = 'A component refing another component does not work, issue at https://github.com/OpenAPITools/openapi-generator/issues/12730' not_running_the_localhost_server = 'the openapo-generator is not running the localhost server needed to serve remoteRef files' v303_requires_that_the_default_value_is_an_allowed_type = 'v3.0.3 requires that the default value is an allowed type per the schema' ref_not_resolved = 'ref not resolved, TODO resolve only remote refs' @@ -167,7 +160,6 @@ class ExclusionReason: "exclusiveMinimum validation": ExclusionReason.swagger_parser_validation_missing_bug, }, (json_schema_test_draft, 'items.json'): { - 'an array of schemas for items': ExclusionReason.v303_does_not_support_array_of_types, 'items and subitems': ExclusionReason.bug_does_not_support_definitions, 'items with boolean schema (true)': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'items with boolean schemas': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, @@ -214,7 +206,6 @@ class ExclusionReason: (json_schema_test_draft, 'not.json'): { 'not with boolean schema true': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, 'not with boolean schema false': ExclusionReason.bug_does_not_support_boolean_schemas_in_location, - 'not multiple types': ExclusionReason.v303_does_not_support_array_of_types, "collect annotations inside a 'not', even if collection is disabled": ExclusionReason.bug_does_not_support_boolean_schemas_in_location }, (json_schema_test_draft, 'oneOf.json'): { From e08542156a2f10f1f285c8d5c146e85120434153 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 28 Sep 2023 13:14:18 -0700 Subject: [PATCH 34/34] Samples regen --- ...operties_should_not_look_in_applicators.py | 2 +- .../src/unit_test_api/schemas/validation.py | 37 ++++++++++++++++-- .../src/json_schema_api/schemas/validation.py | 37 ++++++++++++++++-- .../python/.openapi-generator/FILES | 1 - .../src/this_package/schemas/validation.py | 39 +++++++++++++++++-- .../src/this_package/schemas/validation.py | 37 ++++++++++++++++-- .../src/petstore_api/schemas/validation.py | 37 ++++++++++++++++-- 7 files changed, 172 insertions(+), 18 deletions(-) diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py index 61e61d10acf..f0c976f4c8a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py @@ -145,8 +145,8 @@ class AdditionalpropertiesShouldNotLookInApplicators( Do not edit the class manually. """ # any type - additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore all_of: AllOf = dataclasses.field(default_factory=lambda: schemas.tuple_to_instance(AllOf)) # type: ignore + additional_properties: typing.Type[AdditionalProperties] = dataclasses.field(default_factory=lambda: AdditionalProperties) # type: ignore type_to_output_cls: typing.Mapping[ typing.Type, typing.Type diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py index b93eb075f6d..3bfd342ad23 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/schemas/validation.py @@ -99,6 +99,14 @@ def _validate( validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -113,6 +121,8 @@ def _validate( elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -737,19 +747,25 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1148,7 +1164,7 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, @@ -1178,6 +1194,21 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...], diff --git a/samples/client/3_1_0_json_schema/python/src/json_schema_api/schemas/validation.py b/samples/client/3_1_0_json_schema/python/src/json_schema_api/schemas/validation.py index 98e97263ba7..9fd5c17b7b3 100644 --- a/samples/client/3_1_0_json_schema/python/src/json_schema_api/schemas/validation.py +++ b/samples/client/3_1_0_json_schema/python/src/json_schema_api/schemas/validation.py @@ -99,6 +99,14 @@ def _validate( validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -113,6 +121,8 @@ def _validate( elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -737,19 +747,25 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1148,7 +1164,7 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, @@ -1178,6 +1194,21 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...], diff --git a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES index cfbf4e7e292..69abb96dd34 100644 --- a/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/python/.openapi-generator/FILES @@ -3448,7 +3448,6 @@ test-requirements.txt test/__init__.py test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test_not_multiple_types.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py index a9fc6ab137e..d3a25c3af00 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/schemas/validation.py @@ -110,6 +110,14 @@ def _validate( validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -124,6 +132,8 @@ def _validate( elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -768,20 +778,26 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, **kwargs ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1232,12 +1248,11 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, validation_metadata: ValidationMetadata, - **kwargs ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None @@ -1263,6 +1278,22 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, + **kwargs +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...], diff --git a/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py b/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py index 84b0e17a6bd..a1343efedcd 100644 --- a/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py +++ b/samples/client/openapi_features/security/python/src/this_package/schemas/validation.py @@ -99,6 +99,14 @@ def _validate( validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -113,6 +121,8 @@ def _validate( elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -737,19 +747,25 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1148,7 +1164,7 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, @@ -1178,6 +1194,21 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...], diff --git a/samples/client/petstore/python/src/petstore_api/schemas/validation.py b/samples/client/petstore/python/src/petstore_api/schemas/validation.py index 426528c256e..f5be7c60f80 100644 --- a/samples/client/petstore/python/src/petstore_api/schemas/validation.py +++ b/samples/client/petstore/python/src/petstore_api/schemas/validation.py @@ -99,6 +99,14 @@ def _validate( validation_metadata, path_to_schemas ) + validated_pattern_properties: typing.Optional[PathToSchemasType] = None + if 'pattern_properties' in vars(cls_schema): + validated_pattern_properties = _get_validated_pattern_properties( + arg, + vars(cls_schema)['pattern_properties'], + cls, + validation_metadata + ) prefix_items_length = 0 if 'prefix_items' in vars(cls_schema): prefix_items_length = len(vars(cls_schema)['prefix_items']) @@ -113,6 +121,8 @@ def _validate( elif keyword in {'types'}: format: typing.Optional[str] = vars(cls_schema).get('format', None) used_val = (val, format) + elif keyword in {'pattern_properties', 'additional_properties'}: + used_val = (val, validated_pattern_properties) else: used_val = val validator = json_schema_keyword_to_validator[keyword] @@ -737,19 +747,25 @@ def validate_properties( def validate_additional_properties( arg: typing.Any, - additional_properties_cls: typing.Type[SchemaValidator], + additional_properties_cls_val_pprops: typing.Tuple[ + typing.Type[SchemaValidator], + typing.Optional[PathToSchemasType] + ], cls: typing.Type, validation_metadata: ValidationMetadata, ) -> typing.Optional[PathToSchemasType]: if not isinstance(arg, immutabledict): return None - schema = _get_class(additional_properties_cls) + schema = _get_class(additional_properties_cls_val_pprops[0]) path_to_schemas: PathToSchemasType = {} cls_schema = cls() properties = cls_schema.properties if hasattr(cls_schema, 'properties') else {} present_additional_properties = {k: v for k, v, in arg.items() if k not in properties} + validated_pattern_properties = additional_properties_cls_val_pprops[1] for property_name, value in present_additional_properties.items(): path_to_item = validation_metadata.path_to_item + (property_name,) + if validated_pattern_properties and path_to_item in validated_pattern_properties: + continue arg_validation_metadata = ValidationMetadata( path_to_item=path_to_item, configuration=validation_metadata.configuration, @@ -1148,7 +1164,7 @@ def validate_property_names( return None -def validate_pattern_properties( +def _get_validated_pattern_properties( arg: typing.Any, pattern_properties: typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], cls: typing.Type, @@ -1178,6 +1194,21 @@ def validate_pattern_properties( return path_to_schemas +def validate_pattern_properties( + arg: typing.Any, + pattern_properties_validation_results: typing.Tuple[ + typing.Mapping[PatternInfo, typing.Type[SchemaValidator]], + typing.Optional[PathToSchemasType] + ], + cls: typing.Type, + validation_metadata: ValidationMetadata, +) -> typing.Optional[PathToSchemasType]: + if not isinstance(arg, immutabledict): + return None + validation_results = pattern_properties_validation_results[1] + return validation_results + + def validate_prefix_items( arg: typing.Any, prefix_items: typing.Tuple[typing.Type[SchemaValidator], ...],