From 5adcf59dd1d69997de28cc3325dbe47fb7815e67 Mon Sep 17 00:00:00 2001 From: Patrick Jungermann Date: Mon, 11 Dec 2023 17:38:58 +0100 Subject: [PATCH] chore: use `@generated` as defined at https://generated.at Add the marker to "generated" at the file header to make it easier for tooling to identify generated files as such. Closes: #1604 Signed-off-by: Patrick Jungermann --- README.md | 2 +- datamodel_code_generator/__init__.py | 2 +- docs/custom_template.md | 2 +- docs/field-constraints.md | 4 ++-- docs/graphql.md | 4 ++-- docs/index.md | 2 +- docs/jsondata.md | 2 +- docs/jsonschema.md | 2 +- docs/openapi.md | 2 +- docs/using_as_module.md | 2 +- tests/data/expected/main/all_of_ref/output.py | 2 +- tests/data/expected/main/all_of_with_object/output.py | 2 +- tests/data/expected/main/allow_extra_fields/output.py | 2 +- .../expected/main/allow_extra_fields_pydantic_v2/output.py | 2 +- .../expected/main/allow_population_by_field_name/output.py | 2 +- .../main/allow_population_by_field_name_pydantic_v2/output.py | 2 +- tests/data/expected/main/combined_array/output.py | 2 +- tests/data/expected/main/csv_file_simple/output.py | 2 +- tests/data/expected/main/csv_stdin_simple/output.py | 2 +- tests/data/expected/main/disable_timestamp/output.py | 2 +- .../data/expected/main/duplicate_field_constraints/common.py | 2 +- tests/data/expected/main/duplicate_field_constraints/test.py | 2 +- .../main/duplicate_field_constraints_msgspec/common.py | 2 +- .../expected/main/duplicate_field_constraints_msgspec/test.py | 2 +- .../common.py | 2 +- .../test.py | 2 +- tests/data/expected/main/enable_faux_immutability/output.py | 2 +- .../main/enable_faux_immutability_pydantic_v2/output.py | 2 +- tests/data/expected/main/enable_version_header/output.py | 2 +- .../main/external_relative_ref/module.openapi/__init__.py | 2 +- .../main/external_relative_ref/module.openapi/model_a.py | 2 +- .../external_relative_ref/module.openapi/modules/__init__.py | 2 +- .../module.openapi/modules/quality_evaluation.py | 2 +- tests/data/expected/main/force_optional/output.py | 2 +- tests/data/expected/main/has_default_value/output.py | 2 +- tests/data/expected/main/main/output.py | 2 +- tests/data/expected/main/main_all_of_any_of/__init__.py | 2 +- tests/data/expected/main/main_all_of_any_of/direct.py | 2 +- tests/data/expected/main/main_all_of_any_of/reference.py | 2 +- tests/data/expected/main/main_all_of_one_of/__init__.py | 2 +- tests/data/expected/main/main_all_of_one_of/direct.py | 2 +- tests/data/expected/main/main_all_of_one_of/reference.py | 2 +- tests/data/expected/main/main_all_of_ref_self/output.py | 2 +- tests/data/expected/main/main_all_of_use_default/output.py | 2 +- .../expected/main/main_all_of_with_relative_ref/output.py | 2 +- .../data/expected/main/main_array_field_constraints/output.py | 2 +- tests/data/expected/main/main_autodetect/output.py | 2 +- tests/data/expected/main/main_base_class/output.py | 2 +- tests/data/expected/main/main_circular_reference/output.py | 2 +- tests/data/expected/main/main_collapse_root_models/output.py | 2 +- .../main_collapse_root_models_field_constraints/output.py | 2 +- .../output.py | 2 +- .../main/main_complicated_enum_default_member/output.py | 2 +- .../main_complicated_enum_default_member_dataclass/output.py | 2 +- tests/data/expected/main/main_custom_template_dir/output.py | 2 +- tests/data/expected/main/main_dataclass/output.py | 2 +- tests/data/expected/main/main_dataclass_base_class/output.py | 2 +- tests/data/expected/main/main_dataclass_field/output.py | 2 +- .../data/expected/main/main_dataclass_field_default/output.py | 2 +- .../main/main_disable_appending_item_suffix/output.py | 2 +- tests/data/expected/main/main_external_definitions/output.py | 2 +- .../expected/main/main_external_files_in_directory/output.py | 2 +- .../expected/main/main_extra_template_data_config/output.py | 2 +- .../main_extra_template_data_config_pydantic_v2/output.py | 2 +- .../expected/main/main_generate_non_pydantic_output/output.py | 2 +- .../main/main_graphql_additional_imports/output_isort4.py | 2 +- .../main/main_graphql_additional_imports/output_isort5.py | 2 +- .../expected/main/main_graphql_custom_formatters/output.py | 2 +- .../expected/main/main_graphql_custom_scalar_types/output.py | 2 +- .../main/main_graphql_different_types_of_fields/output.py | 2 +- tests/data/expected/main/main_graphql_enums/output.py | 2 +- tests/data/expected/main/main_graphql_field_aliases/output.py | 2 +- tests/data/expected/main/main_graphql_github_api/output.py | 2 +- .../expected/main/main_graphql_simple_star_wars/output.py | 2 +- .../main/main_graphql_simple_star_wars_dataclass/output.py | 2 +- tests/data/expected/main/main_graphql_union/output.py | 2 +- .../data/expected/main/main_inheritance_forward_ref/output.py | 2 +- .../main_inheritance_forward_ref_keep_model_order/output.py | 2 +- tests/data/expected/main/main_invalid_enum_name/output.py | 2 +- .../main/main_invalid_enum_name_snake_case_field/output.py | 2 +- tests/data/expected/main/main_invalid_model_name/output.py | 2 +- tests/data/expected/main/main_json/output.py | 2 +- .../data/expected/main/main_json_array_include_null/output.py | 2 +- .../expected/main/main_json_capitalise_enum_members/output.py | 2 +- tests/data/expected/main/main_json_pointer/output.py | 2 +- tests/data/expected/main/main_json_reuse_enum/output.py | 2 +- .../main/main_json_reuse_enum_default_member/output.py | 2 +- tests/data/expected/main/main_json_reuse_model/output.py | 2 +- tests/data/expected/main/main_json_snake_case_field/output.py | 2 +- tests/data/expected/main/main_jsonschema/output.py | 2 +- .../main_jsonschema_array_in_additional_properties/output.py | 2 +- .../expected/main/main_jsonschema_boolean_property/output.py | 2 +- .../main/main_jsonschema_combine_any_of_object/output.py | 2 +- .../main/main_jsonschema_combine_one_of_object/output.py | 2 +- .../expected/main/main_jsonschema_complex_any_of/output.py | 2 +- .../expected/main/main_jsonschema_complex_one_of/output.py | 2 +- .../expected/main/main_jsonschema_custom_base_path/output.py | 2 +- .../expected/main/main_jsonschema_custom_type_path/output.py | 2 +- .../main_jsonschema_custom_type_path_pydantic_v2/output.py | 2 +- .../main/main_jsonschema_discriminator_literals/output.py | 2 +- .../expected/main/main_jsonschema_duplicate_name/__init__.py | 2 +- .../data/expected/main/main_jsonschema_duplicate_name/bar.py | 2 +- .../data/expected/main/main_jsonschema_duplicate_name/foo.py | 2 +- .../expected/main/main_jsonschema_external_files/output.py | 2 +- .../data/expected/main/main_jsonschema_field_extras/output.py | 2 +- .../main_jsonschema_field_extras_field_extra_keys/output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../expected/main/main_jsonschema_field_extras_v2/output.py | 2 +- tests/data/expected/main/main_jsonschema_id/output.py | 2 +- tests/data/expected/main/main_jsonschema_id_stdin/output.py | 2 +- tests/data/expected/main/main_jsonschema_ids/ContactPoint.py | 2 +- tests/data/expected/main/main_jsonschema_ids/URI.py | 2 +- tests/data/expected/main/main_jsonschema_ids/__init__.py | 2 +- tests/data/expected/main/main_jsonschema_ids/id.py | 2 +- tests/data/expected/main/main_jsonschema_ids/name.py | 2 +- tests/data/expected/main/main_jsonschema_ids/sameAs.py | 2 +- tests/data/expected/main/main_jsonschema_ids/type.py | 2 +- .../expected/main/main_jsonschema_items_boolean/output.py | 2 +- .../main/main_jsonschema_json_pointer_array/output.py | 2 +- .../main_jsonschema_modular_default_enum_member/__init__.py | 2 +- .../main/main_jsonschema_modular_default_enum_member/bar.py | 2 +- .../main/main_jsonschema_modular_default_enum_member/foo.py | 2 +- .../expected/main/main_jsonschema_nested_deep/__init__.py | 2 +- .../main_jsonschema_nested_deep/empty_parent/nested/deep.py | 2 +- .../expected/main/main_jsonschema_nested_deep/nested/deep.py | 2 +- .../expected/main/main_jsonschema_nested_skip/__init__.py | 2 +- .../expected/main/main_jsonschema_nested_skip/a/__init__.py | 2 +- .../expected/main/main_jsonschema_nested_skip/a/b/__init__.py | 2 +- .../main/main_jsonschema_nested_skip/a/b/c/__init__.py | 2 +- .../data/expected/main/main_jsonschema_nested_skip/a/b/c/d.py | 2 +- .../expected/main/main_jsonschema_nullable_object/output.py | 2 +- .../expected/main/main_jsonschema_object_has_one_of/output.py | 2 +- .../main_jsonschema_pattern_properties_by_reference/output.py | 2 +- .../output.py | 2 +- .../main/main_jsonschema_removed_parent_class/output.py | 2 +- .../data/expected/main/main_jsonschema_root_in_enum/output.py | 2 +- .../data/expected/main/main_jsonschema_special_enum/output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../main/main_jsonschema_special_field_name/output.py | 2 +- .../output.py | 2 +- .../expected/main/main_jsonschema_subclass_enum/output.py | 2 +- tests/data/expected/main/main_jsonschema_titles/output.py | 2 +- .../main/main_jsonschema_titles_use_title_as_name/output.py | 2 +- .../output.py | 2 +- tests/data/expected/main/main_long_description/output.py | 2 +- .../main/main_long_description_wrap_string_literal/output.py | 2 +- tests/data/expected/main/main_modular/__init__.py | 2 +- tests/data/expected/main/main_modular/bar.py | 2 +- tests/data/expected/main/main_modular/collections.py | 2 +- tests/data/expected/main/main_modular/foo/__init__.py | 2 +- tests/data/expected/main/main_modular/foo/bar.py | 2 +- tests/data/expected/main/main_modular/models.py | 2 +- tests/data/expected/main/main_modular/nested/__init__.py | 2 +- tests/data/expected/main/main_modular/nested/foo.py | 2 +- tests/data/expected/main/main_modular/woo/__init__.py | 2 +- tests/data/expected/main/main_modular/woo/boo.py | 2 +- .../expected/main/main_modular_custom_class_name/__init__.py | 2 +- .../data/expected/main/main_modular_custom_class_name/bar.py | 2 +- .../main/main_modular_custom_class_name/collections.py | 2 +- .../main/main_modular_custom_class_name/foo/__init__.py | 2 +- .../expected/main/main_modular_custom_class_name/foo/bar.py | 2 +- .../expected/main/main_modular_custom_class_name/models.py | 2 +- .../main/main_modular_custom_class_name/nested/__init__.py | 2 +- .../main/main_modular_custom_class_name/nested/foo.py | 2 +- .../main/main_modular_custom_class_name/woo/__init__.py | 2 +- .../expected/main/main_modular_custom_class_name/woo/boo.py | 2 +- tests/data/expected/main/main_modular_reuse_model/__init__.py | 2 +- tests/data/expected/main/main_modular_reuse_model/bar.py | 2 +- .../expected/main/main_modular_reuse_model/collections.py | 2 +- .../expected/main/main_modular_reuse_model/foo/__init__.py | 2 +- tests/data/expected/main/main_modular_reuse_model/foo/bar.py | 2 +- tests/data/expected/main/main_modular_reuse_model/models.py | 2 +- .../expected/main/main_modular_reuse_model/nested/__init__.py | 2 +- .../data/expected/main/main_modular_reuse_model/nested/foo.py | 2 +- .../expected/main/main_modular_reuse_model/woo/__init__.py | 2 +- tests/data/expected/main/main_modular_reuse_model/woo/boo.py | 2 +- tests/data/expected/main/main_modular_typed_dict/__init__.py | 2 +- tests/data/expected/main/main_modular_typed_dict/bar.py | 2 +- .../data/expected/main/main_modular_typed_dict/collections.py | 2 +- .../expected/main/main_modular_typed_dict/foo/__init__.py | 2 +- tests/data/expected/main/main_modular_typed_dict/foo/bar.py | 2 +- tests/data/expected/main/main_modular_typed_dict/models.py | 2 +- .../expected/main/main_modular_typed_dict/nested/__init__.py | 2 +- .../data/expected/main/main_modular_typed_dict/nested/foo.py | 2 +- .../expected/main/main_modular_typed_dict/woo/__init__.py | 2 +- tests/data/expected/main/main_modular_typed_dict/woo/boo.py | 2 +- tests/data/expected/main/main_msgspec_struct/output.py | 2 +- .../expected/main/main_multiple_required_any_of/output.py | 2 +- tests/data/expected/main/main_nested_all_of/output.py | 2 +- tests/data/expected/main/main_nested_directory/__init__.py | 2 +- .../main/main_nested_directory/definitions/__init__.py | 2 +- .../main/main_nested_directory/definitions/drink/__init__.py | 2 +- .../main/main_nested_directory/definitions/drink/coffee.py | 2 +- .../main/main_nested_directory/definitions/drink/tea.py | 2 +- .../expected/main/main_nested_directory/definitions/food.py | 2 +- .../main/main_nested_directory/definitions/friends.py | 2 +- .../expected/main/main_nested_directory/definitions/fur.py | 2 +- .../main_nested_directory/definitions/machine/__init__.py | 2 +- .../main/main_nested_directory/definitions/machine/robot.py | 2 +- .../expected/main/main_nested_directory/definitions/pet.py | 2 +- tests/data/expected/main/main_nested_directory/person.py | 2 +- tests/data/expected/main/main_nested_enum/output.py | 2 +- tests/data/expected/main/main_nested_json_pointer/output.py | 2 +- tests/data/expected/main/main_no_file/output.py | 2 +- tests/data/expected/main/main_null/output.py | 2 +- tests/data/expected/main/main_null_and_array/output.py | 2 +- tests/data/expected/main/main_null_and_array_v2/output.py | 2 +- tests/data/expected/main/main_nullable_any_of/output.py | 2 +- .../main/main_nullable_any_of_use_union_operator/output.py | 2 +- .../data/expected/main/main_openapi_allof_required/output.py | 2 +- .../expected/main/main_openapi_body_and_parameters/output.py | 2 +- .../main_openapi_body_and_parameters_only_paths/output.py | 2 +- .../main_openapi_body_and_parameters_only_schemas/output.py | 2 +- .../main_openapi_body_and_parameters_remote_ref/output.py | 2 +- .../expected/main/main_openapi_complex_reference/output.py | 2 +- tests/data/expected/main/main_openapi_const/output.py | 2 +- tests/data/expected/main/main_openapi_const_field/output.py | 2 +- .../expected/main/main_openapi_const_field_msgspec/output.py | 2 +- .../main/main_openapi_const_field_pydantic_v2/output.py | 2 +- .../expected/main/main_openapi_const_pydantic_v2/output.py | 2 +- .../main/main_openapi_content_in_parameters/output.py | 2 +- .../main/main_openapi_custom_id_pydantic_v2/output.py | 2 +- .../main_openapi_custom_id_pydantic_v2_custom_base/output.py | 2 +- tests/data/expected/main/main_openapi_datetime/output.py | 2 +- .../expected/main/main_openapi_datetime_pydantic_v2/output.py | 2 +- .../data/expected/main/main_openapi_default_object/Another.py | 2 +- .../data/expected/main/main_openapi_default_object/Nested.py | 2 +- .../expected/main/main_openapi_default_object/__init__.py | 2 +- tests/data/expected/main/main_openapi_discriminator/output.py | 2 +- .../main/main_openapi_discriminator_in_array/output.py | 2 +- .../output.py | 2 +- .../main/main_openapi_discriminator_without_mapping/output.py | 2 +- .../data/expected/main/main_openapi_enum_models_all/output.py | 2 +- .../main/main_openapi_enum_models_as_literal_py37/output.py | 2 +- .../data/expected/main/main_openapi_enum_models_one/output.py | 2 +- .../main_openapi_enum_models_one_literal_as_default/output.py | 2 +- tests/data/expected/main/main_openapi_http_refs/output.py | 2 +- tests/data/expected/main/main_openapi_json_pointer/output.py | 2 +- .../data/expected/main/main_openapi_max_items_enum/output.py | 2 +- .../main/main_openapi_msgspec_default_object/Another.py | 2 +- .../main/main_openapi_msgspec_default_object/Nested.py | 2 +- .../main/main_openapi_msgspec_default_object/__init__.py | 2 +- tests/data/expected/main/main_openapi_nullable/output.py | 2 +- .../main/main_openapi_nullable_strict_nullable/output.py | 2 +- .../output.py | 2 +- .../main/main_openapi_oas_response_reference/output.py | 2 +- .../main/main_openapi_override_required_all_of/output.py | 2 +- .../main_openapi_reference_to_object_properties/output.py | 2 +- .../output.py | 2 +- tests/data/expected/main/main_pattern/output.py | 2 +- tests/data/expected/main/main_pattern_msgspec/output.py | 2 +- tests/data/expected/main/main_pattern_properties/output.py | 2 +- .../main/main_pattern_properties_field_constraints/output.py | 2 +- tests/data/expected/main/main_pattern_pydantic_v2/output.py | 2 +- tests/data/expected/main/main_pydantic_v2/output.py | 2 +- tests/data/expected/main/main_root_id/output.py | 2 +- tests/data/expected/main/main_root_id_absolute_url/output.py | 2 +- .../main/main_root_model_with_additional_properties/output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- tests/data/expected/main/main_self_reference/output.py | 2 +- tests/data/expected/main/main_similar_nested_array/output.py | 2 +- .../main/main_space_field_enum_snake_case_field/output.py | 2 +- tests/data/expected/main/main_special_yaml_keywords/output.py | 2 +- tests/data/expected/main/main_strict_types/output.py | 2 +- tests/data/expected/main/main_strict_types_all/output.py | 2 +- .../main/main_strict_types_all_field_constraints/output.py | 2 +- tests/data/expected/main/main_subclass_enum/output.py | 2 +- tests/data/expected/main/main_typed_dict/output.py | 2 +- .../main/main_typed_dict_not_required_nullable/output.py | 2 +- tests/data/expected/main/main_typed_dict_nullable/output.py | 2 +- .../main/main_typed_dict_nullable_strict_nullable/output.py | 2 +- tests/data/expected/main/main_typed_dict_py_38/output.py | 2 +- .../main_typed_dict_space_and_special_characters/output.py | 2 +- .../output.py | 2 +- .../main/main_use_annotated_with_field_constraints/output.py | 2 +- .../main_use_annotated_with_field_constraints_py38/output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- tests/data/expected/main/main_use_default_kwarg/output.py | 2 +- .../main/main_use_generic_container_types/__init__.py | 2 +- .../main/main_use_generic_container_types/collections.py | 2 +- .../main/main_use_generic_container_types/foo/__init__.py | 2 +- .../expected/main/main_use_generic_container_types/foo/bar.py | 2 +- .../expected/main/main_use_generic_container_types/models.py | 2 +- .../main/main_use_generic_container_types/nested/__init__.py | 2 +- .../main/main_use_generic_container_types/nested/foo.py | 2 +- .../main/main_use_generic_container_types/woo/__init__.py | 2 +- .../expected/main/main_use_generic_container_types/woo/boo.py | 2 +- .../__init__.py | 2 +- .../collections.py | 2 +- .../foo/__init__.py | 2 +- .../foo/bar.py | 2 +- .../models.py | 2 +- .../nested/__init__.py | 2 +- .../nested/foo.py | 2 +- .../woo/__init__.py | 2 +- .../woo/boo.py | 2 +- .../expected/main/main_use_operation_id_as_name/output.py | 2 +- .../expected/main/main_use_standard_collections/__init__.py | 2 +- .../main/main_use_standard_collections/collections.py | 2 +- .../main/main_use_standard_collections/foo/__init__.py | 2 +- .../expected/main/main_use_standard_collections/foo/bar.py | 2 +- .../expected/main/main_use_standard_collections/models.py | 2 +- .../main/main_use_standard_collections/nested/__init__.py | 2 +- .../expected/main/main_use_standard_collections/nested/foo.py | 2 +- .../main/main_use_standard_collections/woo/__init__.py | 2 +- .../expected/main/main_use_standard_collections/woo/boo.py | 2 +- tests/data/expected/main/main_use_union_operator/__init__.py | 2 +- .../main/main_use_union_operator/definitions/__init__.py | 2 +- .../main_use_union_operator/definitions/drink/__init__.py | 2 +- .../main/main_use_union_operator/definitions/drink/coffee.py | 2 +- .../main/main_use_union_operator/definitions/drink/tea.py | 2 +- .../expected/main/main_use_union_operator/definitions/food.py | 2 +- .../main/main_use_union_operator/definitions/friends.py | 2 +- .../expected/main/main_use_union_operator/definitions/fur.py | 2 +- .../main_use_union_operator/definitions/machine/__init__.py | 2 +- .../main/main_use_union_operator/definitions/machine/robot.py | 2 +- .../expected/main/main_use_union_operator/definitions/pet.py | 2 +- tests/data/expected/main/main_use_union_operator/person.py | 2 +- tests/data/expected/main/main_with_aliases/output.py | 2 +- tests/data/expected/main/main_with_aliases_msgspec/output.py | 2 +- tests/data/expected/main/main_with_exclusive/output.py | 2 +- .../data/expected/main/main_with_field_constraints/output.py | 2 +- .../main/main_with_field_constraints_pydantic_v2/output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- .../output.py | 2 +- tests/data/expected/main/main_with_snake_case_field/output.py | 2 +- .../data/expected/main/main_with_strip_default_none/output.py | 2 +- .../expected/main/main_without_field_constraints/output.py | 2 +- .../main/main_without_field_constraints_pydantic_v2/output.py | 2 +- tests/data/expected/main/main_yaml/output.py | 2 +- tests/data/expected/main/max_min_number/output.py | 2 +- tests/data/expected/main/multiple_files/__init__.py | 2 +- tests/data/expected/main/multiple_files/file_a.py | 2 +- tests/data/expected/main/multiple_files/file_b.py | 2 +- tests/data/expected/main/multiple_files/file_c.py | 2 +- tests/data/expected/main/multiple_files/file_d.py | 2 +- .../expected/main/multiple_files_json_pointer/__init__.py | 2 +- .../data/expected/main/multiple_files_json_pointer/file_a.py | 2 +- .../data/expected/main/multiple_files_json_pointer/file_b.py | 2 +- .../data/expected/main/multiple_files_json_pointer/file_c.py | 2 +- tests/data/expected/main/multiple_files_self_ref/__init__.py | 2 +- tests/data/expected/main/multiple_files_self_ref/base_test.py | 2 +- tests/data/expected/main/multiple_files_self_ref/test.py | 2 +- .../expected/main/multiple_files_self_ref_single/output.py | 2 +- tests/data/expected/main/pyproject/output.py | 2 +- tests/data/expected/main/pyproject_not_found/output.py | 2 +- .../data/expected/main/simple_json_snake_case_field/output.py | 2 +- .../data/expected/main/space_and_special_characters/output.py | 2 +- .../expected/main/space_and_special_characters_dict/output.py | 2 +- tests/data/expected/main/stdin/output.py | 2 +- tests/data/expected/main/target_python_version/output.py | 2 +- tests/data/expected/main/unsorted_optional_fields/output.py | 2 +- tests/data/expected/main/use_default/output.py | 2 +- tests/data/expected/main/use_default_with_const/output.py | 2 +- tests/data/expected/main/validation/output.py | 2 +- tests/data/expected/main_kr/main/output.py | 2 +- tests/data/expected/main_kr/main_base_class/output.py | 2 +- .../data/expected/main_kr/main_custom_template_dir/output.py | 2 +- tests/data/expected/main_kr/main_modular/__init__.py | 2 +- tests/data/expected/main_kr/main_modular/bar.py | 2 +- tests/data/expected/main_kr/main_modular/collections.py | 2 +- tests/data/expected/main_kr/main_modular/foo/__init__.py | 2 +- tests/data/expected/main_kr/main_modular/foo/bar.py | 2 +- tests/data/expected/main_kr/main_modular/models.py | 2 +- tests/data/expected/main_kr/main_modular/nested/__init__.py | 2 +- tests/data/expected/main_kr/main_modular/nested/foo.py | 2 +- tests/data/expected/main_kr/main_modular/woo/__init__.py | 2 +- tests/data/expected/main_kr/main_modular/woo/boo.py | 2 +- tests/data/expected/main_kr/main_no_file/output.py | 2 +- .../expected/main_kr/main_use_field_description/output.py | 2 +- .../expected/main_kr/main_use_schema_description/output.py | 2 +- tests/data/expected/main_kr/pyproject/output.py | 2 +- tests/data/expected/main_kr/target_python_version/output.py | 2 +- 384 files changed, 386 insertions(+), 386 deletions(-) diff --git a/README.md b/README.md index f0fd16b74..cc53dc22d 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ components: model.py ```python -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2020-06-02T05:28:24+00:00 diff --git a/datamodel_code_generator/__init__.py b/datamodel_code_generator/__init__.py index 9df843f77..c7dabd65f 100644 --- a/datamodel_code_generator/__init__.py +++ b/datamodel_code_generator/__init__.py @@ -491,7 +491,7 @@ def get_header_and_first_line(csv_file: IO[str]) -> Dict[str, Any]: custom_file_header = custom_file_header_path.read_text(encoding=encoding) header = """\ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: {}""" if not disable_timestamp: header += f'\n# timestamp: {timestamp}' diff --git a/docs/custom_template.md b/docs/custom_template.md index e3ab69834..c90f5b5e7 100644 --- a/docs/custom_template.md +++ b/docs/custom_template.md @@ -38,7 +38,7 @@ The generated `person.py` file will now include your custom comment at the top: **person.py** ```python -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2023-04-09T05:36:24+00:00 diff --git a/docs/field-constraints.md b/docs/field-constraints.md index 376784615..ae0190ed3 100644 --- a/docs/field-constraints.md +++ b/docs/field-constraints.md @@ -36,7 +36,7 @@ Generated Model `model.py` ```py -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: model.json # timestamp: 2020-07-20T15:37:56+00:00 @@ -70,7 +70,7 @@ Generated Model `model.py` ```py -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: model.json # timestamp: 2020-07-20T15:47:21+00:00 diff --git a/docs/graphql.md b/docs/graphql.md index 8ee7de08d..6717d919f 100644 --- a/docs/graphql.md +++ b/docs/graphql.md @@ -41,7 +41,7 @@ type Query { **model.py** ```python -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: schema.graphql # timestamp: 2023-11-20T17:04:42+00:00 @@ -161,7 +161,7 @@ type A { **model.py** ```python -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom-scalar-types.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/docs/index.md b/docs/index.md index ebbe487a6..eb79c77c2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -186,7 +186,7 @@ components: model.py ```py -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2020-06-02T05:28:24+00:00 diff --git a/docs/jsondata.md b/docs/jsondata.md index e47fef874..0426c8da8 100644 --- a/docs/jsondata.md +++ b/docs/jsondata.md @@ -33,7 +33,7 @@ $ datamodel-codegen --input pets.json --input-file-type json --output model.py **model.py** ```py -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pets.json # timestamp: 2020-04-27T16:08:21+00:00 diff --git a/docs/jsonschema.md b/docs/jsonschema.md index 128ad0f97..6a151fe5a 100644 --- a/docs/jsonschema.md +++ b/docs/jsonschema.md @@ -41,7 +41,7 @@ $ datamodel-codegen --input person.json --input-file-type jsonschema --output m **model.py** ```py -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2020-04-27T16:12:27+00:00 diff --git a/docs/openapi.md b/docs/openapi.md index 432589abd..0f48242a8 100644 --- a/docs/openapi.md +++ b/docs/openapi.md @@ -166,7 +166,7 @@ components: **model.py** ```py -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2020-06-02T05:28:24+00:00 diff --git a/docs/using_as_module.md b/docs/using_as_module.md index 548c812b4..8e5e0e3a9 100644 --- a/docs/using_as_module.md +++ b/docs/using_as_module.md @@ -50,7 +50,7 @@ print(model) The result of `print(model)`: ```python -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: example.json # timestamp: 2020-12-21T08:01:06+00:00 diff --git a/tests/data/expected/main/all_of_ref/output.py b/tests/data/expected/main/all_of_ref/output.py index d3b8707af..becbb366f 100644 --- a/tests/data/expected/main/all_of_ref/output.py +++ b/tests/data/expected/main/all_of_ref/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: test.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/all_of_with_object/output.py b/tests/data/expected/main/all_of_with_object/output.py index ffd41493d..a94fd9202 100644 --- a/tests/data/expected/main/all_of_with_object/output.py +++ b/tests/data/expected/main/all_of_with_object/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: all_of_with_object.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/allow_extra_fields/output.py b/tests/data/expected/main/allow_extra_fields/output.py index aa149b90b..ba5f70e47 100644 --- a/tests/data/expected/main/allow_extra_fields/output.py +++ b/tests/data/expected/main/allow_extra_fields/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/allow_extra_fields_pydantic_v2/output.py b/tests/data/expected/main/allow_extra_fields_pydantic_v2/output.py index 4028fb04a..4281f2ab8 100644 --- a/tests/data/expected/main/allow_extra_fields_pydantic_v2/output.py +++ b/tests/data/expected/main/allow_extra_fields_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/allow_population_by_field_name/output.py b/tests/data/expected/main/allow_population_by_field_name/output.py index be224c3c9..53054d9ad 100644 --- a/tests/data/expected/main/allow_population_by_field_name/output.py +++ b/tests/data/expected/main/allow_population_by_field_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/allow_population_by_field_name_pydantic_v2/output.py b/tests/data/expected/main/allow_population_by_field_name_pydantic_v2/output.py index bff609ddf..de8bdeced 100644 --- a/tests/data/expected/main/allow_population_by_field_name_pydantic_v2/output.py +++ b/tests/data/expected/main/allow_population_by_field_name_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/combined_array/output.py b/tests/data/expected/main/combined_array/output.py index e955ffabd..b99adc20f 100644 --- a/tests/data/expected/main/combined_array/output.py +++ b/tests/data/expected/main/combined_array/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: combined_array.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/csv_file_simple/output.py b/tests/data/expected/main/csv_file_simple/output.py index 228bff40e..50eb02890 100644 --- a/tests/data/expected/main/csv_file_simple/output.py +++ b/tests/data/expected/main/csv_file_simple/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: simple.csv # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/csv_stdin_simple/output.py b/tests/data/expected/main/csv_stdin_simple/output.py index 5c70cf47d..b3ce516d8 100644 --- a/tests/data/expected/main/csv_stdin_simple/output.py +++ b/tests/data/expected/main/csv_stdin_simple/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/disable_timestamp/output.py b/tests/data/expected/main/disable_timestamp/output.py index 2e1337e5b..ff21a3c11 100644 --- a/tests/data/expected/main/disable_timestamp/output.py +++ b/tests/data/expected/main/disable_timestamp/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml from __future__ import annotations diff --git a/tests/data/expected/main/duplicate_field_constraints/common.py b/tests/data/expected/main/duplicate_field_constraints/common.py index 7ddf31c67..c6fe1a409 100644 --- a/tests/data/expected/main/duplicate_field_constraints/common.py +++ b/tests/data/expected/main/duplicate_field_constraints/common.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: common.yml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/duplicate_field_constraints/test.py b/tests/data/expected/main/duplicate_field_constraints/test.py index 284450533..40e1b1962 100644 --- a/tests/data/expected/main/duplicate_field_constraints/test.py +++ b/tests/data/expected/main/duplicate_field_constraints/test.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: test.yml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/duplicate_field_constraints_msgspec/common.py b/tests/data/expected/main/duplicate_field_constraints_msgspec/common.py index 195b32209..d5689840e 100644 --- a/tests/data/expected/main/duplicate_field_constraints_msgspec/common.py +++ b/tests/data/expected/main/duplicate_field_constraints_msgspec/common.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: common.yml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/duplicate_field_constraints_msgspec/test.py b/tests/data/expected/main/duplicate_field_constraints_msgspec/test.py index 08c614335..60df19d03 100644 --- a/tests/data/expected/main/duplicate_field_constraints_msgspec/test.py +++ b/tests/data/expected/main/duplicate_field_constraints_msgspec/test.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: test.yml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/common.py b/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/common.py index 2adad3cc0..316c1425a 100644 --- a/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/common.py +++ b/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/common.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: common.yml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/test.py b/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/test.py index e6d2e84e4..da4e1cad4 100644 --- a/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/test.py +++ b/tests/data/expected/main/duplicate_field_constraints_msgspec_py38_collapse_root_models/test.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: test.yml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/enable_faux_immutability/output.py b/tests/data/expected/main/enable_faux_immutability/output.py index 5f9a9016b..e579b52f7 100644 --- a/tests/data/expected/main/enable_faux_immutability/output.py +++ b/tests/data/expected/main/enable_faux_immutability/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/enable_faux_immutability_pydantic_v2/output.py b/tests/data/expected/main/enable_faux_immutability_pydantic_v2/output.py index 28042c272..e84984579 100644 --- a/tests/data/expected/main/enable_faux_immutability_pydantic_v2/output.py +++ b/tests/data/expected/main/enable_faux_immutability_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/enable_version_header/output.py b/tests/data/expected/main/enable_version_header/output.py index 06a397ff3..212d2c99d 100644 --- a/tests/data/expected/main/enable_version_header/output.py +++ b/tests/data/expected/main/enable_version_header/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 # version: 0.0.0 diff --git a/tests/data/expected/main/external_relative_ref/module.openapi/__init__.py b/tests/data/expected/main/external_relative_ref/module.openapi/__init__.py index f7795e872..f1f1cf2a9 100644 --- a/tests/data/expected/main/external_relative_ref/module.openapi/__init__.py +++ b/tests/data/expected/main/external_relative_ref/module.openapi/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: model_b # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/external_relative_ref/module.openapi/model_a.py b/tests/data/expected/main/external_relative_ref/module.openapi/model_a.py index 4a29df373..136314272 100644 --- a/tests/data/expected/main/external_relative_ref/module.openapi/model_a.py +++ b/tests/data/expected/main/external_relative_ref/module.openapi/model_a.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: module.openapi.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/external_relative_ref/module.openapi/modules/__init__.py b/tests/data/expected/main/external_relative_ref/module.openapi/modules/__init__.py index f7795e872..f1f1cf2a9 100644 --- a/tests/data/expected/main/external_relative_ref/module.openapi/modules/__init__.py +++ b/tests/data/expected/main/external_relative_ref/module.openapi/modules/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: model_b # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/external_relative_ref/module.openapi/modules/quality_evaluation.py b/tests/data/expected/main/external_relative_ref/module.openapi/modules/quality_evaluation.py index c92d13cc3..f105a6fe6 100644 --- a/tests/data/expected/main/external_relative_ref/module.openapi/modules/quality_evaluation.py +++ b/tests/data/expected/main/external_relative_ref/module.openapi/modules/quality_evaluation.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: module.openapi.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/force_optional/output.py b/tests/data/expected/main/force_optional/output.py index 518fa88af..2e2bd197f 100644 --- a/tests/data/expected/main/force_optional/output.py +++ b/tests/data/expected/main/force_optional/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/has_default_value/output.py b/tests/data/expected/main/has_default_value/output.py index 09d08fd6f..86a0e8472 100644 --- a/tests/data/expected/main/has_default_value/output.py +++ b/tests/data/expected/main/has_default_value/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: has_default_value.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main/output.py b/tests/data/expected/main/main/output.py index 6e24ae1de..a8e8f90c3 100644 --- a/tests/data/expected/main/main/output.py +++ b/tests/data/expected/main/main/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_any_of/__init__.py b/tests/data/expected/main/main_all_of_any_of/__init__.py index b9da8476e..08c035ee6 100644 --- a/tests/data/expected/main/main_all_of_any_of/__init__.py +++ b/tests/data/expected/main/main_all_of_any_of/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: all_of_any_of # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_any_of/direct.py b/tests/data/expected/main/main_all_of_any_of/direct.py index 46e796061..fc54bae76 100644 --- a/tests/data/expected/main/main_all_of_any_of/direct.py +++ b/tests/data/expected/main/main_all_of_any_of/direct.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: direct.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_any_of/reference.py b/tests/data/expected/main/main_all_of_any_of/reference.py index 26640ab69..5dc619e16 100644 --- a/tests/data/expected/main/main_all_of_any_of/reference.py +++ b/tests/data/expected/main/main_all_of_any_of/reference.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: reference.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_one_of/__init__.py b/tests/data/expected/main/main_all_of_one_of/__init__.py index b8cadbc16..858e182f6 100644 --- a/tests/data/expected/main/main_all_of_one_of/__init__.py +++ b/tests/data/expected/main/main_all_of_one_of/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: all_of_one_of # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_one_of/direct.py b/tests/data/expected/main/main_all_of_one_of/direct.py index 46e796061..fc54bae76 100644 --- a/tests/data/expected/main/main_all_of_one_of/direct.py +++ b/tests/data/expected/main/main_all_of_one_of/direct.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: direct.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_one_of/reference.py b/tests/data/expected/main/main_all_of_one_of/reference.py index 26640ab69..5dc619e16 100644 --- a/tests/data/expected/main/main_all_of_one_of/reference.py +++ b/tests/data/expected/main/main_all_of_one_of/reference.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: reference.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_ref_self/output.py b/tests/data/expected/main/main_all_of_ref_self/output.py index cd67eb8f5..ab7f54052 100644 --- a/tests/data/expected/main/main_all_of_ref_self/output.py +++ b/tests/data/expected/main/main_all_of_ref_self/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: all_of_ref_self.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_use_default/output.py b/tests/data/expected/main/main_all_of_use_default/output.py index 48fc7829a..9c24aebf5 100644 --- a/tests/data/expected/main/main_all_of_use_default/output.py +++ b/tests/data/expected/main/main_all_of_use_default/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: all_of_default.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_all_of_with_relative_ref/output.py b/tests/data/expected/main/main_all_of_with_relative_ref/output.py index 55f708fd5..8bfb8b48e 100644 --- a/tests/data/expected/main/main_all_of_with_relative_ref/output.py +++ b/tests/data/expected/main/main_all_of_with_relative_ref/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: openapi.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_array_field_constraints/output.py b/tests/data/expected/main/main_array_field_constraints/output.py index 552326260..336c70f57 100644 --- a/tests/data/expected/main/main_array_field_constraints/output.py +++ b/tests/data/expected/main/main_array_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: array_field_constraints.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_autodetect/output.py b/tests/data/expected/main/main_autodetect/output.py index eb9052841..e9424e8e7 100644 --- a/tests/data/expected/main/main_autodetect/output.py +++ b/tests/data/expected/main/main_autodetect/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_base_class/output.py b/tests/data/expected/main/main_base_class/output.py index 485d838d9..77a51c3a6 100644 --- a/tests/data/expected/main/main_base_class/output.py +++ b/tests/data/expected/main/main_base_class/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_circular_reference/output.py b/tests/data/expected/main/main_circular_reference/output.py index b5da105f0..f14d5e4e8 100644 --- a/tests/data/expected/main/main_circular_reference/output.py +++ b/tests/data/expected/main/main_circular_reference/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: circular_reference.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_collapse_root_models/output.py b/tests/data/expected/main/main_collapse_root_models/output.py index 22f872440..98293770f 100644 --- a/tests/data/expected/main/main_collapse_root_models/output.py +++ b/tests/data/expected/main/main_collapse_root_models/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: not_real_string.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_collapse_root_models_field_constraints/output.py b/tests/data/expected/main/main_collapse_root_models_field_constraints/output.py index 88cf88e72..6a4e059bc 100644 --- a/tests/data/expected/main/main_collapse_root_models_field_constraints/output.py +++ b/tests/data/expected/main/main_collapse_root_models_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: not_real_string.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_collapse_root_models_with_references_to_flat_types/output.py b/tests/data/expected/main/main_collapse_root_models_with_references_to_flat_types/output.py index 0e6eff78e..167a2ab0e 100644 --- a/tests/data/expected/main/main_collapse_root_models_with_references_to_flat_types/output.py +++ b/tests/data/expected/main/main_collapse_root_models_with_references_to_flat_types/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: flat_type.jsonschema # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_complicated_enum_default_member/output.py b/tests/data/expected/main/main_complicated_enum_default_member/output.py index 01592be6f..c22d6007b 100644 --- a/tests/data/expected/main/main_complicated_enum_default_member/output.py +++ b/tests/data/expected/main/main_complicated_enum_default_member/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: complicated_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_complicated_enum_default_member_dataclass/output.py b/tests/data/expected/main/main_complicated_enum_default_member_dataclass/output.py index 9ba1ec369..b29cbfd7e 100644 --- a/tests/data/expected/main/main_complicated_enum_default_member_dataclass/output.py +++ b/tests/data/expected/main/main_complicated_enum_default_member_dataclass/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: complicated_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_custom_template_dir/output.py b/tests/data/expected/main/main_custom_template_dir/output.py index 535dd20a3..e67f372ef 100644 --- a/tests/data/expected/main/main_custom_template_dir/output.py +++ b/tests/data/expected/main/main_custom_template_dir/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_dataclass/output.py b/tests/data/expected/main/main_dataclass/output.py index 7b6f968b0..9ea34dc69 100644 --- a/tests/data/expected/main/main_dataclass/output.py +++ b/tests/data/expected/main/main_dataclass/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_dataclass_base_class/output.py b/tests/data/expected/main/main_dataclass_base_class/output.py index 30a1dcb46..6dbb4d270 100644 --- a/tests/data/expected/main/main_dataclass_base_class/output.py +++ b/tests/data/expected/main/main_dataclass_base_class/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_dataclass_field/output.py b/tests/data/expected/main/main_dataclass_field/output.py index 9e3b2b8df..7cbc91153 100644 --- a/tests/data/expected/main/main_dataclass_field/output.py +++ b/tests/data/expected/main/main_dataclass_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: user.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_dataclass_field_default/output.py b/tests/data/expected/main/main_dataclass_field_default/output.py index f14e65c69..5d5a11c31 100644 --- a/tests/data/expected/main/main_dataclass_field_default/output.py +++ b/tests/data/expected/main/main_dataclass_field_default/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: user_default.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_disable_appending_item_suffix/output.py b/tests/data/expected/main/main_disable_appending_item_suffix/output.py index 06355c426..827f4c057 100644 --- a/tests/data/expected/main/main_disable_appending_item_suffix/output.py +++ b/tests/data/expected/main/main_disable_appending_item_suffix/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_external_definitions/output.py b/tests/data/expected/main/main_external_definitions/output.py index cbf7e30e9..1e21b5101 100644 --- a/tests/data/expected/main/main_external_definitions/output.py +++ b/tests/data/expected/main/main_external_definitions/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_definitions_root.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_external_files_in_directory/output.py b/tests/data/expected/main/main_external_files_in_directory/output.py index cf8417804..83507fd32 100644 --- a/tests/data/expected/main/main_external_files_in_directory/output.py +++ b/tests/data/expected/main/main_external_files_in_directory/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_extra_template_data_config/output.py b/tests/data/expected/main/main_extra_template_data_config/output.py index 92ddb93f0..66a4bf3cc 100644 --- a/tests/data/expected/main/main_extra_template_data_config/output.py +++ b/tests/data/expected/main/main_extra_template_data_config/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_extra_template_data_config_pydantic_v2/output.py b/tests/data/expected/main/main_extra_template_data_config_pydantic_v2/output.py index 632e6fe0e..8d39b8207 100644 --- a/tests/data/expected/main/main_extra_template_data_config_pydantic_v2/output.py +++ b/tests/data/expected/main/main_extra_template_data_config_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_generate_non_pydantic_output/output.py b/tests/data/expected/main/main_generate_non_pydantic_output/output.py index 85f240c9c..2173fb8cf 100644 --- a/tests/data/expected/main/main_generate_non_pydantic_output/output.py +++ b/tests/data/expected/main/main_generate_non_pydantic_output/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: simple_string.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_additional_imports/output_isort4.py b/tests/data/expected/main/main_graphql_additional_imports/output_isort4.py index a7f73690e..fee66d8eb 100644 --- a/tests/data/expected/main/main_graphql_additional_imports/output_isort4.py +++ b/tests/data/expected/main/main_graphql_additional_imports/output_isort4.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: additional-imports.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_additional_imports/output_isort5.py b/tests/data/expected/main/main_graphql_additional_imports/output_isort5.py index ee52103c0..54cc52cba 100644 --- a/tests/data/expected/main/main_graphql_additional_imports/output_isort5.py +++ b/tests/data/expected/main/main_graphql_additional_imports/output_isort5.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: additional-imports.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_custom_formatters/output.py b/tests/data/expected/main/main_graphql_custom_formatters/output.py index 10f9c4950..9b159abcd 100644 --- a/tests/data/expected/main/main_graphql_custom_formatters/output.py +++ b/tests/data/expected/main/main_graphql_custom_formatters/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom-scalar-types.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_custom_scalar_types/output.py b/tests/data/expected/main/main_graphql_custom_scalar_types/output.py index 628a95971..804483267 100644 --- a/tests/data/expected/main/main_graphql_custom_scalar_types/output.py +++ b/tests/data/expected/main/main_graphql_custom_scalar_types/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom-scalar-types.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_different_types_of_fields/output.py b/tests/data/expected/main/main_graphql_different_types_of_fields/output.py index dd85384b0..edf8b87fe 100644 --- a/tests/data/expected/main/main_graphql_different_types_of_fields/output.py +++ b/tests/data/expected/main/main_graphql_different_types_of_fields/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: different-types-of-fields.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_enums/output.py b/tests/data/expected/main/main_graphql_enums/output.py index 304741a6f..f608e9970 100644 --- a/tests/data/expected/main/main_graphql_enums/output.py +++ b/tests/data/expected/main/main_graphql_enums/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: enums.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_field_aliases/output.py b/tests/data/expected/main/main_graphql_field_aliases/output.py index fd6c81671..c073f28e4 100644 --- a/tests/data/expected/main/main_graphql_field_aliases/output.py +++ b/tests/data/expected/main/main_graphql_field_aliases/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: field-aliases.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_github_api/output.py b/tests/data/expected/main/main_graphql_github_api/output.py index 98b5cdb46..1cba95433 100644 --- a/tests/data/expected/main/main_graphql_github_api/output.py +++ b/tests/data/expected/main/main_graphql_github_api/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: github-api.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_simple_star_wars/output.py b/tests/data/expected/main/main_graphql_simple_star_wars/output.py index 1bc3d2bde..2703ca6c2 100644 --- a/tests/data/expected/main/main_graphql_simple_star_wars/output.py +++ b/tests/data/expected/main/main_graphql_simple_star_wars/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: simple-star-wars.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_simple_star_wars_dataclass/output.py b/tests/data/expected/main/main_graphql_simple_star_wars_dataclass/output.py index 478bdfd3c..c063b8cb4 100644 --- a/tests/data/expected/main/main_graphql_simple_star_wars_dataclass/output.py +++ b/tests/data/expected/main/main_graphql_simple_star_wars_dataclass/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: simple-star-wars.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_graphql_union/output.py b/tests/data/expected/main/main_graphql_union/output.py index 34a932a05..398d8884d 100644 --- a/tests/data/expected/main/main_graphql_union/output.py +++ b/tests/data/expected/main/main_graphql_union/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: union.graphql # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_inheritance_forward_ref/output.py b/tests/data/expected/main/main_inheritance_forward_ref/output.py index 4fa84a107..3c276698d 100644 --- a/tests/data/expected/main/main_inheritance_forward_ref/output.py +++ b/tests/data/expected/main/main_inheritance_forward_ref/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: inheritance_forward_ref.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_inheritance_forward_ref_keep_model_order/output.py b/tests/data/expected/main/main_inheritance_forward_ref_keep_model_order/output.py index ded1831e2..03db849de 100644 --- a/tests/data/expected/main/main_inheritance_forward_ref_keep_model_order/output.py +++ b/tests/data/expected/main/main_inheritance_forward_ref_keep_model_order/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: inheritance_forward_ref.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_invalid_enum_name/output.py b/tests/data/expected/main/main_invalid_enum_name/output.py index 0174614ea..0a81300a6 100644 --- a/tests/data/expected/main/main_invalid_enum_name/output.py +++ b/tests/data/expected/main/main_invalid_enum_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: invalid_enum_name.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_invalid_enum_name_snake_case_field/output.py b/tests/data/expected/main/main_invalid_enum_name_snake_case_field/output.py index 5e4cc795c..34ac643f2 100644 --- a/tests/data/expected/main/main_invalid_enum_name_snake_case_field/output.py +++ b/tests/data/expected/main/main_invalid_enum_name_snake_case_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: invalid_enum_name.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_invalid_model_name/output.py b/tests/data/expected/main/main_invalid_model_name/output.py index 3e0b56706..733290d7f 100644 --- a/tests/data/expected/main/main_invalid_model_name/output.py +++ b/tests/data/expected/main/main_invalid_model_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: invalid_model_name.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json/output.py b/tests/data/expected/main/main_json/output.py index 036efba47..ac18c70af 100644 --- a/tests/data/expected/main/main_json/output.py +++ b/tests/data/expected/main/main_json/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pet.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_array_include_null/output.py b/tests/data/expected/main/main_json_array_include_null/output.py index 8ae16c871..f627a17ee 100644 --- a/tests/data/expected/main/main_json_array_include_null/output.py +++ b/tests/data/expected/main/main_json_array_include_null/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: array_include_null.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_capitalise_enum_members/output.py b/tests/data/expected/main/main_json_capitalise_enum_members/output.py index 67fb8ffd1..2a8bb52fb 100644 --- a/tests/data/expected/main/main_json_capitalise_enum_members/output.py +++ b/tests/data/expected/main/main_json_capitalise_enum_members/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: many_case_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_pointer/output.py b/tests/data/expected/main/main_json_pointer/output.py index 249b541eb..c036eb4b6 100644 --- a/tests/data/expected/main/main_json_pointer/output.py +++ b/tests/data/expected/main/main_json_pointer/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: json_pointer.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_reuse_enum/output.py b/tests/data/expected/main/main_json_reuse_enum/output.py index 80a1eddeb..d6b796243 100644 --- a/tests/data/expected/main/main_json_reuse_enum/output.py +++ b/tests/data/expected/main/main_json_reuse_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: duplicate_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_reuse_enum_default_member/output.py b/tests/data/expected/main/main_json_reuse_enum_default_member/output.py index 99b774829..f5695c084 100644 --- a/tests/data/expected/main/main_json_reuse_enum_default_member/output.py +++ b/tests/data/expected/main/main_json_reuse_enum_default_member/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: duplicate_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_reuse_model/output.py b/tests/data/expected/main/main_json_reuse_model/output.py index dd2aa0024..5c5f80e29 100644 --- a/tests/data/expected/main/main_json_reuse_model/output.py +++ b/tests/data/expected/main/main_json_reuse_model/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: duplicate_models.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_json_snake_case_field/output.py b/tests/data/expected/main/main_json_snake_case_field/output.py index 320ced520..d18a88c02 100644 --- a/tests/data/expected/main/main_json_snake_case_field/output.py +++ b/tests/data/expected/main/main_json_snake_case_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: snake_case.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema/output.py b/tests/data/expected/main/main_jsonschema/output.py index eb9052841..e9424e8e7 100644 --- a/tests/data/expected/main/main_jsonschema/output.py +++ b/tests/data/expected/main/main_jsonschema/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_array_in_additional_properties/output.py b/tests/data/expected/main/main_jsonschema_array_in_additional_properties/output.py index 45accf565..2a8bd988f 100644 --- a/tests/data/expected/main/main_jsonschema_array_in_additional_properties/output.py +++ b/tests/data/expected/main/main_jsonschema_array_in_additional_properties/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: array_in_additional_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_boolean_property/output.py b/tests/data/expected/main/main_jsonschema_boolean_property/output.py index 4168834c7..8a49600b3 100644 --- a/tests/data/expected/main/main_jsonschema_boolean_property/output.py +++ b/tests/data/expected/main/main_jsonschema_boolean_property/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: boolean_property.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_combine_any_of_object/output.py b/tests/data/expected/main/main_jsonschema_combine_any_of_object/output.py index 6cb76d3d5..8819f5742 100644 --- a/tests/data/expected/main/main_jsonschema_combine_any_of_object/output.py +++ b/tests/data/expected/main/main_jsonschema_combine_any_of_object/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: combine_any_of_object.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_combine_one_of_object/output.py b/tests/data/expected/main/main_jsonschema_combine_one_of_object/output.py index 432f19dc4..3882945ec 100644 --- a/tests/data/expected/main/main_jsonschema_combine_one_of_object/output.py +++ b/tests/data/expected/main/main_jsonschema_combine_one_of_object/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: combine_one_of_object.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_complex_any_of/output.py b/tests/data/expected/main/main_jsonschema_complex_any_of/output.py index 740f82b42..338e140e5 100644 --- a/tests/data/expected/main/main_jsonschema_complex_any_of/output.py +++ b/tests/data/expected/main/main_jsonschema_complex_any_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: complex_any_of.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_complex_one_of/output.py b/tests/data/expected/main/main_jsonschema_complex_one_of/output.py index a74893dff..64a275a12 100644 --- a/tests/data/expected/main/main_jsonschema_complex_one_of/output.py +++ b/tests/data/expected/main/main_jsonschema_complex_one_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: complex_one_of.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_custom_base_path/output.py b/tests/data/expected/main/main_jsonschema_custom_base_path/output.py index fadb0c27a..5c33ff7d2 100644 --- a/tests/data/expected/main/main_jsonschema_custom_base_path/output.py +++ b/tests/data/expected/main/main_jsonschema_custom_base_path/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom_base_path.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_custom_type_path/output.py b/tests/data/expected/main/main_jsonschema_custom_type_path/output.py index ddead7c6c..8b8894b26 100644 --- a/tests/data/expected/main/main_jsonschema_custom_type_path/output.py +++ b/tests/data/expected/main/main_jsonschema_custom_type_path/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom_type_path.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_custom_type_path_pydantic_v2/output.py b/tests/data/expected/main/main_jsonschema_custom_type_path_pydantic_v2/output.py index 8e1cecd9c..65dc589dd 100644 --- a/tests/data/expected/main/main_jsonschema_custom_type_path_pydantic_v2/output.py +++ b/tests/data/expected/main/main_jsonschema_custom_type_path_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom_type_path.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_discriminator_literals/output.py b/tests/data/expected/main/main_jsonschema_discriminator_literals/output.py index 51d18b9f2..c999a4470 100644 --- a/tests/data/expected/main/main_jsonschema_discriminator_literals/output.py +++ b/tests/data/expected/main/main_jsonschema_discriminator_literals/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: discriminator_literals.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_duplicate_name/__init__.py b/tests/data/expected/main/main_jsonschema_duplicate_name/__init__.py index ca00aa71c..376bd2194 100644 --- a/tests/data/expected/main/main_jsonschema_duplicate_name/__init__.py +++ b/tests/data/expected/main/main_jsonschema_duplicate_name/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: duplicate_name # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_duplicate_name/bar.py b/tests/data/expected/main/main_jsonschema_duplicate_name/bar.py index f5e5a80ae..4ee83f360 100644 --- a/tests/data/expected/main/main_jsonschema_duplicate_name/bar.py +++ b/tests/data/expected/main/main_jsonschema_duplicate_name/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: bar.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_duplicate_name/foo.py b/tests/data/expected/main/main_jsonschema_duplicate_name/foo.py index 39010d81e..0f2b09683 100644 --- a/tests/data/expected/main/main_jsonschema_duplicate_name/foo.py +++ b/tests/data/expected/main/main_jsonschema_duplicate_name/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: foo.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_external_files/output.py b/tests/data/expected/main/main_jsonschema_external_files/output.py index e80735774..3bc1f52c1 100644 --- a/tests/data/expected/main/main_jsonschema_external_files/output.py +++ b/tests/data/expected/main/main_jsonschema_external_files/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_parent_root.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_field_extras/output.py b/tests/data/expected/main/main_jsonschema_field_extras/output.py index c0a6f0428..2148f1824 100644 --- a/tests/data/expected/main/main_jsonschema_field_extras/output.py +++ b/tests/data/expected/main/main_jsonschema_field_extras/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: extras.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys/output.py b/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys/output.py index 4dd237599..a7f128903 100644 --- a/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys/output.py +++ b/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: extras.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys_v2/output.py b/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys_v2/output.py index 02c8fe3a1..e67bb3dbe 100644 --- a/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys_v2/output.py +++ b/tests/data/expected/main/main_jsonschema_field_extras_field_extra_keys_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: extras.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys/output.py b/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys/output.py index 3698db6d9..61e4abf65 100644 --- a/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys/output.py +++ b/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: extras.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys_v2/output.py b/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys_v2/output.py index 8d59f55b5..8399721dc 100644 --- a/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys_v2/output.py +++ b/tests/data/expected/main/main_jsonschema_field_extras_field_include_all_keys_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: extras.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_field_extras_v2/output.py b/tests/data/expected/main/main_jsonschema_field_extras_v2/output.py index 1397da437..7e16380f9 100644 --- a/tests/data/expected/main/main_jsonschema_field_extras_v2/output.py +++ b/tests/data/expected/main/main_jsonschema_field_extras_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: extras.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_id/output.py b/tests/data/expected/main/main_jsonschema_id/output.py index 4ca725efc..d5a5600cf 100644 --- a/tests/data/expected/main/main_jsonschema_id/output.py +++ b/tests/data/expected/main/main_jsonschema_id/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: id.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_id_stdin/output.py b/tests/data/expected/main/main_jsonschema_id_stdin/output.py index 4691d3bfe..26fb5ea23 100644 --- a/tests/data/expected/main/main_jsonschema_id_stdin/output.py +++ b/tests/data/expected/main/main_jsonschema_id_stdin/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/ContactPoint.py b/tests/data/expected/main/main_jsonschema_ids/ContactPoint.py index ac35f1260..b67801ed6 100644 --- a/tests/data/expected/main/main_jsonschema_ids/ContactPoint.py +++ b/tests/data/expected/main/main_jsonschema_ids/ContactPoint.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/URI.py b/tests/data/expected/main/main_jsonschema_ids/URI.py index daa75364f..6a103c6ad 100644 --- a/tests/data/expected/main/main_jsonschema_ids/URI.py +++ b/tests/data/expected/main/main_jsonschema_ids/URI.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/__init__.py b/tests/data/expected/main/main_jsonschema_ids/__init__.py index 593314308..ca4e2561a 100644 --- a/tests/data/expected/main/main_jsonschema_ids/__init__.py +++ b/tests/data/expected/main/main_jsonschema_ids/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/id.py b/tests/data/expected/main/main_jsonschema_ids/id.py index f982c30c7..a43f38c80 100644 --- a/tests/data/expected/main/main_jsonschema_ids/id.py +++ b/tests/data/expected/main/main_jsonschema_ids/id.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/name.py b/tests/data/expected/main/main_jsonschema_ids/name.py index 5e11548d3..1cb505f6f 100644 --- a/tests/data/expected/main/main_jsonschema_ids/name.py +++ b/tests/data/expected/main/main_jsonschema_ids/name.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/sameAs.py b/tests/data/expected/main/main_jsonschema_ids/sameAs.py index d78fda3f1..3a146f809 100644 --- a/tests/data/expected/main/main_jsonschema_ids/sameAs.py +++ b/tests/data/expected/main/main_jsonschema_ids/sameAs.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_ids/type.py b/tests/data/expected/main/main_jsonschema_ids/type.py index ace940f0f..7daacbbb6 100644 --- a/tests/data/expected/main/main_jsonschema_ids/type.py +++ b/tests/data/expected/main/main_jsonschema_ids/type.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_items_boolean/output.py b/tests/data/expected/main/main_jsonschema_items_boolean/output.py index abc935fce..202812662 100644 --- a/tests/data/expected/main/main_jsonschema_items_boolean/output.py +++ b/tests/data/expected/main/main_jsonschema_items_boolean/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: items_boolean.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_json_pointer_array/output.py b/tests/data/expected/main/main_jsonschema_json_pointer_array/output.py index eb19911eb..37f2c9d2d 100644 --- a/tests/data/expected/main/main_jsonschema_json_pointer_array/output.py +++ b/tests/data/expected/main/main_jsonschema_json_pointer_array/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: json_pointer_array.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_modular_default_enum_member/__init__.py b/tests/data/expected/main/main_jsonschema_modular_default_enum_member/__init__.py index 4959df774..99a55f013 100644 --- a/tests/data/expected/main/main_jsonschema_modular_default_enum_member/__init__.py +++ b/tests/data/expected/main/main_jsonschema_modular_default_enum_member/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular_default_enum_member # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_modular_default_enum_member/bar.py b/tests/data/expected/main/main_jsonschema_modular_default_enum_member/bar.py index aff57ffbd..0b9a5b6eb 100644 --- a/tests/data/expected/main/main_jsonschema_modular_default_enum_member/bar.py +++ b/tests/data/expected/main/main_jsonschema_modular_default_enum_member/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: bar.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_modular_default_enum_member/foo.py b/tests/data/expected/main/main_jsonschema_modular_default_enum_member/foo.py index 09921e7a5..a31b667e9 100644 --- a/tests/data/expected/main/main_jsonschema_modular_default_enum_member/foo.py +++ b/tests/data/expected/main/main_jsonschema_modular_default_enum_member/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: foo.json # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_deep/__init__.py b/tests/data/expected/main/main_jsonschema_nested_deep/__init__.py index eabe64c56..243890f1c 100644 --- a/tests/data/expected/main/main_jsonschema_nested_deep/__init__.py +++ b/tests/data/expected/main/main_jsonschema_nested_deep/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_deep/empty_parent/nested/deep.py b/tests/data/expected/main/main_jsonschema_nested_deep/empty_parent/nested/deep.py index 3ec19a4cb..ec225eec5 100644 --- a/tests/data/expected/main/main_jsonschema_nested_deep/empty_parent/nested/deep.py +++ b/tests/data/expected/main/main_jsonschema_nested_deep/empty_parent/nested/deep.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_deep/nested/deep.py b/tests/data/expected/main/main_jsonschema_nested_deep/nested/deep.py index 7d3c9d081..8e5cdc06f 100644 --- a/tests/data/expected/main/main_jsonschema_nested_deep/nested/deep.py +++ b/tests/data/expected/main/main_jsonschema_nested_deep/nested/deep.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_skip/__init__.py b/tests/data/expected/main/main_jsonschema_nested_skip/__init__.py index fe0dc8bc4..875c7afdd 100644 --- a/tests/data/expected/main/main_jsonschema_nested_skip/__init__.py +++ b/tests/data/expected/main/main_jsonschema_nested_skip/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_skip.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_skip/a/__init__.py b/tests/data/expected/main/main_jsonschema_nested_skip/a/__init__.py index 7030f9ba5..e7da33be5 100644 --- a/tests/data/expected/main/main_jsonschema_nested_skip/a/__init__.py +++ b/tests/data/expected/main/main_jsonschema_nested_skip/a/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_skip.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_skip/a/b/__init__.py b/tests/data/expected/main/main_jsonschema_nested_skip/a/b/__init__.py index 7030f9ba5..e7da33be5 100644 --- a/tests/data/expected/main/main_jsonschema_nested_skip/a/b/__init__.py +++ b/tests/data/expected/main/main_jsonschema_nested_skip/a/b/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_skip.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/__init__.py b/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/__init__.py index 7030f9ba5..e7da33be5 100644 --- a/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/__init__.py +++ b/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_skip.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/d.py b/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/d.py index 69265784a..643260fed 100644 --- a/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/d.py +++ b/tests/data/expected/main/main_jsonschema_nested_skip/a/b/c/d.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_skip.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_nullable_object/output.py b/tests/data/expected/main/main_jsonschema_nullable_object/output.py index e6833e1a2..4adfea600 100644 --- a/tests/data/expected/main/main_jsonschema_nullable_object/output.py +++ b/tests/data/expected/main/main_jsonschema_nullable_object/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable_object.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_object_has_one_of/output.py b/tests/data/expected/main/main_jsonschema_object_has_one_of/output.py index 6c58a941f..d5bb8b47a 100644 --- a/tests/data/expected/main/main_jsonschema_object_has_one_of/output.py +++ b/tests/data/expected/main/main_jsonschema_object_has_one_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: object_has_one_of.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_pattern_properties_by_reference/output.py b/tests/data/expected/main/main_jsonschema_pattern_properties_by_reference/output.py index c2c0d5780..a6f780857 100644 --- a/tests/data/expected/main/main_jsonschema_pattern_properties_by_reference/output.py +++ b/tests/data/expected/main/main_jsonschema_pattern_properties_by_reference/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pattern_properties_by_reference.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_reference_same_hierarchy_directory/output.py b/tests/data/expected/main/main_jsonschema_reference_same_hierarchy_directory/output.py index ba80ec971..b94feacd3 100644 --- a/tests/data/expected/main/main_jsonschema_reference_same_hierarchy_directory/output.py +++ b/tests/data/expected/main/main_jsonschema_reference_same_hierarchy_directory/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: entities.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_removed_parent_class/output.py b/tests/data/expected/main/main_jsonschema_removed_parent_class/output.py index 036efba47..ac18c70af 100644 --- a/tests/data/expected/main/main_jsonschema_removed_parent_class/output.py +++ b/tests/data/expected/main/main_jsonschema_removed_parent_class/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pet.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_root_in_enum/output.py b/tests/data/expected/main/main_jsonschema_root_in_enum/output.py index 15fe963df..b7d7fa207 100644 --- a/tests/data/expected/main/main_jsonschema_root_in_enum/output.py +++ b/tests/data/expected/main/main_jsonschema_root_in_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: enum_in_root.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_special_enum/output.py b/tests/data/expected/main/main_jsonschema_special_enum/output.py index 6a653c0e2..7b5845d16 100644 --- a/tests/data/expected/main/main_jsonschema_special_enum/output.py +++ b/tests/data/expected/main/main_jsonschema_special_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_special_enum_empty_enum_field_name/output.py b/tests/data/expected/main/main_jsonschema_special_enum_empty_enum_field_name/output.py index d420f8ef8..e58c1e8c1 100644 --- a/tests/data/expected/main/main_jsonschema_special_enum_empty_enum_field_name/output.py +++ b/tests/data/expected/main/main_jsonschema_special_enum_empty_enum_field_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix/output.py b/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix/output.py index e18c2ed4f..1580fcf96 100644 --- a/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix/output.py +++ b/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix_keep_private/output.py b/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix_keep_private/output.py index 8c5e9dd4e..3025221eb 100644 --- a/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix_keep_private/output.py +++ b/tests/data/expected/main/main_jsonschema_special_enum_special_field_name_prefix_keep_private/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_special_field_name/output.py b/tests/data/expected/main/main_jsonschema_special_field_name/output.py index 67272248b..28340d433 100644 --- a/tests/data/expected/main/main_jsonschema_special_field_name/output.py +++ b/tests/data/expected/main/main_jsonschema_special_field_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_field_name.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_special_model_remove_special_field_name_prefix/output.py b/tests/data/expected/main/main_jsonschema_special_model_remove_special_field_name_prefix/output.py index 7589166e6..86426fa46 100644 --- a/tests/data/expected/main/main_jsonschema_special_model_remove_special_field_name_prefix/output.py +++ b/tests/data/expected/main/main_jsonschema_special_model_remove_special_field_name_prefix/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_prefix_model.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_subclass_enum/output.py b/tests/data/expected/main/main_jsonschema_subclass_enum/output.py index b056f234b..88448e71b 100644 --- a/tests/data/expected/main/main_jsonschema_subclass_enum/output.py +++ b/tests/data/expected/main/main_jsonschema_subclass_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: subclass_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_titles/output.py b/tests/data/expected/main/main_jsonschema_titles/output.py index 327adb46d..c627d71c6 100644 --- a/tests/data/expected/main/main_jsonschema_titles/output.py +++ b/tests/data/expected/main/main_jsonschema_titles/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: titles.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_titles_use_title_as_name/output.py b/tests/data/expected/main/main_jsonschema_titles_use_title_as_name/output.py index 0d4e322aa..f68625da2 100644 --- a/tests/data/expected/main/main_jsonschema_titles_use_title_as_name/output.py +++ b/tests/data/expected/main/main_jsonschema_titles_use_title_as_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: titles.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_jsonschema_without_titles_use_title_as_name/output.py b/tests/data/expected/main/main_jsonschema_without_titles_use_title_as_name/output.py index 26bdc57e0..bc94d6fa8 100644 --- a/tests/data/expected/main/main_jsonschema_without_titles_use_title_as_name/output.py +++ b/tests/data/expected/main/main_jsonschema_without_titles_use_title_as_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: without_titles.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_long_description/output.py b/tests/data/expected/main/main_long_description/output.py index 6aa68a5c1..89c2b83b1 100644 --- a/tests/data/expected/main/main_long_description/output.py +++ b/tests/data/expected/main/main_long_description/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: long_description.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_long_description_wrap_string_literal/output.py b/tests/data/expected/main/main_long_description_wrap_string_literal/output.py index c516c76e0..a0dd5ae45 100644 --- a/tests/data/expected/main/main_long_description_wrap_string_literal/output.py +++ b/tests/data/expected/main/main_long_description_wrap_string_literal/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: long_description.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_modular/__init__.py b/tests/data/expected/main/main_modular/__init__.py index 3367e9aa6..d8453bc7a 100644 --- a/tests/data/expected/main/main_modular/__init__.py +++ b/tests/data/expected/main/main_modular/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/bar.py b/tests/data/expected/main/main_modular/bar.py index ac7884a37..cd57878ae 100644 --- a/tests/data/expected/main/main_modular/bar.py +++ b/tests/data/expected/main/main_modular/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/collections.py b/tests/data/expected/main/main_modular/collections.py index e543cec54..7a3c5cdb0 100644 --- a/tests/data/expected/main/main_modular/collections.py +++ b/tests/data/expected/main/main_modular/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/foo/__init__.py b/tests/data/expected/main/main_modular/foo/__init__.py index 1f232885e..8b2440dd6 100644 --- a/tests/data/expected/main/main_modular/foo/__init__.py +++ b/tests/data/expected/main/main_modular/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/foo/bar.py b/tests/data/expected/main/main_modular/foo/bar.py index 9e9572a82..4177f3f7a 100644 --- a/tests/data/expected/main/main_modular/foo/bar.py +++ b/tests/data/expected/main/main_modular/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/models.py b/tests/data/expected/main/main_modular/models.py index 40d4b7546..9568e0a7d 100644 --- a/tests/data/expected/main/main_modular/models.py +++ b/tests/data/expected/main/main_modular/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/nested/__init__.py b/tests/data/expected/main/main_modular/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular/nested/__init__.py +++ b/tests/data/expected/main/main_modular/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/nested/foo.py b/tests/data/expected/main/main_modular/nested/foo.py index cc8772a12..fe155bc32 100644 --- a/tests/data/expected/main/main_modular/nested/foo.py +++ b/tests/data/expected/main/main_modular/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/woo/__init__.py b/tests/data/expected/main/main_modular/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular/woo/__init__.py +++ b/tests/data/expected/main/main_modular/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular/woo/boo.py b/tests/data/expected/main/main_modular/woo/boo.py index a12a474e2..4cfd2b0f7 100644 --- a/tests/data/expected/main/main_modular/woo/boo.py +++ b/tests/data/expected/main/main_modular/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/__init__.py b/tests/data/expected/main/main_modular_custom_class_name/__init__.py index afe8f4936..04c91eb5a 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/__init__.py +++ b/tests/data/expected/main/main_modular_custom_class_name/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/bar.py b/tests/data/expected/main/main_modular_custom_class_name/bar.py index 3f3a41575..7507ce45d 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/bar.py +++ b/tests/data/expected/main/main_modular_custom_class_name/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/collections.py b/tests/data/expected/main/main_modular_custom_class_name/collections.py index cc3f0a0f2..e75c5c035 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/collections.py +++ b/tests/data/expected/main/main_modular_custom_class_name/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/foo/__init__.py b/tests/data/expected/main/main_modular_custom_class_name/foo/__init__.py index a77269b2e..8e4c62d15 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/foo/__init__.py +++ b/tests/data/expected/main/main_modular_custom_class_name/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/foo/bar.py b/tests/data/expected/main/main_modular_custom_class_name/foo/bar.py index 765789d37..7031d35e7 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/foo/bar.py +++ b/tests/data/expected/main/main_modular_custom_class_name/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/models.py b/tests/data/expected/main/main_modular_custom_class_name/models.py index 606597768..06c0a3611 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/models.py +++ b/tests/data/expected/main/main_modular_custom_class_name/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/nested/__init__.py b/tests/data/expected/main/main_modular_custom_class_name/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/nested/__init__.py +++ b/tests/data/expected/main/main_modular_custom_class_name/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/nested/foo.py b/tests/data/expected/main/main_modular_custom_class_name/nested/foo.py index 6f2405588..b22c4f879 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/nested/foo.py +++ b/tests/data/expected/main/main_modular_custom_class_name/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/woo/__init__.py b/tests/data/expected/main/main_modular_custom_class_name/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/woo/__init__.py +++ b/tests/data/expected/main/main_modular_custom_class_name/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_custom_class_name/woo/boo.py b/tests/data/expected/main/main_modular_custom_class_name/woo/boo.py index 44cfc855c..30b8f352e 100644 --- a/tests/data/expected/main/main_modular_custom_class_name/woo/boo.py +++ b/tests/data/expected/main/main_modular_custom_class_name/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/__init__.py b/tests/data/expected/main/main_modular_reuse_model/__init__.py index d34f55421..a0675d9de 100644 --- a/tests/data/expected/main/main_modular_reuse_model/__init__.py +++ b/tests/data/expected/main/main_modular_reuse_model/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/bar.py b/tests/data/expected/main/main_modular_reuse_model/bar.py index ac7884a37..cd57878ae 100644 --- a/tests/data/expected/main/main_modular_reuse_model/bar.py +++ b/tests/data/expected/main/main_modular_reuse_model/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/collections.py b/tests/data/expected/main/main_modular_reuse_model/collections.py index e543cec54..7a3c5cdb0 100644 --- a/tests/data/expected/main/main_modular_reuse_model/collections.py +++ b/tests/data/expected/main/main_modular_reuse_model/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/foo/__init__.py b/tests/data/expected/main/main_modular_reuse_model/foo/__init__.py index 1f232885e..8b2440dd6 100644 --- a/tests/data/expected/main/main_modular_reuse_model/foo/__init__.py +++ b/tests/data/expected/main/main_modular_reuse_model/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/foo/bar.py b/tests/data/expected/main/main_modular_reuse_model/foo/bar.py index 9e9572a82..4177f3f7a 100644 --- a/tests/data/expected/main/main_modular_reuse_model/foo/bar.py +++ b/tests/data/expected/main/main_modular_reuse_model/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/models.py b/tests/data/expected/main/main_modular_reuse_model/models.py index 40d4b7546..9568e0a7d 100644 --- a/tests/data/expected/main/main_modular_reuse_model/models.py +++ b/tests/data/expected/main/main_modular_reuse_model/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/nested/__init__.py b/tests/data/expected/main/main_modular_reuse_model/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular_reuse_model/nested/__init__.py +++ b/tests/data/expected/main/main_modular_reuse_model/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/nested/foo.py b/tests/data/expected/main/main_modular_reuse_model/nested/foo.py index c495456a9..ca84bef17 100644 --- a/tests/data/expected/main/main_modular_reuse_model/nested/foo.py +++ b/tests/data/expected/main/main_modular_reuse_model/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/woo/__init__.py b/tests/data/expected/main/main_modular_reuse_model/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular_reuse_model/woo/__init__.py +++ b/tests/data/expected/main/main_modular_reuse_model/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_reuse_model/woo/boo.py b/tests/data/expected/main/main_modular_reuse_model/woo/boo.py index a12a474e2..4cfd2b0f7 100644 --- a/tests/data/expected/main/main_modular_reuse_model/woo/boo.py +++ b/tests/data/expected/main/main_modular_reuse_model/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/__init__.py b/tests/data/expected/main/main_modular_typed_dict/__init__.py index ac46116d8..bef2e2d8a 100644 --- a/tests/data/expected/main/main_modular_typed_dict/__init__.py +++ b/tests/data/expected/main/main_modular_typed_dict/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/bar.py b/tests/data/expected/main/main_modular_typed_dict/bar.py index 26361d5a5..1ae968794 100644 --- a/tests/data/expected/main/main_modular_typed_dict/bar.py +++ b/tests/data/expected/main/main_modular_typed_dict/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/collections.py b/tests/data/expected/main/main_modular_typed_dict/collections.py index b40f876ad..b2f997bbb 100644 --- a/tests/data/expected/main/main_modular_typed_dict/collections.py +++ b/tests/data/expected/main/main_modular_typed_dict/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/foo/__init__.py b/tests/data/expected/main/main_modular_typed_dict/foo/__init__.py index 81838c4cb..6228dc878 100644 --- a/tests/data/expected/main/main_modular_typed_dict/foo/__init__.py +++ b/tests/data/expected/main/main_modular_typed_dict/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/foo/bar.py b/tests/data/expected/main/main_modular_typed_dict/foo/bar.py index 9b78c548b..02016bbc5 100644 --- a/tests/data/expected/main/main_modular_typed_dict/foo/bar.py +++ b/tests/data/expected/main/main_modular_typed_dict/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/models.py b/tests/data/expected/main/main_modular_typed_dict/models.py index cbf96a360..aef58876c 100644 --- a/tests/data/expected/main/main_modular_typed_dict/models.py +++ b/tests/data/expected/main/main_modular_typed_dict/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/nested/__init__.py b/tests/data/expected/main/main_modular_typed_dict/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular_typed_dict/nested/__init__.py +++ b/tests/data/expected/main/main_modular_typed_dict/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/nested/foo.py b/tests/data/expected/main/main_modular_typed_dict/nested/foo.py index 54debe8ad..3a08a25ca 100644 --- a/tests/data/expected/main/main_modular_typed_dict/nested/foo.py +++ b/tests/data/expected/main/main_modular_typed_dict/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/woo/__init__.py b/tests/data/expected/main/main_modular_typed_dict/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_modular_typed_dict/woo/__init__.py +++ b/tests/data/expected/main/main_modular_typed_dict/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_modular_typed_dict/woo/boo.py b/tests/data/expected/main/main_modular_typed_dict/woo/boo.py index 7ab13ee36..c4cc92cb4 100644 --- a/tests/data/expected/main/main_modular_typed_dict/woo/boo.py +++ b/tests/data/expected/main/main_modular_typed_dict/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_msgspec_struct/output.py b/tests/data/expected/main/main_msgspec_struct/output.py index 8bcb8dcfd..21c93f817 100644 --- a/tests/data/expected/main/main_msgspec_struct/output.py +++ b/tests/data/expected/main/main_msgspec_struct/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_multiple_required_any_of/output.py b/tests/data/expected/main/main_multiple_required_any_of/output.py index 55d1fb429..4190d67ee 100644 --- a/tests/data/expected/main/main_multiple_required_any_of/output.py +++ b/tests/data/expected/main/main_multiple_required_any_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: multiple_required_any_of.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_all_of/output.py b/tests/data/expected/main/main_nested_all_of/output.py index ea32a0f2c..e04def59a 100644 --- a/tests/data/expected/main/main_nested_all_of/output.py +++ b/tests/data/expected/main/main_nested_all_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_all_of.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/__init__.py b/tests/data/expected/main/main_nested_directory/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_nested_directory/__init__.py +++ b/tests/data/expected/main/main_nested_directory/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/__init__.py b/tests/data/expected/main/main_nested_directory/definitions/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/__init__.py +++ b/tests/data/expected/main/main_nested_directory/definitions/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/drink/__init__.py b/tests/data/expected/main/main_nested_directory/definitions/drink/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/drink/__init__.py +++ b/tests/data/expected/main/main_nested_directory/definitions/drink/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py b/tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py index deed3ce45..91132322c 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py +++ b/tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/drink/coffee.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/drink/tea.py b/tests/data/expected/main/main_nested_directory/definitions/drink/tea.py index a7d5f30a1..ab6655739 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/drink/tea.py +++ b/tests/data/expected/main/main_nested_directory/definitions/drink/tea.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/drink/tea.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/food.py b/tests/data/expected/main/main_nested_directory/definitions/food.py index 524aeac48..0ed006956 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/food.py +++ b/tests/data/expected/main/main_nested_directory/definitions/food.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/food.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/friends.py b/tests/data/expected/main/main_nested_directory/definitions/friends.py index 74cff7198..804552e2a 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/friends.py +++ b/tests/data/expected/main/main_nested_directory/definitions/friends.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/friends.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/fur.py b/tests/data/expected/main/main_nested_directory/definitions/fur.py index 0adb6df9f..439f9a8cf 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/fur.py +++ b/tests/data/expected/main/main_nested_directory/definitions/fur.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/fur.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/machine/__init__.py b/tests/data/expected/main/main_nested_directory/definitions/machine/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/machine/__init__.py +++ b/tests/data/expected/main/main_nested_directory/definitions/machine/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/machine/robot.py b/tests/data/expected/main/main_nested_directory/definitions/machine/robot.py index 8298da5fe..88c0fd29b 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/machine/robot.py +++ b/tests/data/expected/main/main_nested_directory/definitions/machine/robot.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/machine/robot.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/definitions/pet.py b/tests/data/expected/main/main_nested_directory/definitions/pet.py index c54b8925d..7381f4c54 100644 --- a/tests/data/expected/main/main_nested_directory/definitions/pet.py +++ b/tests/data/expected/main/main_nested_directory/definitions/pet.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/pet.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_directory/person.py b/tests/data/expected/main/main_nested_directory/person.py index ac0e72053..5cecd2590 100644 --- a/tests/data/expected/main/main_nested_directory/person.py +++ b/tests/data/expected/main/main_nested_directory/person.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_enum/output.py b/tests/data/expected/main/main_nested_enum/output.py index 3073813fa..d6a94e503 100644 --- a/tests/data/expected/main/main_nested_enum/output.py +++ b/tests/data/expected/main/main_nested_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nested_json_pointer/output.py b/tests/data/expected/main/main_nested_json_pointer/output.py index 4d3bc8d5f..24c7b0033 100644 --- a/tests/data/expected/main/main_nested_json_pointer/output.py +++ b/tests/data/expected/main/main_nested_json_pointer/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nested_json_pointer.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_no_file/output.py b/tests/data/expected/main/main_no_file/output.py index e1dfde123..71d17a3fc 100644 --- a/tests/data/expected/main/main_no_file/output.py +++ b/tests/data/expected/main/main_no_file/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_null/output.py b/tests/data/expected/main/main_null/output.py index ee3cd2fc1..f3262c862 100644 --- a/tests/data/expected/main/main_null/output.py +++ b/tests/data/expected/main/main_null/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: null.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_null_and_array/output.py b/tests/data/expected/main/main_null_and_array/output.py index 47abf9240..2e39185cb 100644 --- a/tests/data/expected/main/main_null_and_array/output.py +++ b/tests/data/expected/main/main_null_and_array/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: null_and_array.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_null_and_array_v2/output.py b/tests/data/expected/main/main_null_and_array_v2/output.py index 4e482e6ef..8f24bd5d5 100644 --- a/tests/data/expected/main/main_null_and_array_v2/output.py +++ b/tests/data/expected/main/main_null_and_array_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: null_and_array.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nullable_any_of/output.py b/tests/data/expected/main/main_nullable_any_of/output.py index 5779ed3a0..862b4bb2c 100644 --- a/tests/data/expected/main/main_nullable_any_of/output.py +++ b/tests/data/expected/main/main_nullable_any_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable_any_of.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_nullable_any_of_use_union_operator/output.py b/tests/data/expected/main/main_nullable_any_of_use_union_operator/output.py index bf24c5a1a..275a86904 100644 --- a/tests/data/expected/main/main_nullable_any_of_use_union_operator/output.py +++ b/tests/data/expected/main/main_nullable_any_of_use_union_operator/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable_any_of.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_allof_required/output.py b/tests/data/expected/main/main_openapi_allof_required/output.py index 17ee2100a..e4568db00 100644 --- a/tests/data/expected/main/main_openapi_allof_required/output.py +++ b/tests/data/expected/main/main_openapi_allof_required/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: allof_required.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_body_and_parameters/output.py b/tests/data/expected/main/main_openapi_body_and_parameters/output.py index 2af7cd5f9..780dab10b 100644 --- a/tests/data/expected/main/main_openapi_body_and_parameters/output.py +++ b/tests/data/expected/main/main_openapi_body_and_parameters/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: body_and_parameters.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_body_and_parameters_only_paths/output.py b/tests/data/expected/main/main_openapi_body_and_parameters_only_paths/output.py index ccb241756..a934397d4 100644 --- a/tests/data/expected/main/main_openapi_body_and_parameters_only_paths/output.py +++ b/tests/data/expected/main/main_openapi_body_and_parameters_only_paths/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: body_and_parameters.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_body_and_parameters_only_schemas/output.py b/tests/data/expected/main/main_openapi_body_and_parameters_only_schemas/output.py index ae3a4eb58..5cd3f999a 100644 --- a/tests/data/expected/main/main_openapi_body_and_parameters_only_schemas/output.py +++ b/tests/data/expected/main/main_openapi_body_and_parameters_only_schemas/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: body_and_parameters.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_body_and_parameters_remote_ref/output.py b/tests/data/expected/main/main_openapi_body_and_parameters_remote_ref/output.py index d2a1492f9..8f1d16eef 100644 --- a/tests/data/expected/main/main_openapi_body_and_parameters_remote_ref/output.py +++ b/tests/data/expected/main/main_openapi_body_and_parameters_remote_ref/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: body_and_parameters_remote_ref.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_complex_reference/output.py b/tests/data/expected/main/main_openapi_complex_reference/output.py index c5301eaa8..972cd124c 100644 --- a/tests/data/expected/main/main_openapi_complex_reference/output.py +++ b/tests/data/expected/main/main_openapi_complex_reference/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: complex_reference.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_const/output.py b/tests/data/expected/main/main_openapi_const/output.py index f37a71d90..805d09531 100644 --- a/tests/data/expected/main/main_openapi_const/output.py +++ b/tests/data/expected/main/main_openapi_const/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: const.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_const_field/output.py b/tests/data/expected/main/main_openapi_const_field/output.py index c54717cef..a7590a284 100644 --- a/tests/data/expected/main/main_openapi_const_field/output.py +++ b/tests/data/expected/main/main_openapi_const_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: const.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_const_field_msgspec/output.py b/tests/data/expected/main/main_openapi_const_field_msgspec/output.py index 82ff26f92..19c6c6272 100644 --- a/tests/data/expected/main/main_openapi_const_field_msgspec/output.py +++ b/tests/data/expected/main/main_openapi_const_field_msgspec/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: const.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_const_field_pydantic_v2/output.py b/tests/data/expected/main/main_openapi_const_field_pydantic_v2/output.py index 3487a2d7c..f72524d2b 100644 --- a/tests/data/expected/main/main_openapi_const_field_pydantic_v2/output.py +++ b/tests/data/expected/main/main_openapi_const_field_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: const.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_const_pydantic_v2/output.py b/tests/data/expected/main/main_openapi_const_pydantic_v2/output.py index b29bbb5fd..3b0000ae4 100644 --- a/tests/data/expected/main/main_openapi_const_pydantic_v2/output.py +++ b/tests/data/expected/main/main_openapi_const_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: const.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_content_in_parameters/output.py b/tests/data/expected/main/main_openapi_content_in_parameters/output.py index b0899cd7e..88991232a 100644 --- a/tests/data/expected/main/main_openapi_content_in_parameters/output.py +++ b/tests/data/expected/main/main_openapi_content_in_parameters/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: content_in_parameters.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_custom_id_pydantic_v2/output.py b/tests/data/expected/main/main_openapi_custom_id_pydantic_v2/output.py index 422e5bce5..4a657d1c7 100644 --- a/tests/data/expected/main/main_openapi_custom_id_pydantic_v2/output.py +++ b/tests/data/expected/main/main_openapi_custom_id_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom_id.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_custom_id_pydantic_v2_custom_base/output.py b/tests/data/expected/main/main_openapi_custom_id_pydantic_v2_custom_base/output.py index 8242e58d7..bc1177009 100644 --- a/tests/data/expected/main/main_openapi_custom_id_pydantic_v2_custom_base/output.py +++ b/tests/data/expected/main/main_openapi_custom_id_pydantic_v2_custom_base/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: custom_id.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_datetime/output.py b/tests/data/expected/main/main_openapi_datetime/output.py index f55689fa1..0227124b3 100644 --- a/tests/data/expected/main/main_openapi_datetime/output.py +++ b/tests/data/expected/main/main_openapi_datetime/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: datetime.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_datetime_pydantic_v2/output.py b/tests/data/expected/main/main_openapi_datetime_pydantic_v2/output.py index 7b8da871a..2f9ccf93d 100644 --- a/tests/data/expected/main/main_openapi_datetime_pydantic_v2/output.py +++ b/tests/data/expected/main/main_openapi_datetime_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: datetime.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_default_object/Another.py b/tests/data/expected/main/main_openapi_default_object/Another.py index 9a0e742e3..b19b348f1 100644 --- a/tests/data/expected/main/main_openapi_default_object/Another.py +++ b/tests/data/expected/main/main_openapi_default_object/Another.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: default_object.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_default_object/Nested.py b/tests/data/expected/main/main_openapi_default_object/Nested.py index b0cbab4c0..c63da5408 100644 --- a/tests/data/expected/main/main_openapi_default_object/Nested.py +++ b/tests/data/expected/main/main_openapi_default_object/Nested.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: default_object.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_default_object/__init__.py b/tests/data/expected/main/main_openapi_default_object/__init__.py index 68ac5c812..a4cf750cf 100644 --- a/tests/data/expected/main/main_openapi_default_object/__init__.py +++ b/tests/data/expected/main/main_openapi_default_object/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: default_object.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_discriminator/output.py b/tests/data/expected/main/main_openapi_discriminator/output.py index 9cd6e45fa..c28578afa 100644 --- a/tests/data/expected/main/main_openapi_discriminator/output.py +++ b/tests/data/expected/main/main_openapi_discriminator/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: discriminator.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_discriminator_in_array/output.py b/tests/data/expected/main/main_openapi_discriminator_in_array/output.py index 79a8df5dd..ba5adc89c 100644 --- a/tests/data/expected/main/main_openapi_discriminator_in_array/output.py +++ b/tests/data/expected/main/main_openapi_discriminator_in_array/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: discriminator_in_array.yaml # timestamp: 2023-07-27T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_discriminator_in_array_collapse_root_models/output.py b/tests/data/expected/main/main_openapi_discriminator_in_array_collapse_root_models/output.py index 6f9c06708..e672405c6 100644 --- a/tests/data/expected/main/main_openapi_discriminator_in_array_collapse_root_models/output.py +++ b/tests/data/expected/main/main_openapi_discriminator_in_array_collapse_root_models/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: discriminator_in_array.yaml # timestamp: 2023-07-27T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_discriminator_without_mapping/output.py b/tests/data/expected/main/main_openapi_discriminator_without_mapping/output.py index 2b91db084..5e20038f7 100644 --- a/tests/data/expected/main/main_openapi_discriminator_without_mapping/output.py +++ b/tests/data/expected/main/main_openapi_discriminator_without_mapping/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: discriminator_without_mapping.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_enum_models_all/output.py b/tests/data/expected/main/main_openapi_enum_models_all/output.py index 40566d82b..ae6c5854d 100644 --- a/tests/data/expected/main/main_openapi_enum_models_all/output.py +++ b/tests/data/expected/main/main_openapi_enum_models_all/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: enum_models.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_enum_models_as_literal_py37/output.py b/tests/data/expected/main/main_openapi_enum_models_as_literal_py37/output.py index 2f1a3a20b..6e5e4b699 100644 --- a/tests/data/expected/main/main_openapi_enum_models_as_literal_py37/output.py +++ b/tests/data/expected/main/main_openapi_enum_models_as_literal_py37/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: enum_models.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_enum_models_one/output.py b/tests/data/expected/main/main_openapi_enum_models_one/output.py index 26d735b35..ad03a18e3 100644 --- a/tests/data/expected/main/main_openapi_enum_models_one/output.py +++ b/tests/data/expected/main/main_openapi_enum_models_one/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: enum_models.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_enum_models_one_literal_as_default/output.py b/tests/data/expected/main/main_openapi_enum_models_one_literal_as_default/output.py index 11ffca83d..0f5f05ec8 100644 --- a/tests/data/expected/main/main_openapi_enum_models_one_literal_as_default/output.py +++ b/tests/data/expected/main/main_openapi_enum_models_one_literal_as_default/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: enum_models.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_http_refs/output.py b/tests/data/expected/main/main_openapi_http_refs/output.py index 4eeed3e1b..6902fa738 100644 --- a/tests/data/expected/main/main_openapi_http_refs/output.py +++ b/tests/data/expected/main/main_openapi_http_refs/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: https://example.com/refs.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_json_pointer/output.py b/tests/data/expected/main/main_openapi_json_pointer/output.py index 0885b0741..b534e2561 100644 --- a/tests/data/expected/main/main_openapi_json_pointer/output.py +++ b/tests/data/expected/main/main_openapi_json_pointer/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: json_pointer.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_max_items_enum/output.py b/tests/data/expected/main/main_openapi_max_items_enum/output.py index 1dcd60303..55dc8b913 100644 --- a/tests/data/expected/main/main_openapi_max_items_enum/output.py +++ b/tests/data/expected/main/main_openapi_max_items_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: max_items_enum.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_msgspec_default_object/Another.py b/tests/data/expected/main/main_openapi_msgspec_default_object/Another.py index 33adcde39..ce544bccf 100644 --- a/tests/data/expected/main/main_openapi_msgspec_default_object/Another.py +++ b/tests/data/expected/main/main_openapi_msgspec_default_object/Another.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: default_object.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_msgspec_default_object/Nested.py b/tests/data/expected/main/main_openapi_msgspec_default_object/Nested.py index d66df5b66..07895d6ca 100644 --- a/tests/data/expected/main/main_openapi_msgspec_default_object/Nested.py +++ b/tests/data/expected/main/main_openapi_msgspec_default_object/Nested.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: default_object.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_msgspec_default_object/__init__.py b/tests/data/expected/main/main_openapi_msgspec_default_object/__init__.py index cd5b12cc1..0aefdbfc1 100644 --- a/tests/data/expected/main/main_openapi_msgspec_default_object/__init__.py +++ b/tests/data/expected/main/main_openapi_msgspec_default_object/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: default_object.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_nullable/output.py b/tests/data/expected/main/main_openapi_nullable/output.py index d722472a0..8913c8596 100644 --- a/tests/data/expected/main/main_openapi_nullable/output.py +++ b/tests/data/expected/main/main_openapi_nullable/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_nullable_strict_nullable/output.py b/tests/data/expected/main/main_openapi_nullable_strict_nullable/output.py index b6b386906..d87f5fd60 100644 --- a/tests/data/expected/main/main_openapi_nullable_strict_nullable/output.py +++ b/tests/data/expected/main/main_openapi_nullable_strict_nullable/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_nullable_strict_nullable_use_union_operator/output.py b/tests/data/expected/main/main_openapi_nullable_strict_nullable_use_union_operator/output.py index 7fb9b8ea2..d860f1b2f 100644 --- a/tests/data/expected/main/main_openapi_nullable_strict_nullable_use_union_operator/output.py +++ b/tests/data/expected/main/main_openapi_nullable_strict_nullable_use_union_operator/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_oas_response_reference/output.py b/tests/data/expected/main/main_openapi_oas_response_reference/output.py index 77501bee4..c499e68cd 100644 --- a/tests/data/expected/main/main_openapi_oas_response_reference/output.py +++ b/tests/data/expected/main/main_openapi_oas_response_reference/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: oas_response_reference.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_override_required_all_of/output.py b/tests/data/expected/main/main_openapi_override_required_all_of/output.py index a6b6db60f..2ee511615 100644 --- a/tests/data/expected/main/main_openapi_override_required_all_of/output.py +++ b/tests/data/expected/main/main_openapi_override_required_all_of/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: override_required_all_of.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_reference_to_object_properties/output.py b/tests/data/expected/main/main_openapi_reference_to_object_properties/output.py index 2f37ae31c..861056fc4 100644 --- a/tests/data/expected/main/main_openapi_reference_to_object_properties/output.py +++ b/tests/data/expected/main/main_openapi_reference_to_object_properties/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: reference_to_object_properties.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_openapi_reference_to_object_properties_collapse_root_models/output.py b/tests/data/expected/main/main_openapi_reference_to_object_properties_collapse_root_models/output.py index 709442dce..8c87d2857 100644 --- a/tests/data/expected/main/main_openapi_reference_to_object_properties_collapse_root_models/output.py +++ b/tests/data/expected/main/main_openapi_reference_to_object_properties_collapse_root_models/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: reference_to_object_properties.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_pattern/output.py b/tests/data/expected/main/main_pattern/output.py index 93da3e249..4fe2a7a9f 100644 --- a/tests/data/expected/main/main_pattern/output.py +++ b/tests/data/expected/main/main_pattern/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pattern.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_pattern_msgspec/output.py b/tests/data/expected/main/main_pattern_msgspec/output.py index ff718d9f7..2519dce69 100644 --- a/tests/data/expected/main/main_pattern_msgspec/output.py +++ b/tests/data/expected/main/main_pattern_msgspec/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pattern.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_pattern_properties/output.py b/tests/data/expected/main/main_pattern_properties/output.py index 9278cb590..4f70ac3d5 100644 --- a/tests/data/expected/main/main_pattern_properties/output.py +++ b/tests/data/expected/main/main_pattern_properties/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pattern_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_pattern_properties_field_constraints/output.py b/tests/data/expected/main/main_pattern_properties_field_constraints/output.py index 446ff3a2c..0bd667420 100644 --- a/tests/data/expected/main/main_pattern_properties_field_constraints/output.py +++ b/tests/data/expected/main/main_pattern_properties_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pattern_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_pattern_pydantic_v2/output.py b/tests/data/expected/main/main_pattern_pydantic_v2/output.py index e14ff6a55..13415f541 100644 --- a/tests/data/expected/main/main_pattern_pydantic_v2/output.py +++ b/tests/data/expected/main/main_pattern_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pattern.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_pydantic_v2/output.py b/tests/data/expected/main/main_pydantic_v2/output.py index 2e49580bd..2f315a015 100644 --- a/tests/data/expected/main/main_pydantic_v2/output.py +++ b/tests/data/expected/main/main_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_id/output.py b/tests/data/expected/main/main_root_id/output.py index 6bd21f67f..e85ddd6ba 100644 --- a/tests/data/expected/main/main_root_id/output.py +++ b/tests/data/expected/main/main_root_id/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_id.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_id_absolute_url/output.py b/tests/data/expected/main/main_root_id_absolute_url/output.py index 928f074fb..2a83d6930 100644 --- a/tests/data/expected/main/main_root_id_absolute_url/output.py +++ b/tests/data/expected/main/main_root_id_absolute_url/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_id_absolute_url.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_model_with_additional_properties/output.py b/tests/data/expected/main/main_root_model_with_additional_properties/output.py index 3f6f650b3..6b3612a50 100644 --- a/tests/data/expected/main/main_root_model_with_additional_properties/output.py +++ b/tests/data/expected/main/main_root_model_with_additional_properties/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_model_with_additional_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_model_with_additional_properties_custom_class_name/output.py b/tests/data/expected/main/main_root_model_with_additional_properties_custom_class_name/output.py index b4c86a55d..33067a95f 100644 --- a/tests/data/expected/main/main_root_model_with_additional_properties_custom_class_name/output.py +++ b/tests/data/expected/main/main_root_model_with_additional_properties_custom_class_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_model_with_additional_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_model_with_additional_properties_literal/output.py b/tests/data/expected/main/main_root_model_with_additional_properties_literal/output.py index 66c2ad0e2..41e1ecea6 100644 --- a/tests/data/expected/main/main_root_model_with_additional_properties_literal/output.py +++ b/tests/data/expected/main/main_root_model_with_additional_properties_literal/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_model_with_additional_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_model_with_additional_properties_use_generic_container_types/output.py b/tests/data/expected/main/main_root_model_with_additional_properties_use_generic_container_types/output.py index 3ea38a9ff..f7af0717e 100644 --- a/tests/data/expected/main/main_root_model_with_additional_properties_use_generic_container_types/output.py +++ b/tests/data/expected/main/main_root_model_with_additional_properties_use_generic_container_types/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_model_with_additional_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_root_model_with_additional_properties_use_standard_collections/output.py b/tests/data/expected/main/main_root_model_with_additional_properties_use_standard_collections/output.py index f0610d87d..73255e464 100644 --- a/tests/data/expected/main/main_root_model_with_additional_properties_use_standard_collections/output.py +++ b/tests/data/expected/main/main_root_model_with_additional_properties_use_standard_collections/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: root_model_with_additional_properties.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_self_reference/output.py b/tests/data/expected/main/main_self_reference/output.py index 360433e39..1ed9692fa 100644 --- a/tests/data/expected/main/main_self_reference/output.py +++ b/tests/data/expected/main/main_self_reference/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: self_reference.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_similar_nested_array/output.py b/tests/data/expected/main/main_similar_nested_array/output.py index 3fe14d941..9748482ff 100644 --- a/tests/data/expected/main/main_similar_nested_array/output.py +++ b/tests/data/expected/main/main_similar_nested_array/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: similar_nested_array.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_space_field_enum_snake_case_field/output.py b/tests/data/expected/main/main_space_field_enum_snake_case_field/output.py index 70cd0a9e4..fce9db295 100644 --- a/tests/data/expected/main/main_space_field_enum_snake_case_field/output.py +++ b/tests/data/expected/main/main_space_field_enum_snake_case_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: space_field_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_special_yaml_keywords/output.py b/tests/data/expected/main/main_special_yaml_keywords/output.py index bc26158cb..80ff04523 100644 --- a/tests/data/expected/main/main_special_yaml_keywords/output.py +++ b/tests/data/expected/main/main_special_yaml_keywords/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_yaml_keywords.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_strict_types/output.py b/tests/data/expected/main/main_strict_types/output.py index 826df1be8..fa76d7417 100644 --- a/tests/data/expected/main/main_strict_types/output.py +++ b/tests/data/expected/main/main_strict_types/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: strict_types.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_strict_types_all/output.py b/tests/data/expected/main/main_strict_types_all/output.py index 65cca825e..01cb7602a 100644 --- a/tests/data/expected/main/main_strict_types_all/output.py +++ b/tests/data/expected/main/main_strict_types_all/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: strict_types.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_strict_types_all_field_constraints/output.py b/tests/data/expected/main/main_strict_types_all_field_constraints/output.py index e258ea5e7..cc068bf16 100644 --- a/tests/data/expected/main/main_strict_types_all_field_constraints/output.py +++ b/tests/data/expected/main/main_strict_types_all_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: strict_types.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_subclass_enum/output.py b/tests/data/expected/main/main_subclass_enum/output.py index c80d03e4a..f8cd32d6b 100644 --- a/tests/data/expected/main/main_subclass_enum/output.py +++ b/tests/data/expected/main/main_subclass_enum/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: subclass_enum.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict/output.py b/tests/data/expected/main/main_typed_dict/output.py index 5f57d8ba0..1cd9b5d3b 100644 --- a/tests/data/expected/main/main_typed_dict/output.py +++ b/tests/data/expected/main/main_typed_dict/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict_not_required_nullable/output.py b/tests/data/expected/main/main_typed_dict_not_required_nullable/output.py index 6c92f0cd7..ef254640a 100644 --- a/tests/data/expected/main/main_typed_dict_not_required_nullable/output.py +++ b/tests/data/expected/main/main_typed_dict_not_required_nullable/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: not_required_nullable.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict_nullable/output.py b/tests/data/expected/main/main_typed_dict_nullable/output.py index 752c35358..151b26984 100644 --- a/tests/data/expected/main/main_typed_dict_nullable/output.py +++ b/tests/data/expected/main/main_typed_dict_nullable/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict_nullable_strict_nullable/output.py b/tests/data/expected/main/main_typed_dict_nullable_strict_nullable/output.py index eee7a4a79..02ffbf298 100644 --- a/tests/data/expected/main/main_typed_dict_nullable_strict_nullable/output.py +++ b/tests/data/expected/main/main_typed_dict_nullable_strict_nullable/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict_py_38/output.py b/tests/data/expected/main/main_typed_dict_py_38/output.py index 5fcf7611d..98352d72c 100644 --- a/tests/data/expected/main/main_typed_dict_py_38/output.py +++ b/tests/data/expected/main/main_typed_dict_py_38/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict_space_and_special_characters/output.py b/tests/data/expected/main/main_typed_dict_space_and_special_characters/output.py index 24c7136cb..b73c72190 100644 --- a/tests/data/expected/main/main_typed_dict_space_and_special_characters/output.py +++ b/tests/data/expected/main/main_typed_dict_space_and_special_characters/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: space_and_special_characters.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_typed_dict_special_field_name_with_inheritance_model/output.py b/tests/data/expected/main/main_typed_dict_special_field_name_with_inheritance_model/output.py index 6b614b5ee..5e7c8eecb 100644 --- a/tests/data/expected/main/main_typed_dict_special_field_name_with_inheritance_model/output.py +++ b/tests/data/expected/main/main_typed_dict_special_field_name_with_inheritance_model/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: special_field_name_with_inheritance_model.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_annotated_with_field_constraints/output.py b/tests/data/expected/main/main_use_annotated_with_field_constraints/output.py index 4856b7200..0fdf46e0e 100644 --- a/tests/data/expected/main/main_use_annotated_with_field_constraints/output.py +++ b/tests/data/expected/main/main_use_annotated_with_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_annotated_with_field_constraints_py38/output.py b/tests/data/expected/main/main_use_annotated_with_field_constraints_py38/output.py index 8467cf107..f2657585f 100644 --- a/tests/data/expected/main/main_use_annotated_with_field_constraints_py38/output.py +++ b/tests/data/expected/main/main_use_annotated_with_field_constraints_py38/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_annotated_with_field_constraints_pydantic_v2/output.py b/tests/data/expected/main/main_use_annotated_with_field_constraints_pydantic_v2/output.py index 2d902bbc3..16a72084d 100644 --- a/tests/data/expected/main/main_use_annotated_with_field_constraints_pydantic_v2/output.py +++ b/tests/data/expected/main/main_use_annotated_with_field_constraints_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_annotated_with_msgspec_meta_constraints/output.py b/tests/data/expected/main/main_use_annotated_with_msgspec_meta_constraints/output.py index 7d18208eb..59581c4a5 100644 --- a/tests/data/expected/main/main_use_annotated_with_msgspec_meta_constraints/output.py +++ b/tests/data/expected/main/main_use_annotated_with_msgspec_meta_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_default_kwarg/output.py b/tests/data/expected/main/main_use_default_kwarg/output.py index 25b18325e..80e7ed8ac 100644 --- a/tests/data/expected/main/main_use_default_kwarg/output.py +++ b/tests/data/expected/main/main_use_default_kwarg/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/__init__.py b/tests/data/expected/main/main_use_generic_container_types/__init__.py index 3367e9aa6..d8453bc7a 100644 --- a/tests/data/expected/main/main_use_generic_container_types/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/collections.py b/tests/data/expected/main/main_use_generic_container_types/collections.py index cc6b2d417..1fcae2ac6 100644 --- a/tests/data/expected/main/main_use_generic_container_types/collections.py +++ b/tests/data/expected/main/main_use_generic_container_types/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/foo/__init__.py b/tests/data/expected/main/main_use_generic_container_types/foo/__init__.py index 1f232885e..8b2440dd6 100644 --- a/tests/data/expected/main/main_use_generic_container_types/foo/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/foo/bar.py b/tests/data/expected/main/main_use_generic_container_types/foo/bar.py index c4a5ccd9e..e78f66438 100644 --- a/tests/data/expected/main/main_use_generic_container_types/foo/bar.py +++ b/tests/data/expected/main/main_use_generic_container_types/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/models.py b/tests/data/expected/main/main_use_generic_container_types/models.py index 0a450c635..22b95699a 100644 --- a/tests/data/expected/main/main_use_generic_container_types/models.py +++ b/tests/data/expected/main/main_use_generic_container_types/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/nested/__init__.py b/tests/data/expected/main/main_use_generic_container_types/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_use_generic_container_types/nested/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/nested/foo.py b/tests/data/expected/main/main_use_generic_container_types/nested/foo.py index f53c5d3fe..709165474 100644 --- a/tests/data/expected/main/main_use_generic_container_types/nested/foo.py +++ b/tests/data/expected/main/main_use_generic_container_types/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/woo/__init__.py b/tests/data/expected/main/main_use_generic_container_types/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_use_generic_container_types/woo/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types/woo/boo.py b/tests/data/expected/main/main_use_generic_container_types/woo/boo.py index a12a474e2..4cfd2b0f7 100644 --- a/tests/data/expected/main/main_use_generic_container_types/woo/boo.py +++ b/tests/data/expected/main/main_use_generic_container_types/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/__init__.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/__init__.py index 3367e9aa6..d8453bc7a 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/collections.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/collections.py index b75ba6c93..1b77ec65b 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/collections.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/__init__.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/__init__.py index 1f232885e..8b2440dd6 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/bar.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/bar.py index b02ab60a7..0045cf35d 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/bar.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py index 9e93649df..4dca33442 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/__init__.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/foo.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/foo.py index 5eed408c7..8cbfbc48a 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/foo.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/__init__.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/__init__.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/boo.py b/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/boo.py index a12a474e2..4cfd2b0f7 100644 --- a/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/boo.py +++ b/tests/data/expected/main/main_use_generic_container_types_standard_collections/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_operation_id_as_name/output.py b/tests/data/expected/main/main_use_operation_id_as_name/output.py index 38fdbe45a..677a8a5ca 100644 --- a/tests/data/expected/main/main_use_operation_id_as_name/output.py +++ b/tests/data/expected/main/main_use_operation_id_as_name/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/__init__.py b/tests/data/expected/main/main_use_standard_collections/__init__.py index 3367e9aa6..d8453bc7a 100644 --- a/tests/data/expected/main/main_use_standard_collections/__init__.py +++ b/tests/data/expected/main/main_use_standard_collections/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/collections.py b/tests/data/expected/main/main_use_standard_collections/collections.py index da99bbf1b..24c1ee5f5 100644 --- a/tests/data/expected/main/main_use_standard_collections/collections.py +++ b/tests/data/expected/main/main_use_standard_collections/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/foo/__init__.py b/tests/data/expected/main/main_use_standard_collections/foo/__init__.py index 1f232885e..8b2440dd6 100644 --- a/tests/data/expected/main/main_use_standard_collections/foo/__init__.py +++ b/tests/data/expected/main/main_use_standard_collections/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/foo/bar.py b/tests/data/expected/main/main_use_standard_collections/foo/bar.py index cf51a68fb..22cc63ca8 100644 --- a/tests/data/expected/main/main_use_standard_collections/foo/bar.py +++ b/tests/data/expected/main/main_use_standard_collections/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/models.py b/tests/data/expected/main/main_use_standard_collections/models.py index 2c32d9762..bee420d86 100644 --- a/tests/data/expected/main/main_use_standard_collections/models.py +++ b/tests/data/expected/main/main_use_standard_collections/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/nested/__init__.py b/tests/data/expected/main/main_use_standard_collections/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_use_standard_collections/nested/__init__.py +++ b/tests/data/expected/main/main_use_standard_collections/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/nested/foo.py b/tests/data/expected/main/main_use_standard_collections/nested/foo.py index 9793679c4..1b533bec9 100644 --- a/tests/data/expected/main/main_use_standard_collections/nested/foo.py +++ b/tests/data/expected/main/main_use_standard_collections/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/woo/__init__.py b/tests/data/expected/main/main_use_standard_collections/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main/main_use_standard_collections/woo/__init__.py +++ b/tests/data/expected/main/main_use_standard_collections/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_standard_collections/woo/boo.py b/tests/data/expected/main/main_use_standard_collections/woo/boo.py index a12a474e2..4cfd2b0f7 100644 --- a/tests/data/expected/main/main_use_standard_collections/woo/boo.py +++ b/tests/data/expected/main/main_use_standard_collections/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/__init__.py b/tests/data/expected/main/main_use_union_operator/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_use_union_operator/__init__.py +++ b/tests/data/expected/main/main_use_union_operator/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/__init__.py b/tests/data/expected/main/main_use_union_operator/definitions/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/__init__.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/drink/__init__.py b/tests/data/expected/main/main_use_union_operator/definitions/drink/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/drink/__init__.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/drink/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/drink/coffee.py b/tests/data/expected/main/main_use_union_operator/definitions/drink/coffee.py index deed3ce45..91132322c 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/drink/coffee.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/drink/coffee.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/drink/coffee.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/drink/tea.py b/tests/data/expected/main/main_use_union_operator/definitions/drink/tea.py index a7d5f30a1..ab6655739 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/drink/tea.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/drink/tea.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/drink/tea.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/food.py b/tests/data/expected/main/main_use_union_operator/definitions/food.py index 524aeac48..0ed006956 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/food.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/food.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/food.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/friends.py b/tests/data/expected/main/main_use_union_operator/definitions/friends.py index f3cca4d7b..4906fcb73 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/friends.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/friends.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/friends.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/fur.py b/tests/data/expected/main/main_use_union_operator/definitions/fur.py index 0adb6df9f..439f9a8cf 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/fur.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/fur.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/fur.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/machine/__init__.py b/tests/data/expected/main/main_use_union_operator/definitions/machine/__init__.py index 4146e0ec1..b86ae3cd0 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/machine/__init__.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/machine/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: external_files_in_directory # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/machine/robot.py b/tests/data/expected/main/main_use_union_operator/definitions/machine/robot.py index 5d9828ed1..15f1f8975 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/machine/robot.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/machine/robot.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/machine/robot.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/definitions/pet.py b/tests/data/expected/main/main_use_union_operator/definitions/pet.py index 6ce015f60..2c26d0b96 100644 --- a/tests/data/expected/main/main_use_union_operator/definitions/pet.py +++ b/tests/data/expected/main/main_use_union_operator/definitions/pet.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: definitions/pet.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_use_union_operator/person.py b/tests/data/expected/main/main_use_union_operator/person.py index 59e3b9acf..99af82d9d 100644 --- a/tests/data/expected/main/main_use_union_operator/person.py +++ b/tests/data/expected/main/main_use_union_operator/person.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: person.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_aliases/output.py b/tests/data/expected/main/main_with_aliases/output.py index 0f34f5bc2..698719406 100644 --- a/tests/data/expected/main/main_with_aliases/output.py +++ b/tests/data/expected/main/main_with_aliases/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_aliases_msgspec/output.py b/tests/data/expected/main/main_with_aliases_msgspec/output.py index 448739c48..c46fad8cd 100644 --- a/tests/data/expected/main/main_with_aliases_msgspec/output.py +++ b/tests/data/expected/main/main_with_aliases_msgspec/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_exclusive/output.py b/tests/data/expected/main/main_with_exclusive/output.py index f59e9a400..430530bc6 100644 --- a/tests/data/expected/main/main_with_exclusive/output.py +++ b/tests/data/expected/main/main_with_exclusive/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: exclusive.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints/output.py b/tests/data/expected/main/main_with_field_constraints/output.py index d0439165d..9c4ba581b 100644 --- a/tests/data/expected/main/main_with_field_constraints/output.py +++ b/tests/data/expected/main/main_with_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints_pydantic_v2/output.py b/tests/data/expected/main/main_with_field_constraints_pydantic_v2/output.py index 6e08f3af8..78c982cfe 100644 --- a/tests/data/expected/main/main_with_field_constraints_pydantic_v2/output.py +++ b/tests/data/expected/main/main_with_field_constraints_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types/output.py b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types/output.py index dd4b58c22..591e7540b 100644 --- a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types/output.py +++ b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types_set/output.py b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types_set/output.py index 1daac769a..d30d710f4 100644 --- a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types_set/output.py +++ b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_generic_container_types_set/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections/output.py b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections/output.py index 7f921b9ad..94353a645 100644 --- a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections/output.py +++ b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections_set/output.py b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections_set/output.py index 1332258e4..c7c14ce8f 100644 --- a/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections_set/output.py +++ b/tests/data/expected/main/main_with_field_constraints_pydantic_v2_use_standard_collections_set/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_field_constraints_use_unique_items_as_set/output.py b/tests/data/expected/main/main_with_field_constraints_use_unique_items_as_set/output.py index 30a4c78a7..791e5816e 100644 --- a/tests/data/expected/main/main_with_field_constraints_use_unique_items_as_set/output.py +++ b/tests/data/expected/main/main_with_field_constraints_use_unique_items_as_set/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_snake_case_field/output.py b/tests/data/expected/main/main_with_snake_case_field/output.py index 38e7f1662..40b5434c9 100644 --- a/tests/data/expected/main/main_with_snake_case_field/output.py +++ b/tests/data/expected/main/main_with_snake_case_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_with_strip_default_none/output.py b/tests/data/expected/main/main_with_strip_default_none/output.py index 7c706678a..475f33b36 100644 --- a/tests/data/expected/main/main_with_strip_default_none/output.py +++ b/tests/data/expected/main/main_with_strip_default_none/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_without_field_constraints/output.py b/tests/data/expected/main/main_without_field_constraints/output.py index d68236df5..e3f627aaf 100644 --- a/tests/data/expected/main/main_without_field_constraints/output.py +++ b/tests/data/expected/main/main_without_field_constraints/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_without_field_constraints_pydantic_v2/output.py b/tests/data/expected/main/main_without_field_constraints_pydantic_v2/output.py index b0c22a1b3..802fadc87 100644 --- a/tests/data/expected/main/main_without_field_constraints_pydantic_v2/output.py +++ b/tests/data/expected/main/main_without_field_constraints_pydantic_v2/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_constrained.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/main_yaml/output.py b/tests/data/expected/main/main_yaml/output.py index b36fa27a4..61284c63a 100644 --- a/tests/data/expected/main/main_yaml/output.py +++ b/tests/data/expected/main/main_yaml/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: pet.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/max_min_number/output.py b/tests/data/expected/main/max_min_number/output.py index eb7af6d59..868fdbc1b 100644 --- a/tests/data/expected/main/max_min_number/output.py +++ b/tests/data/expected/main/max_min_number/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: max_min_number.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files/__init__.py b/tests/data/expected/main/multiple_files/__init__.py index 69b9e9ce0..da0caddfd 100644 --- a/tests/data/expected/main/multiple_files/__init__.py +++ b/tests/data/expected/main/multiple_files/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: multiple_files # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files/file_a.py b/tests/data/expected/main/multiple_files/file_a.py index 4448467ac..5e63cf72a 100644 --- a/tests/data/expected/main/multiple_files/file_a.py +++ b/tests/data/expected/main/multiple_files/file_a.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_a.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files/file_b.py b/tests/data/expected/main/multiple_files/file_b.py index 271451487..f6b14ae79 100644 --- a/tests/data/expected/main/multiple_files/file_b.py +++ b/tests/data/expected/main/multiple_files/file_b.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_b.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files/file_c.py b/tests/data/expected/main/multiple_files/file_c.py index 5698a758a..7f3111ea4 100644 --- a/tests/data/expected/main/multiple_files/file_c.py +++ b/tests/data/expected/main/multiple_files/file_c.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_c.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files/file_d.py b/tests/data/expected/main/multiple_files/file_d.py index 1169bb119..867e68a55 100644 --- a/tests/data/expected/main/multiple_files/file_d.py +++ b/tests/data/expected/main/multiple_files/file_d.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_d.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_json_pointer/__init__.py b/tests/data/expected/main/multiple_files_json_pointer/__init__.py index d29692898..77aac02ef 100644 --- a/tests/data/expected/main/multiple_files_json_pointer/__init__.py +++ b/tests/data/expected/main/multiple_files_json_pointer/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: multiple_files_json_pointer # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_json_pointer/file_a.py b/tests/data/expected/main/multiple_files_json_pointer/file_a.py index 872be5030..8204824ca 100644 --- a/tests/data/expected/main/multiple_files_json_pointer/file_a.py +++ b/tests/data/expected/main/multiple_files_json_pointer/file_a.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_a.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_json_pointer/file_b.py b/tests/data/expected/main/multiple_files_json_pointer/file_b.py index 5243ae005..8e0554c03 100644 --- a/tests/data/expected/main/multiple_files_json_pointer/file_b.py +++ b/tests/data/expected/main/multiple_files_json_pointer/file_b.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_b.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_json_pointer/file_c.py b/tests/data/expected/main/multiple_files_json_pointer/file_c.py index dd8d11a35..f799d7e24 100644 --- a/tests/data/expected/main/multiple_files_json_pointer/file_c.py +++ b/tests/data/expected/main/multiple_files_json_pointer/file_c.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: file_c.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_self_ref/__init__.py b/tests/data/expected/main/multiple_files_self_ref/__init__.py index b16204dc8..e8a2d3ec5 100644 --- a/tests/data/expected/main/multiple_files_self_ref/__init__.py +++ b/tests/data/expected/main/multiple_files_self_ref/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: multiple_files_self_ref # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_self_ref/base_test.py b/tests/data/expected/main/multiple_files_self_ref/base_test.py index 49c6793c4..f0e6952cd 100644 --- a/tests/data/expected/main/multiple_files_self_ref/base_test.py +++ b/tests/data/expected/main/multiple_files_self_ref/base_test.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: base_test.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_self_ref/test.py b/tests/data/expected/main/multiple_files_self_ref/test.py index 6df2b833e..77346fe23 100644 --- a/tests/data/expected/main/multiple_files_self_ref/test.py +++ b/tests/data/expected/main/multiple_files_self_ref/test.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: test.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/multiple_files_self_ref_single/output.py b/tests/data/expected/main/multiple_files_self_ref_single/output.py index f189cebe2..8d822acde 100644 --- a/tests/data/expected/main/multiple_files_self_ref_single/output.py +++ b/tests/data/expected/main/multiple_files_self_ref_single/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: test.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/pyproject/output.py b/tests/data/expected/main/pyproject/output.py index e7a0dad04..efd54d4d6 100644 --- a/tests/data/expected/main/pyproject/output.py +++ b/tests/data/expected/main/pyproject/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/pyproject_not_found/output.py b/tests/data/expected/main/pyproject_not_found/output.py index 6e24ae1de..a8e8f90c3 100644 --- a/tests/data/expected/main/pyproject_not_found/output.py +++ b/tests/data/expected/main/pyproject_not_found/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/simple_json_snake_case_field/output.py b/tests/data/expected/main/simple_json_snake_case_field/output.py index fb7f3de39..49db3d13c 100644 --- a/tests/data/expected/main/simple_json_snake_case_field/output.py +++ b/tests/data/expected/main/simple_json_snake_case_field/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: simple.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/space_and_special_characters/output.py b/tests/data/expected/main/space_and_special_characters/output.py index 6e542ca6f..81b626744 100644 --- a/tests/data/expected/main/space_and_special_characters/output.py +++ b/tests/data/expected/main/space_and_special_characters/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: space_and_special_characters.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/space_and_special_characters_dict/output.py b/tests/data/expected/main/space_and_special_characters_dict/output.py index c40ea5f14..1792d640d 100644 --- a/tests/data/expected/main/space_and_special_characters_dict/output.py +++ b/tests/data/expected/main/space_and_special_characters_dict/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: space_and_special_characters_dict.py # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/stdin/output.py b/tests/data/expected/main/stdin/output.py index 8698ab904..b96587702 100644 --- a/tests/data/expected/main/stdin/output.py +++ b/tests/data/expected/main/stdin/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/target_python_version/output.py b/tests/data/expected/main/target_python_version/output.py index 55f955a87..76b4b23b8 100644 --- a/tests/data/expected/main/target_python_version/output.py +++ b/tests/data/expected/main/target_python_version/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/unsorted_optional_fields/output.py b/tests/data/expected/main/unsorted_optional_fields/output.py index a806bc37c..bb70f27b8 100644 --- a/tests/data/expected/main/unsorted_optional_fields/output.py +++ b/tests/data/expected/main/unsorted_optional_fields/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: unsorted_optional_fields.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/use_default/output.py b/tests/data/expected/main/use_default/output.py index bc965e225..9263b5111 100644 --- a/tests/data/expected/main/use_default/output.py +++ b/tests/data/expected/main/use_default/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/use_default_with_const/output.py b/tests/data/expected/main/use_default_with_const/output.py index 4d7fa6afa..eefc5f538 100644 --- a/tests/data/expected/main/use_default_with_const/output.py +++ b/tests/data/expected/main/use_default_with_const/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: use_default_with_const.json # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main/validation/output.py b/tests/data/expected/main/validation/output.py index 6e24ae1de..a8e8f90c3 100644 --- a/tests/data/expected/main/validation/output.py +++ b/tests/data/expected/main/validation/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main_kr/main/output.py b/tests/data/expected/main_kr/main/output.py index 6e24ae1de..a8e8f90c3 100644 --- a/tests/data/expected/main_kr/main/output.py +++ b/tests/data/expected/main_kr/main/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main_kr/main_base_class/output.py b/tests/data/expected/main_kr/main_base_class/output.py index 485d838d9..77a51c3a6 100644 --- a/tests/data/expected/main_kr/main_base_class/output.py +++ b/tests/data/expected/main_kr/main_base_class/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main_kr/main_custom_template_dir/output.py b/tests/data/expected/main_kr/main_custom_template_dir/output.py index 535dd20a3..e67f372ef 100644 --- a/tests/data/expected/main_kr/main_custom_template_dir/output.py +++ b/tests/data/expected/main_kr/main_custom_template_dir/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/__init__.py b/tests/data/expected/main_kr/main_modular/__init__.py index 3367e9aa6..d8453bc7a 100644 --- a/tests/data/expected/main_kr/main_modular/__init__.py +++ b/tests/data/expected/main_kr/main_modular/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/bar.py b/tests/data/expected/main_kr/main_modular/bar.py index ac7884a37..cd57878ae 100644 --- a/tests/data/expected/main_kr/main_modular/bar.py +++ b/tests/data/expected/main_kr/main_modular/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/collections.py b/tests/data/expected/main_kr/main_modular/collections.py index e543cec54..7a3c5cdb0 100644 --- a/tests/data/expected/main_kr/main_modular/collections.py +++ b/tests/data/expected/main_kr/main_modular/collections.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/foo/__init__.py b/tests/data/expected/main_kr/main_modular/foo/__init__.py index 1f232885e..8b2440dd6 100644 --- a/tests/data/expected/main_kr/main_modular/foo/__init__.py +++ b/tests/data/expected/main_kr/main_modular/foo/__init__.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/foo/bar.py b/tests/data/expected/main_kr/main_modular/foo/bar.py index 9e9572a82..4177f3f7a 100644 --- a/tests/data/expected/main_kr/main_modular/foo/bar.py +++ b/tests/data/expected/main_kr/main_modular/foo/bar.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/models.py b/tests/data/expected/main_kr/main_modular/models.py index 40d4b7546..9568e0a7d 100644 --- a/tests/data/expected/main_kr/main_modular/models.py +++ b/tests/data/expected/main_kr/main_modular/models.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/nested/__init__.py b/tests/data/expected/main_kr/main_modular/nested/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main_kr/main_modular/nested/__init__.py +++ b/tests/data/expected/main_kr/main_modular/nested/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/nested/foo.py b/tests/data/expected/main_kr/main_modular/nested/foo.py index cc8772a12..fe155bc32 100644 --- a/tests/data/expected/main_kr/main_modular/nested/foo.py +++ b/tests/data/expected/main_kr/main_modular/nested/foo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/woo/__init__.py b/tests/data/expected/main_kr/main_modular/woo/__init__.py index fd37a2209..731dd6e80 100644 --- a/tests/data/expected/main_kr/main_modular/woo/__init__.py +++ b/tests/data/expected/main_kr/main_modular/woo/__init__.py @@ -1,3 +1,3 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_modular/woo/boo.py b/tests/data/expected/main_kr/main_modular/woo/boo.py index a12a474e2..4cfd2b0f7 100644 --- a/tests/data/expected/main_kr/main_modular/woo/boo.py +++ b/tests/data/expected/main_kr/main_modular/woo/boo.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_no_file/output.py b/tests/data/expected/main_kr/main_no_file/output.py index e1dfde123..71d17a3fc 100644 --- a/tests/data/expected/main_kr/main_no_file/output.py +++ b/tests/data/expected/main_kr/main_no_file/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 1985-10-26T08:21:00+00:00 diff --git a/tests/data/expected/main_kr/main_use_field_description/output.py b/tests/data/expected/main_kr/main_use_field_description/output.py index 7413c4c5a..55a1d3a25 100644 --- a/tests/data/expected/main_kr/main_use_field_description/output.py +++ b/tests/data/expected/main_kr/main_use_field_description/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_multiline_docstrings.yaml # timestamp: 2022-11-11T00:00:00+00:00 diff --git a/tests/data/expected/main_kr/main_use_schema_description/output.py b/tests/data/expected/main_kr/main_use_schema_description/output.py index ac66eb3a0..4cdc9231b 100644 --- a/tests/data/expected/main_kr/main_use_schema_description/output.py +++ b/tests/data/expected/main_kr/main_use_schema_description/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api_multiline_docstrings.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main_kr/pyproject/output.py b/tests/data/expected/main_kr/pyproject/output.py index e72d51142..8c5341fbc 100644 --- a/tests/data/expected/main_kr/pyproject/output.py +++ b/tests/data/expected/main_kr/pyproject/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00 diff --git a/tests/data/expected/main_kr/target_python_version/output.py b/tests/data/expected/main_kr/target_python_version/output.py index 55f955a87..76b4b23b8 100644 --- a/tests/data/expected/main_kr/target_python_version/output.py +++ b/tests/data/expected/main_kr/target_python_version/output.py @@ -1,4 +1,4 @@ -# generated by datamodel-codegen: +# @generated by datamodel-codegen: # filename: api.yaml # timestamp: 2019-07-26T00:00:00+00:00