Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/utils/ensure-up-to-date
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if [ -n "$(git status --porcelain)" ]; then
echo "When you see unexpected files here, it likely means that there are newer commits in master that you need to "
echo -e "rebase or merge into your branch.\n"
echo "Please run 'bin/utils/ensure-up-to-date' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
zip -r /tmp/circleci-artifacts/samples.zip samples
exit 1
else
echo "Git working tree is clean"
Expand Down
2 changes: 1 addition & 1 deletion samples/client/3_0_3_unit_test/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ 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_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate({
body = additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate.validate({
"foo": None,
"bar": None,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate({
body = additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate.validate({
"foo": None,
"bar": None,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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(None)
body = additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault.validate(None)
try:
api_response = api_instance.post_additionalproperties_are_allowed_by_default_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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_can_exist_by_itself.AdditionalpropertiesCanExistByItself({
body = additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself.validate({
"key": True,
})
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators(None)
body = additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators.validate(None)
try:
api_response = api_instance.post_additionalproperties_should_not_look_in_applicators_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof(None)
body = allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof.validate(None)
try:
api_response = api_instance.post_allof_combined_with_anyof_oneof_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof.Allof(None)
body = allof.Allof.validate(None)
try:
api_response = api_instance.post_allof_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_simple_types.AllofSimpleTypes(None)
body = allof_simple_types.AllofSimpleTypes.validate(None)
try:
api_response = api_instance.post_allof_simple_types_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_with_base_schema.AllofWithBaseSchema({})
body = allof_with_base_schema.AllofWithBaseSchema.validate({})
try:
api_response = api_instance.post_allof_with_base_schema_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_with_one_empty_schema.AllofWithOneEmptySchema(None)
body = allof_with_one_empty_schema.AllofWithOneEmptySchema.validate(None)
try:
api_response = api_instance.post_allof_with_one_empty_schema_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema(None)
body = allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema.validate(None)
try:
api_response = api_instance.post_allof_with_the_first_empty_schema_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema(None)
body = allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema.validate(None)
try:
api_response = api_instance.post_allof_with_the_last_empty_schema_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = allof_with_two_empty_schemas.AllofWithTwoEmptySchemas(None)
body = allof_with_two_empty_schemas.AllofWithTwoEmptySchemas.validate(None)
try:
api_response = api_instance.post_allof_with_two_empty_schemas_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = anyof_complex_types.AnyofComplexTypes(None)
body = anyof_complex_types.AnyofComplexTypes.validate(None)
try:
api_response = api_instance.post_anyof_complex_types_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = anyof.Anyof(None)
body = anyof.Anyof.validate(None)
try:
api_response = api_instance.post_anyof_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = anyof_with_base_schema.AnyofWithBaseSchema("string_example")
body = anyof_with_base_schema.AnyofWithBaseSchema.validate("string_example")
try:
api_response = api_instance.post_anyof_with_base_schema_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = anyof_with_one_empty_schema.AnyofWithOneEmptySchema(None)
body = anyof_with_one_empty_schema.AnyofWithOneEmptySchema.validate(None)
try:
api_response = api_instance.post_anyof_with_one_empty_schema_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = array_type_matches_arrays.ArrayTypeMatchesArrays([
body = array_type_matches_arrays.ArrayTypeMatchesArrays.validate([
None
])
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = boolean_type_matches_booleans.BooleanTypeMatchesBooleans(True)
body = boolean_type_matches_booleans.BooleanTypeMatchesBooleans.validate(True)
try:
api_response = api_instance.post_boolean_type_matches_booleans_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ with unit_test_api.ApiClient(used_configuration) as api_client:
api_instance = multiple_of_api.MultipleOfApi(api_client)

# example passing only required values which don't have defaults set
body = by_int.ByInt(None)
body = by_int.ByInt.validate(None)
try:
api_response = api_instance.post_by_int_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ with unit_test_api.ApiClient(used_configuration) as api_client:
api_instance = multiple_of_api.MultipleOfApi(api_client)

# example passing only required values which don't have defaults set
body = by_number.ByNumber(None)
body = by_number.ByNumber.validate(None)
try:
api_response = api_instance.post_by_number_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ with unit_test_api.ApiClient(used_configuration) as api_client:
api_instance = multiple_of_api.MultipleOfApi(api_client)

# example passing only required values which don't have defaults set
body = by_small_number.BySmallNumber(None)
body = by_small_number.BySmallNumber.validate(None)
try:
api_response = api_instance.post_by_small_number_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = date_time_format.DateTimeFormat(None)
body = date_time_format.DateTimeFormat.validate(None)
try:
api_response = api_instance.post_date_time_format_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = email_format.EmailFormat(None)
body = email_format.EmailFormat.validate(None)
try:
api_response = api_instance.post_email_format_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse(0)
body = enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse.validate(0)
try:
api_response = api_instance.post_enum_with0_does_not_match_false_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue(1)
body = enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue.validate(1)
try:
api_response = api_instance.post_enum_with1_does_not_match_true_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = enum_with_escaped_characters.EnumWithEscapedCharacters("foo\nbar")
body = enum_with_escaped_characters.EnumWithEscapedCharacters.validate("foo\nbar")
try:
api_response = api_instance.post_enum_with_escaped_characters_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0(False)
body = enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0.validate(False)
try:
api_response = api_instance.post_enum_with_false_does_not_match0_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1(True)
body = enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1.validate(True)
try:
api_response = api_instance.post_enum_with_true_does_not_match1_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = enums_in_properties.EnumsInProperties({
body = enums_in_properties.EnumsInProperties.validate({
"foo": "foo",
"bar": "bar",
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = forbidden_property.ForbiddenProperty(None)
body = forbidden_property.ForbiddenProperty.validate(None)
try:
api_response = api_instance.post_forbidden_property_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = hostname_format.HostnameFormat(None)
body = hostname_format.HostnameFormat.validate(None)
try:
api_response = api_instance.post_hostname_format_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = integer_type_matches_integers.IntegerTypeMatchesIntegers(1)
body = integer_type_matches_integers.IntegerTypeMatchesIntegers.validate(1)
try:
api_response = api_instance.post_integer_type_matches_integers_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ with unit_test_api.ApiClient(used_configuration) as api_client:
api_instance = multiple_of_api.MultipleOfApi(api_client)

# example passing only required values which don't have defaults set
body = invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf(1)
body = invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.validate(1)
try:
api_response = api_instance.post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = invalid_string_value_for_default.InvalidStringValueForDefault(None)
body = invalid_string_value_for_default.InvalidStringValueForDefault.validate(None)
try:
api_response = api_instance.post_invalid_string_value_for_default_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = ipv4_format.Ipv4Format(None)
body = ipv4_format.Ipv4Format.validate(None)
try:
api_response = api_instance.post_ipv4_format_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = ipv6_format.Ipv6Format(None)
body = ipv6_format.Ipv6Format.validate(None)
try:
api_response = api_instance.post_ipv6_format_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = json_pointer_format.JsonPointerFormat(None)
body = json_pointer_format.JsonPointerFormat.validate(None)
try:
api_response = api_instance.post_json_pointer_format_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = maximum_validation.MaximumValidation(None)
body = maximum_validation.MaximumValidation.validate(None)
try:
api_response = api_instance.post_maximum_validation_request_body(
body=body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ 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 = maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger(None)
body = maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger.validate(None)
try:
api_response = api_instance.post_maximum_validation_with_unsigned_integer_request_body(
body=body,
Expand Down
Loading